I've got a JSP (GnuJSPp-0.9.8 on Apache-JServ-1.0b2) that has a number of
form elements in it and calls itself via a post.  The page uses a bean and
introspection to store and retrieve the bean properties in the form.  The
page also has a submit button named "action" and a corresponding bean
method SetAction() that is used to process the form data.

The problem is that some of the setFoo() methods are called *after* the
setAction() method and thus their form data is not available when the form
is submitted (although it *is* subsequently stored and is output to the JSP
when its redisplayed).  I instrumented the various setFoo() methods and
found the following order:

pres2
pres1
url
lname
email
fname
start of action
end of action
year2
year1

Note that setYear1() and setYear2() are both called after setAction().  All
the rest are called before.

So, my question is, what determines order?  Is it the case that you can
never rely on the submit button's actions taking place before the data in
the form is stored via introspection?  Is there someway to force order?

Nothing I've seen in the (admittedly tutorial) JSP docs mentions this.  The
spec (0.91) does not seem to mention it either.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to