Regardless of whether this is a good idea or not, I'd like to know if what I
am asking is possible.

Besides, making the original form map to a .do doesn't really solve the
problem. If the validate() returns a non-empty ActionErrors collection,
Struts will still forward to the page and the URL in the user's browser will
be the one specified in the form's action="...", not the URL of the original
form.

If the user bookmarks after his first unsuccessful attempt to submit, he
will be bookmarking the wrong URL.

So, is this possible or not?

Thanks,
Yaakov.

-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Monday, February 07, 2005 1:09 PM
To: Struts Users Mailing List
Subject: Re: Redirecting back to input

From: "Chaikin, Yaakov Y." <[EMAIL PROTECTED]>
> When the
> user first comes to the form, it's a regular JSP looking URL, i.e.,
directly
> accessible to the user through .../blah.jsp... If the form doesn't
validate,
> Struts forwards the user to the same exact page with some error messages
on
> it, but the URL now reads something like .../action.do...

Allowing direct access to the jsp is generally not considered a good idea.
Is there some reason that the first URL they go to can't be /action.do?
Just don't let them see the jsp to begin with, and the problem goes away.

--
Wendy Smoak



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to