Well, let's say (form == null) evaluates to true. Which is entirely possible if
you don't specify a name (or attribute) attribute for the action element.
However, that means that mapping.getAttribute() will also evaluate to null,
right? If so, then I'm thinking that request.setAttribute and
ses
My opinion: Yes, you're right - it isn't necessary. My guess is that
the particular piece of code you're looking at has existed there for
some time and has yet to be updated.
The general idea is that if you tell Struts the action requires a form,
and the form isn't there when you go to use it
Postfach 4711 wrote:
Hello Reinhard,
what will happen if the user calls the action from the jsp without
entering any data? If you also get the exception something is wrong
with your validate method.
There is a contract between actions and the forms they use: The form
*will* be created. This
Hello Reinhard,
what will happen if the user calls the action from the jsp without
entering any data? If you also get the exception something is wrong
with your validate method.
Thursday, November 7, 2002, 3:27:43 PM, you wrote:
RS> Hi all,
RS> i was wondering how to handle correctly the follow
It's really hard to say without seeing the relevant pieces of your
config file.
Do you declare a form-bean? Do you use the name of the form-bean as the
name attribute to the action you wish to have access to the form?
... if not, that is your problem.
Reinhard Spisser wrote:
Hi all,
i was w
5 matches
Mail list logo