Re: action-mapping forward - how do I use it?
That will work. But I am wondering why the action/forward doesn't work. Fromt he docs it seems like it should. thanks - dave - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, August 28, 2003 2:51 AM Subject: Re: action-mapping forward - how do I use it? > David, > what happens when you use a ? > > If the URL is wrong, have you tried ? > > Alternatively, don't use a form. Use a button inside a > > Hope that helps > Adam > > On 08/27/2003 09:56 PM David Thielen wrote: > > Hi; > > > > I have a case where, when the user clicks on a button, I want the action to be to go to a new page. No ActionServlet or ActionForm because the only thing in the form is the button. > > > > But I would like to use the action-mapping to determine where to go. I tried to do this with: > >> forward="/store/address.jsp"> > > > > > > But if I use a then it blows up on a null form. If I use a then it doesn't go to the mapped page. > > > > Is there any way to do this other than creating a do nothing action and form? (Seems to me it should be possible.) > > > > thanks - dave > > -- > struts 1.1 + tomcat 4.1.27 + java 1.4.2 > Linux 2.4.20 RH9 > > > - > 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]
Re: action-mapping forward - how do I use it?
David, what happens when you use a ? If the URL is wrong, have you tried ? Alternatively, don't use a form. Use a button inside a Hope that helps Adam On 08/27/2003 09:56 PM David Thielen wrote: Hi; I have a case where, when the user clicks on a button, I want the action to be to go to a new page. No ActionServlet or ActionForm because the only thing in the form is the button. But I would like to use the action-mapping to determine where to go. I tried to do this with: But if I use a then it blows up on a null form. If I use a then it doesn't go to the mapped page. Is there any way to do this other than creating a do nothing action and form? (Seems to me it should be possible.) thanks - dave -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: action-mapping forward - how do I use it?
How about a little javascript snippet on that button that submits it? That way it will not submit as a form... > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 27, 2003 3:56 PM > To: Struts-Users > Subject: action-mapping forward - how do I use it? > > > Hi; > > I have a case where, when the user clicks on a button, I > want the action to be to go to a new page. No ActionServlet > or ActionForm because the only thing in the form is the button. > > But I would like to use the action-mapping to determine > where to go. I tried to do this with: >forward="/store/address.jsp"> > > > But if I use a then it blows up on a null > form. If I use a then it doesn't go to the mapped page. > > Is there any way to do this other than creating a do > nothing action and form? (Seems to me it should be possible.) > > thanks - dave > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]