Matt

Can I configure action mapping as /controller/* rather than /do/*
Thx.

Philip.

 --- Matt Raible <[EMAIL PROTECTED]> 的郵件內容:> I did convert the
struts-example to use this mapping.  It can be found at
> http://www.icsynergy.com/downloads/index.html#struts-example
> 
> Online documentation can be found at
> http://www.icsynergy.com/downloads/struts/strutsHowTo.html
> 
> Hope this helps.
> 
> Matt
> 
> --- "Barry L. Kline" <[EMAIL PROTECTED]> wrote:
> > 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]>
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>  

_________________________________________________________
Do you Yahoo!?
行萬里路 http://travel.yahoo.com.hk
Comprehensive travel guide at http://travel.yahoo.com.hk

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

Reply via email to