Re: Using validate() and returning to original page dynamically

2005-04-19 Thread Michael J.
On 4/19/05, Joe Germuska <[EMAIL PROTECTED]> wrote: > At 11:06 PM -0700 4/18/05, Michael J. wrote: > >2) You can set the params too, it is not a big deal. Do not edit > >existing ActionForward from findForward, instead create a new one and > >append query parameters. > > Note that about two months

Re: Using validate() and returning to original page dynamically

2005-04-19 Thread Joe Germuska
At 11:06 PM -0700 4/18/05, Michael J. wrote: 2) You can set the params too, it is not a big deal. Do not edit existing ActionForward from findForward, instead create a new one and append query parameters. Note that about two months ago, a class called "ActionRedirect" was added to clean up this pa

Re: Using validate() and returning to original page dynamically

2005-04-18 Thread Michael J.
Hi Nic, Struts does not allow to do things like this declaratively, but you can do it manually. 1) you can obtain mapping name from the ActionMapping. This will solidify the mapping name where you want to return, in code. I am not sure that this is worse that to solidify it in struts-config.xml,

Using validate() and returning to original page dynamically

2005-04-18 Thread Nic Werner
Hi again, I'm calling the validate() method in my MappingDispatchAction to check errors on page. Which is fine, except that I want to return to the URL (Action w/params) that was called. I have two Actions, Edit and Add, which both refer to Attributes.jsp, and depending on the type param set,