you would need to create a mapping the for the sample.jsp suppose you call
it sample

in the action that will be processing your request when you ready to
redirect to sample.jsp just state
return mapping.findForward ("sample");

Unless I misunderstood again, but this is just a regular way to do the
redirection to the view component in struts.

HTH

> -----Original Message-----
> From: Rick Col [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 05, 2003 3:23 PM
> To: Struts Users Mailing List
> Subject: RE: How to click on a button to link to a page?
>
>
> Thanks,
>
> Sorry, I did not make it clear. I actually need to
> retrieve form data after I click go button. So,
> basically, it has to go to action path specified in
> struts-config.xml after clicking on the button.
>
> Can I simply replace "sample.jsp" with action path
> specified in struts-config.xml in your code?
>
> regards,
>
>
>
> --- Aleksandr Shneyderman <[EMAIL PROTECTED]>
> wrote:
> > <input type="button" value="Click Me"
> > onclick="document.location='<html:rewrite
> > page="sample.jsp" />'">
> >
> > > -----Original Message-----
> > > From: Rick Col [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, September 05, 2003 2:43 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: How to click on a button to link to a
> > page?
> > >
> > >
> > > Hi,
> > >
> > > If I have a go button like this:
> > >
> > > <html:submit><bean:message
> > > key="button.go"/><html:submit>
> > >
> > > once I click on this button, I want it to go to
> > > another jsp page sample.jsp. How can I do that? Is
> > it
> > > possible to use <html:link> to do the job?
> > >
> > > regards,
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > > http://sitebuilder.yahoo.com
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > 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]
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> ---------------------------------------------------------------------
> 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