I am seeing something, maybe you can explain this. I think it has
something to do with "external" context..
When I enter my JSF web app, the browser address bar says
"http://myserver.com/jsfapp/index.jsf" for example. I click around in
it, and the address bar doesn't change, even though I am on a
different page, say
http://myserver.com/jsfapp/newpage.jsp. (like in
servlet forwarding)
When I am at this newpage.jsp, it has a header tag, and inside the
header tag java class I do this:
then s is "http://myserver.com/jsfapp/index.jsf"
If I do this:
then s is "http://myserver.com/jsfapp/newpage.jsp"
but I want s to be "http://myserver.com/jsfapp/newpage.jsf"
How do I do this?
THANKS
> >> I am inside a JSP tag java file and I want to know the URL of the
> >> request, so I use request.getRequestURL(). But it returns
> >>
http://myserver.com/jspapp/myfile.jsp instead of
> >>
http://myserver.com/jspapp/myfile.faces or
http://myserver.com/myfile.jsf.
> >> In other words, I want the request entered FOR THAT PAGE, not the one
> >> entered by the user in the address bar a few clicks back.