|
| Hi,
HttpServletRequest.getRequestURL() translates to the forward mapping specified in the struts-config file even though the URL in the browser shows the original text entered.
Following is a snippet from my struts-config file.
<action
path="/seasonsearch"
type="org.apache.struts.actions.ForwardAction"
parameter="/search.do?method=newsearch&doc_view_id=26500"/>
<action
path="/search"
parameter="method"
type="com.tradestonesoftware.search.controller.SearchAction"
name="SearchForm"
scope="request"
validate="false"
input="/search/search.jsp"/>
So if I type in seasonsearch.do in the browser it the HttpServletRequest.getRequestURL() returns search.do in WebSphere. In Apache Tomact it returns seasonsearch.do (which is what I need based on Business Logic). Is there a better way or a different way t
o obtain the URL if I have access to the request object.
|
|