Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getRequestURL on a JSP forwarded from Servlet

 
M Rama
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic