action chaining and request.getRequestURI()

2003-09-25 Thread Franck Lefebure
Hi, My struts-config looks like : struts-config global-forwards forward name=error path=/doError.do / /global-forwards action-mappings action path = /doError scope=request type=com.orange.struts.actions.ErrorAction forward name=success path=/error.jsp contextRelative=true/

Re: action chaining and request.getRequestURI()

2003-09-25 Thread Manish Singla
You go from one action to another action by requestdispatcher ..thus request.getRequestURI() will not serve your purpose One solution is you can read request header Referer in /doerror.do Now, above header is optional. Or else , you may set request.setAttribute in /doNews.do which you can read