I want to map out all my action servlet in the web.xml file like this: <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> </servlet>
<servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>/Logon</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>/Logoff</url-pattern> </servlet-mapping> (without the *.do or /action/* pattern) In my input page logon.jsp I have action="/Logon" in the html:form, however the generated html always comes back with action="". I know there is something to do with the url-pattern that I have been setup. An alternative will be: <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> But, I don't want everything including jsp or html page to go thru ActionServlet. Any suggestion?