java - Deploying Struts2 Application without ContextPath -
I have a Straits 2 app running under "/ path" in reference to my local tomcat without problems when I Runs on the webserver (struts to "myserver: 8080 / path /" using proxy) Struts does all kinds of weird things
First of all, the context includes - tags included. This can be stopped by an attribute but unfortunately, it includes the path in the verb features of my forms, so a login form indicates "" instead of "" ...
Chances are that any default reference can be changed here or add it to the form? (I would like to keep tags, the only way to think of using round default HTML forms.) Thanks in advance!
I found that others have problems too, but the makers of the structure do not think this is an issue is. My solution:
- Include all in contact = "false": url-tags
- Instead of ss: form tags, use a normal form, use this Set action on "Actionname.action" and for each field include a simple table with tabs () you can still use s: textfield and this way.
- Unfortunately HTTP sessions will no longer work because they are set to "Path" (ApplicationPath). This is due to cookies which are being set on JSESSIONID / path. This means that your visitors only store the session variables when they live and they will be lost when they are redirected back ... My solution is a hack, as described here by javascript as javasaidID cookie The client needs to set up:
Hope someone helps ... If you find a good solution, please let me know: -)
Comments
Post a Comment