I think from another post, the problem lies in that the request is being
redirected rather than forwarded. Upon the redirect, the webserver chokes on
it. Perhaps the answer is to use the subclass of ActionForward that sets
forwarding to true by default.

Haven't had the time to check this. However, I get the same error with
mappings like this.

Scott
----- Original Message -----
From: "Barry L. Kline" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 05, 2001 7:22 PM
Subject: Re: action mapping as /do/* rather than *.do


> Did you ever figure out how to do this?  I have seen many messages
> about how great it is to use /do/ but haven't seen anyone mention how
> to.  I'm just starting with struts and have been modifying Ted's
> sample (this same thing) but I'm been unable to get anything back from
> the browser but a blank screen...
>
> Barry
>
>
> Matt Raible wrote:
> >
> > I am trying to convert the struts-example application to use:
> >
> >   <servlet-mapping>
> >     <servlet-name>action</servlet-name>
> >     <url-pattern>/do/*</url-pattern>
> >   </servlet-mapping>
> >
> > And in the index.jsp page, I've change the "tour" link from:
> >
> > <html:link page="/tour.do">
> > <font size="-1"><bean:message key="index.tour"/></font>
> > </html:link>
> >
> > to:
> >
> > <html:link page="/do/tour">
> > <font size="-1"><bean:message key="index.tour"/></font>
> > </html:link>
> >
> > And have changed nothing in struts-config.xml.  However, when I try to
execute
> > this link (http://localhost/NASApp/struts-example/do/tour), I get the
error:
> >
> > [18/Aug/2001 10:16:53:9] info: --------------------------------------
> > [18/Aug/2001 10:16:53:9] info: action: Processing a GET for /tour
> > [18/Aug/2001 10:16:53:9] info: --------------------------------------
> > [18/Aug/2001 10:16:53:9] info: --------------------------------------
> > [18/Aug/2001 10:16:53:9] info: action: Setting locale 'en_US'
> > [18/Aug/2001 10:16:53:9] info: --------------------------------------
> > [18/Aug/2001 10:16:53:9] info: --------------------------------------
> > [18/Aug/2001 10:16:53:9] info: action:  No mapping available for path
/tour
> > [18/Aug/2001 10:16:53:9] info: --------------------------------------
> >
> > But in my struts-config.xml, there is the entry:
> >
> >     <action    path="/tour"
> >             forward="/tour.htm">
> >     </action>
> >
> > Anyone know how to fix this?
> >
> > Thanks,
> >
> > Matt
> >
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to