I guess Stripes finds the the context path in the HttpServletRequest object.
So, you could create a Servlet Filter which would wrap the HttpServletRequest (see javax.servlet.http.HttpServletRequestWrapper ) and override the getContextPath() method to replace the result "/myApp" by "/". Gérald 2009/11/16 Stefanie Poeschl <[email protected]>: > Hello list, > > I've got the following problem with a stripes application: > The application is running on a JBoss 5 under the context name "myApp". Its > working fine when calling the jboss directly like that: > http://localhost:8080/myApp/MyAction.action > Now I've installed an Apache Webserver and configured it like that: > ProxyPass /myApp ajp://localhost:8009/myApp/ > This is also working like a charm. > > But now my problem: > I want to install "myApp" on the Production-Server and run it under a > domain e.g. www.myApp.com (NOT www.myApp.com/myApp) > The problem here are stripes-Tags like <s:form> in my jsp-pages. They > include the context-name in the action-attribute of the form-tag so when i > look at the source of the website the form tag looks something like that: > <form action="/myApp/MyAction.action">. BUT it has to be like this: <form > action="/MyAction.action">. > The easiest way to do that would be to let "myApp" run in the ROOT-context > of the server (e.g. make a ROOT.war and deploy that), but that is > unfortunately not possible. > > So finally my question: Is it somehow possible to configure stripes that it > is "internally" running as context "myApp" but the links/form-actions etc. > created use another (external) context-path?? > > Thanks, > Stefanie > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
