Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.3.1
-
None
-
struts2.3 websphere7.0.0.12 tomcat5.5
Description
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.