How about an alternative way of doing things. Use the same ActionMapping (i.e. url) for both "preparing/displaying" the page initially and submitting the form. That way its the same URL whatever the user book marks.
In your Action have something like the following.... public class MyAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { String updateInd= request.getAttribute("updateInd"); if ("true".equalsIgnoreCase(updateInd)) { return executeUpdate(mapping, form, request, response); } else { return executePrepare(mapping, form, request, response); } } public ActionForward executePrepare(.....) { // prepare stuff here } public ActionForward executeUpdate(.....) { // update stuff here } } Then in your jsp add a "hidden" field to the form setting the "updateInd", something like... <html:form action="..."> <html:hidden property="updateInd" value="true"/> <html:textproperty="...""/> <html:submit/> </html:form> I've used the above approach, but another variation on this which might be quite smart and avoid having to set the "updateInd" in the JSP would be to check for a POST or GET String updateInd= request.getMethod(); if ("POST".equalsIgnoreCase(updateInd)) { return executeUpdate(mapping, form, request, response); } else { return executePrepare(mapping, form, request, response); } Niall ----- Original Message ----- From: "Chaikin, Yaakov Y." <[EMAIL PROTECTED]> Sent: Monday, February 07, 2005 7:33 PM > 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. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]