You wouldn't want to hit the JSP first anyways ;-).
It was suggested by another person here and I just wanted to rule it out in
case it was your next suggestion. :)
I believe both of your
thoughts will work but I would try the separate action mapping idea first.
I did, and it works,
On 1/24/2003 11:49 PM, Wendy Smoak wrote:
/*only validate if the form has actually been submitted.
We can tell this by checking to see if the Submit
button is in the request
*/
if (request.getParameter(Submit) != null) {
return super.validate(
Interesting... would equalsIgnoreCase be more appropriate, or are you sure
it'll always be in upper case? My jsp currently has:
html-el:form action=/chooseProfile
which turns into:
form name=chooseProfileForm method=post
action=/bendev/chooseProfile.do
so I'm guessing that 'post' will be
because request.getMethod() returns HTTP method and
request.getMethod().toString() is always uppercase
sorry, my mistake, request.getMethod().toString() is a nonsense because
request.getMethod() is type of java.lang.String.I'm too sleepy ;-(((
plastic
--
To unsubscribe, e-mail:
4 matches
Mail list logo