Struts doesn't map URLS per se, that's up to the container and Web
server.
You can use the html:link tag to code logical names into your JSP's, and
then have Struts insert the appropriate path at runtime
<forward name="logon" path="/logon.jsp"/>
<forward name="tour" path="/tour.jps"/>
Which in a JSP would be referenced with
<html:link forward="logon"> ...
<html:link forward="tour"> ...
Otherwise, you would have to create tour/ and logon/ directories, and
then name your JSP's
tour/index.jsp
logon/index.jsp
which would be handled by the Web server normally.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/
Chris Callaghan wrote:
>
> Hey all,
>
> I want to be able to map a URL to certain JSPs which may or may not have
> an action involved with them e.g
> map /logon to logon.jsp which also has as action also called logon
> also /tour to tour.jsp which has no associated action.
>
> How can I do this with struts?
>
> Cheers
> Chris