I am using a jboss/tomcat/struts 1.1 combination on a windows server.
I have an action definition defined like so:
action path=/search
type=com.je.struts.action.SearchAction
scope=session
name=SearchForm
input=/tmpl_gnmain.jsp?body=/results.jsp
validate=false
set-property property=secure value=false/
forward name=results path=/tmpl_gnmain.jsp?body=/results.jsp /
/action
So Urls will take the form of http://host/search.go?str=blablaparm=bla2
I would like to alter the URL to include path_info like this:
http://host/search.go/test/test2
or
http://host/search.go/testme/a/?str=blablaparm=bla2
Both should be valid.
http://host/search.go?str=blablaparm=bla2 works great but the URLs with
extra path info do not.
The error I'm getting is a 404 error.
I am thinking the issue I'm having lies with struts and not app server. I
know apache http server has a setting for this, but did not find anything
for Tomcat or JBOSS/Tomcat.
web.xml might also be helpfull:
servlet
servlet-nameActionServlet/servlet-name
display-nameActionServlet/display-name
descriptionMain Struts Servlet/description
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
/init-param
load-on-startup15/load-on-startup
/servlet
servlet-mapping
servlet-nameActionServlet/servlet-name
url-pattern*.go/url-pattern
/servlet-mapping
thanks for any direction.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]