-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thom,
Thom Burnett wrote:
> I'm working on an application that uses several jsp pages to gather
> one set of information before it really does anything with it.
> Ideally, the first form gets validated before the user can get to the
> second form and
Here's a snippet of one of the jsp files.
I'd almost forgotten myself that I added the getAttribute("sessionForm")
some time ago.
I'm working on an application that uses several jsp pages to gather one set
of information before it really does anything with it. Ideally, the first
form gets validat
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thom,
Thom Burnett wrote:
> With that fixed I can take out the sub class' validate() method and still
> get a set of errors.
That's good, I guess. What do you mean, the subclass's validate method?
I didn't realize that you had multiple levels of vali
Chris,
Following your advice, I've now found the proper settings for my resource
file.
With that fixed I can take out the sub class' validate() method and still
get a set of errors.
However, getting errors still depopulate's the form's fields. Again, I can
fix that by overriding the validate meth
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thom,
> struts-config.xml:
This looks good.
> request.setAttribute("sessionForm", this) ; // If I don't do this the
> form will be blank after an error.
You really shouldn't have to do this. The form bean in the session will
be called "donorBe
What's now happening is that the validation correctly moves me back to the
jsp specified by input but the form becomes blank (doesn't keep the
information that was entered) and the returns nothing.
I can sort of get around this by calling validate and adding attributes to
the request but I'm pre
validations are linked to xml files:
with name tag, struts will look in validation.xml files to see the rules etc
, and it wil generates the javascript .
check if u got javascript validation code in your jsp ?
2006/11/7, Thom Burnett <[EMAIL PROTECTED]>:
What are
What are common simple mistakes that would prevent validation from occuring?
I've got a simple struts application that runs correctly except that
validation doesn't occur. The form info is accepted as correct when required
information is missing.
I'm trying to figure out what's missing from my se
8 matches
Mail list logo