Re: Request parameters in action forward

2006-06-21 Thread Antonis Lebesis
Thanks Lance. This the solution I was looking for... Antonis On 6/21/06, Lance Semmens <[EMAIL PROTECTED]> wrote: You can use an org.apache.struts.action.ActionRedirect ActionForward forward = mapping.findForward("reload"); ActionRedirect redirect = new ActionRedirect(forward); redirect.addPar

Re: Request parameters in action forward

2006-06-21 Thread Lance Semmens
You can use an org.apache.struts.action.ActionRedirect ActionForward forward = mapping.findForward("reload"); ActionRedirect redirect = new ActionRedirect(forward); redirect.addParameter("id", idValue); return redirect; Antonis Lebesis wrote: Hi, I do have a SelectFooAction (actually it's cal

Re: Request parameters in action forward

2006-06-20 Thread Antonis Lebesis
Hi, I do have a SelectFooAction (actually it's called ChooseFooAction :)). There is another problem though: This action is used in more than one places so I have to add a parameter called action in it's url (action=display for a simple user, action=edit for the admin etc). Since I have a lot of

Re: Request parameters in action forward

2006-06-20 Thread Monkeyden
The only thing that I can think of is to redirect the user to a different (perhaps error) exactly, send them back to wherever they go to select the foo they want to look at. Do you have a SelectFooAction? On 6/20/06, Antonis Lebesis <[EMAIL PROTECTED]> wrote: Thank you Don. I have done that

Re: Request parameters in action forward

2006-06-20 Thread Antonis Lebesis
Thank you Don. I have done that and the session expiry problem is solved. The bookmark problem still exists though... There is a way to overcome this as well: ActionForward forward = new ActionForward(); forward.setPath(mapping.findForward("reload").getPath() + "&id=23"); which redirects

Re: Request parameters in action forward

2006-06-19 Thread Don Vawter
Can you take the request parameter and populate a hidden form field with it? Mixing request params with form fields has caused me grief more than once. On Jun 19, 2006, at 7:34 PM, Antonis Lebesis wrote: Hello, I have a jsp (foo.jsp) that displays information about a certain foo. I have defi

Request parameters in action forward

2006-06-19 Thread Antonis Lebesis
Hello, I have a jsp (foo.jsp) that displays information about a certain foo. I have defined a LoadFooAction, that prepares the foo object and the SubmitFooAction, that is called when I want to change the appearance of foo in foo.jsp [suppose that foo is a list of bars and that I want to change th