WebSphere Portal Server - HttpServletRequest.getRequestURL() struts

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > October 2006 > HttpServletRequest.getRequestURL() struts





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author HttpServletRequest.getRequestURL() struts

2006-10-28, 1:41 pm

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.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com