If the bean "error" doesn't exist in the request or the session then this is
the error you
get.
1. either generate the "error" form bean and add it to the scope (any scope
will do)
or
2. add logic code to test for the presence of the bean before you try using it.
...do the error here.
Kind
R. Markham wrote:
I get following error if I push the submit button. I get following error
message
javax.servlet.ServletException: Cannot find bean error in any scope
I have following in my JSP File
Lastname
> or as you say change the message resources default - or even make it always
> null=false?
I prefer this suggestion. Speaking only for myself, null=false is the
most sensible default.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
defintely needs improvement - currently too much can go
wrong at the moment without providing any real clue to the problem.
or as you say change the message resources default - or even make it always
null=false?
Niall
- Original Message -
From: "Michael Jouravlev" <[EMAIL PROTECTED]>
Se
On 5/10/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Niall Pemberton wrote the following on 5/10/2005 12:49 PM:
> > My guess that one of your message keys is incorrect/missing. Are your
> > message resources configured to NOT return null in your struts-config.xml?
> >
>
> And this could probably
I already caught this one ;) But this is not it this time. Thanks!
On 5/10/05, Simon Chappell <[EMAIL PROTECTED]> wrote:
> I also had this error recently when I inadvertently left out a taglib
> in the header of my JSP. Took me a while to catch that one because the
> symptom and the cause were so
I also had this error recently when I inadvertently left out a taglib
in the header of my JSP. Took me a while to catch that one because the
symptom and the cause were so different.
Simon
On 5/10/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Niall Pemberton wrote the following on 5/10/2005 12:49
Niall Pemberton wrote the following on 5/10/2005 12:49 PM:
My guess that one of your message keys is incorrect/missing. Are your
message resources configured to NOT return null in your struts-config.xml?
And this could probably explain why Michael can't always repeat the
error since probably one o
Why would it be missing, if it was not missing before? I changed only
java code, and in the different action.
Resources configured to return null. Well, whatever it returns, it
does not return ???key??? instead of displaying null. This is a very
helpful hint, I will put null="false" and try it tod
My guess that one of your message keys is incorrect/missing. Are your
message resources configured to NOT return null in your struts-config.xml?
Niall
- Original Message -
From: "Michael Jouravlev" <[EMAIL PROTECTED]>
Sent: Tuesday, May 10, 2005 7:53 AM
This is ridiculous. I cannot fin
Don't know what your action tools do, but the code I sent works. If
you want messages instead of actions, then user the following:
messages = new ActionMessages();
messages.add(Globals.MESSAGE_KEY, new
ActionMessage("button.crop.crop_allowed_width","" + width));
messages.add(Gl
errors = new ActionMessages();
errors.add(Globals.ERROR_KEY, new
ActionMessage("button.crop.no_letters_except_%"));
errors.add(Globals.ERROR_KEY, new
ActionMessage("button.crop.crop_allowed_width","" + width));
errors.add(Globals.ERROR_KEY, new
ActionMessage("button.
I've found the solution. I forgot to use the bundle parameter in
html:messages
Now I've got another problem :
If I put the message-resources in global key (key not defined)
everything works fine :
Validation failed.
* The field name2 is required.
But if I put it in a custom key (ie person) th
13 matches
Mail list logo