David,
You're right, I was the mapping the Face Servlet to a /my_web_context/*,
while the index.jsp (which is actually a JSF page) is on the root. So the
index.jsp didn't actually go through the Face Servlet at all. After changing
the mapping to /*.jsp (yes, I'll change that to JSF or FACES late
You forgot to extend "Action" class in your own action. Here is why you
got a ClassCastException.
public class AnzeigenAction extends Action
{
..
}
Ciao
Antonio
Wolfgang Rinnert wrote:
> Hi all,
> I am expanding the Struts Upload example.
> Right now I work on a step to display the data that
Saul,
I recommend you search the MyFaces (www.myfaces.org or myfaces.apache.org)
user discussion list. I'm new to JSF (still reading Core Java Server Faces)
but here is my GUESS:
Your error suggests you are going to login.jsp. With an error message about
a faces context, that suggests you went
Hi,
Sorry for this OT question, but below is a Web app that use JSF and MyFaces and
deployed to JBoss, I got the following strange error, I googled "No faces
context", but didn't find a single resource on that. I know many users in this
list also use JSF as well, hence posting my question here
I'm running into a problem with Struts, and I admit I'm a newbie to it.
I have a line in a JSP file:
What I'd like to do is conditionally have readonly set:
<%
request.setAttribute("my_attr","true");
%>
But it doesn't seem to work. I'm doing something similar with JSTL
FMT:MESSAGE.
What is
This is off-topic, but in my Struts application, I've used all
tags instead of tags and I'm encountering
issues with my l10n.
My questions:
1. Is it correct that JSTL fmt:message will NOT follow the parent
chain of resources at an individual property level?
2. And is there anyway to force a
I don't believe it should be necessary to manually add the bean to the
request attributes.
My guess is that you have not explicity set your Failure forward to
redirect="false". I'm not sure what the default value is, but if you
mistakenly set redirect="true", you'll lose all your form data.
In the menu handler I issue a url like
mainAction
theForm is the form associated with the action is shared by the menu and the
body.
Other Url's can replace the context, or attributes of it.
I have one menu for all of the body pages, ant there are 8 attributes tha
Paul,
Thank you very much. That solved the problem. We moved to 2.4 and EL works the
way I had hoped. We were referencing 2.2.
Thanks,
Kurt
--
Kurt Williams
[EMAIL PROTECTED]
> Kurt,
>
> JSP 2.0 containers have EL turned off implicitly if you are not using the
> Servlet 2.4 spec. Check the t
Working on: Fedora Core2, Sun jdk 1.5, Tomcat 5.5.7, Hibernate 2.1.6, AS/400-DB2
Take a look at the following two Queries:
#Hibernate generated query with Session.createQuery on SYS_CAT table:
select * from (
select rownumber() over() as row_, syscat0_.SYS_CAT_ID as SYS_CAT_ID
from SYS_CAT syscat
I changed the dialect to DB2400 from DB2, and it solved the problem.
On Thu, 24 Mar 2005 13:36:50 -0600, sudip shrestha <[EMAIL PROTECTED]> wrote:
> Working on: Fedora Core2, Sun jdk 1.5, Tomcat 5.5.7, Hibernate 2.1.6,
> AS/400-DB2
> Take a look at the following two Queries:
> #Hibernate generat
Yuniar Setiawan wrote the following on 3/23/2005 6:57 AM:
There is a good example at
http://www.reumann.net/struts/ibatisLesson1.do about this. download
the sample war and look inside.
Actually as Leon pointed out to me, my example isn't that good for
Exception handling. (Sorry I wrote it fast and
Ray,
I don't understand why you say you must tie a form name into a URL call.
Can you give /webapp/XXX relative URL examles to help us make more sense of
what you are doing?
Regards,
David
-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 24, 2005 5:03
I think I am having an understanding problem of how to tie tiles and tile
defs with struts forms. My application uses a classicLayout type definition
that looks just like the one shipps with struts. It has a body and a menu
section. My problem is as follows.
My menu jsp has a set of attributes
Folashade Adeyosoye wrote the following on 3/24/2005 10:59 AM:
Agood way that i have found out was to define a BaseExceptionHandler.java class
Yes my Struts apps have this also. Actually I no longer catch any
Exceptions in my Actions and let this Base class handle it all. Makes
your Actions much
Any (simple) tool to create and manage regular expressions?
Thanks
Marco ;)
On Thu, 24 Mar 2005 09:28:20 -0800, Jaswinder Kaur <[EMAIL PROTECTED]> wrote:
> Thanks a lot. It work
>
> Thanks
>
>
> -Original Message-
> From: Greg Pelly [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, Ma
Jim Theodoridis wrote:
Erik Weber wrote:
Jim Theodoridis wrote:
Sorry it is a new message
In an action i am having the following path = ".";
a.setRedirect(true);
a.setPath(path.toString());
..
at the path assing a URL as http://www.yahoo.com or
http://www.google.
Hi all,
I am expanding the Struts Upload example.
Right now I work on a step to display the data that have been uploaded
to a (server-)local file.
This step consists of invoking an Action that reads the data into
request scope, and a JSP to display the data.
When invoking the Action I get an erro
Erik Weber wrote:
Jim Theodoridis wrote:
Sorry it is a new message
In an action i am having the following path = ".";
a.setRedirect(true);
a.setPath(path.toString());
..
at the path assing a URL as http://www.yahoo.com or
http://www.google.com
I want my action to
I remember there was a javadoc-like tool for Struts. I googled
"struts doc" and found this: http://struts.sourceforge.net/strutsdoc/
I haven't used it yet, and no nothing about it, but you might wanna
check it out.
On Thu, 24 Mar 2005 11:59:53 -0500, Matt Hughes <[EMAIL PROTECTED]> wrote:
> I ha
Thanks a lot. It work
Thanks
-Original Message-
From: Greg Pelly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 23, 2005 6:12 PM
To: Struts Users Mailing List
Subject: RE: Validation - Mask
Add a ^ to the beginning of the pattern. Try changing:
[^/$&=]+$
To
^[^/$&=]+$
That
I seem to have a problem with Tiles in Struts 1.2.4 while using
Tomcat 5.5.7 that did not exist when using 1.2.2/5.5.4. The 'get'
tag is not handling correctly the case where the named attribute
does not exist. The tag should throw an exception but does not.
Furthermore, it disregards the 'ignor
I have a fairly large application (100+ actions) with all of the actions
hard-coded into a struts-config. I would like to move the mappings into
the Action classes using XDoclet as well as adding some custom
parameters such as:
@requires
@failsIf
...etc
Then I would like some tool, pr
I'm trying to access the request parameters (i.e. submitted form values) in
a custom tag. This is fine with 'normal' forms but with multipart forms
(enctype="multipart/form-data") this isn't working.
The code in the custom tag does, in essence, what the RequestProcessor does
- calls org.apache.com
Agood way that i have found out was to define a BaseExceptionHandler.java class
< snip >
public final class BaseExceptionHandler extends ExceptionHandler {
public ActionForward execute(Exception ex, ExceptionConfig ae,
ActionMapping mapping,
Take a look at the tutorials in
http://www.keyboardmonkey.com/next/Advanced.jsp?content=yesplease -- I
think it describes what you're trying to do. I haven't had a need for
it yet, but based on its text, you may end up with something like
or something similar.
Personally though, I haven't tried
Hello,
I am finally able to show a select list in my jsp page. My workflow was to
create a "unvalidated" bean, go to the action, perform a db query, and create
the data for the select list.
My bean name is: 'usersbean'.
Here is what I am doing in the action, I have created a collection, and a
in such a case you have to use titleKey="img.new"
here is the attribute from the struts-html.tld, i look in there most
of the times if i need to figure out which attribute a certain taglib
call take.
titleKey
false
true
Hope that helps :)
On Thu, 24 Mar 2005 09:34:40 -0500, Rafael Taboa
In the jsp do...
Al
-Original Message-
From: Rutger Heijmerikx [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 24, 2005 3:06 AM
To: user@struts.apache.org
Subject: Bean linebreakes
Hello,
Does anyone has experience with linebreaks and beans?
I retreive content from a MySQL database
> " width="24" height="24" />
You can't nest tags like this. It's not a limitation of Struts, it's the way
tags are defined and the way they work.
For many problems like this, you can get around it by using the EL version
of the tags, but in this case you're trying to read something from a
resou
Greetings guys from the list. i have a problem that i hope u can help me
i'm using Taglibs and i want to use bean:message inside html:img...
But there's an error: an equal sig expected
here is my code
" width="24" height="24" />
please, can u help me? where is the problem? is it possible to
Hello:
I designing a "Bread Crum" Site Navigation panel. Something like
Home >
Home > Explore > Books
Home > Explore > Books > Java Made Easy and Hard
Home > Shopping Cart > View Items
Home > Shopping Cart > Checkout - Place Order
Each of the items in the navigation panel link to a "Action".
I
Hi,
I'm using the nested taglib like this:
...
<%--
problem! --%>
Everything works fine with the -tag (which gives me something like
diplomarbeiten[0].schuelerDiplomarbeiten[0].note and so on),
but the checkbox does not work ... I want to bind it
Mmz, sorry, this worked out fine for me.
>From the user struts archives;
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg84345.html
http://jakarta.apache.org/taglibs/doc/string-doc/string-1.1.0/index.html
http://jakarta.apache.org/taglibs/doc/string-doc/intro.html
Sorry for not sea
Thanks for all of you that help meand the winner is : Eric (Mon sauveur,
merci ;o)
Remember : I want only to start a new cycle by recalling the same action but
with another data. So I want to clean my form between these two calls.
(Frank has explained that quite well)
But I don't understand w
I use the approach outlined in
http://www.michaelmcgrady.com/button/jsp/button_talk.jsp. In summary each
button, when clicked, puts their value in a different request paramater - by
looking for the presence of a partcicular paramater a different dispatch
method can be called.
This approach should
Hello,
Does anyone has experience with linebreaks and beans?
I retreive content from a MySQL database field with linebrakes with
the rs.getString method.
Then i fill the bean with that value. When i do a System.out.println
using the getter method of the bean it does display the linebrakes of
the
thank you very much, Yuniar :")
- Original Message -
From: "Yuniar Setiawan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, March 23, 2005 6:57 PM
Subject: Re: [HELP] How could I catch and process Errors in Struts + iBatis
+ DAO?
There is a good example at
http://
38 matches
Mail list logo