tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alex r" <alexroma...@hotmail.com>
Subject tomcat problem with struts *.do and /do/*
Date Tue, 03 Sep 2002 21:57:33 GMT
hi, i'm using tomcat 4.0.4 and struts 1.0.2 and have a problem with my
mapping configuration file (struts-config.xml).
in an action mapping such as:
    <action    path="/travel"
               type="com.jazzdup.arak.user.TravelAction"
              scope="request">
      <forward name="failure"              path="/logon.do"/>
      <forward name="success"              path="/travel.jsp"/>
    </action>
the path to *.jsp works fine but on trying to follow the path to /logon.do,
i get the following error:

java.lang.IllegalArgumentException: Path failure2 does not start with a "/"
character
 at
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application
Context.java:572)
 at
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli
cationContextFacade.java:174)
 at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1751)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:646)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
), etc, etc...

now, changing *.do to /do/* (ie/ change /logon.do to /do/logon with the
corresponding change in the web.xml file) works fine for normal links but
when trying to forward does NOT work.

does this work with the standalone tomcat 4.0.4? i'm using the jwsdp.
i've found hardly any info on this - the references i did find were
broken/didn't give much info at all so does anyone have any more information
on this?
or can someone suggest a decent workaround?
the only information that i've been able to glean has been that there's a
known bug in the jasper compiler and that changing it to /do/* should
work... but it doesn't
thanks,
aL.






--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message