yuhua created WW-3859:
-------------------------
Summary: request.getServletPath() return null
Key: WW-3859
URL: https://issues.apache.org/jira/browse/WW-3859
Project: Struts 2
Issue Type: Bug
Components: Core Actions
Affects Versions: 2.3.1
Environment: struts2.3 websphere7.0.0.12 tomcat5.5
Reporter: yuhua
I create a class:
public abstract class BaseAction extends ActionSupport implements
ServletRequestAware, ServletResponseAware, ServletContextAware {
protected HttpServletRequest request;
protected HttpServletResponse response;
protected HttpSession session;
.........
public String getServletPath(){
return request.getServletPath();
}
..........
//some get and set method
}
now ,in tomcat 5.5 run environment,getServletPath() method can return correct
value,but in websphere 7,it return null.first,i distrust it is some problem in
webphere.so i create a simple jsp file and write above code in new jsp
file,very magical,it return correct value.i arrive the net to look for the
answer.but,nothing i find.it's struts bug?Looking forward to reply.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira