aspose file tools*
The moose likes Servlets and the fly likes getRequestURL on a JSP forwarded from Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "getRequestURL on a JSP forwarded from Servlet" Watch "getRequestURL on a JSP forwarded from Servlet" New topic
Author

getRequestURL on a JSP forwarded from Servlet

M Rama
Ranch Hand

Joined: Mar 04, 2005
Posts: 91
I have the following Servlet get method:





in the main.jsp i do the following:


getRequestURL()=<%=request.getRequestURL()%><br>


in one websphere server i get the servlet name ( http://hostname/App/TRO.do ) and in the other one the jsp name ( http://hostname/App/main.jsp )printed on the page. The url is similar in both which is ( http://hostname/App/TRO.do )

i deployed then same EAR to both the servers. why is this behaving this way?

Thanks
 
wood burning stoves
 
subject: getRequestURL on a JSP forwarded from Servlet
 
Similar Threads
Help .... again .... please
writing web.xml
href path changes in jsp on redirecting the servlet to that jsp
404 error redirecting
Calling controller servlet form a jsp page through an anchor tag