Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Original request from JSP

Status
Not open for further replies.

Diancecht

Programmer
Jan 8, 2004
4,042
ES
Hi all

I'm trying to develop a web application that will run in WAS, and I've found a little problem that cannot solve.

Let the starting point of the application be an http request like bla bla

It's supposed to load a JSP page (and it does). I want to include a link in the JSP exactly equal as the above one, but with https.

My problem is that WAS "translates" the request, so when the JSP runs, it gets and I can't access the name of the servlet from this point.

So my question is: does anyone know a way to access the servlet name from the jsp code?

Any hint would be highly appreciated.

Thanks in advance.

Dian
 
Have you tried the request?

Code:
<%
Object fromURL = request.getAttribute(&quot;javax.servlet.error.request_uri&quot;);
if(fromURL == null)
{
	fromURL = request.getRequestURI();
}
%>
Will give me the JSP name - I bet you knew that. This isn't very helpful at all - I'm sorry.

Einstein47
(&quot;The pure and simple truth is rarely pure and never simple.&quot; - Oscar Wilde)
 
Thank you for your reply.

I also tried that, but I'm afraid it doesn't give me the info I need. In fact, I realized that it's not possible. I'll try another way.

Cheers.

Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top