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 Java 8 in Action this week in the Java 8 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getRequestURL on a JSP forwarded from Servlet
 
Similar Threads
writing web.xml
Help .... again .... please
404 error redirecting
href path changes in jsp on redirecting the servlet to that jsp
Calling controller servlet form a jsp page through an anchor tag