Hi,
I am using form based authentication for accessing certain protected resource. This is what I have specified in web.xml for j_security_check
There is a link in my home page from where a user can download pdfs. If user is not logged in, login.jsp page opens where user enters his credentials and if login is successfull (data access by
jdbc realm), requested pdf gets open.
URL which actually forward to login.jsp is:
http://localhost/contextName/pdfs/xyz.pdf In login.jsp page, I want this pdfs url
pattern i.e., /pdfs/xyz.pdf. Can I get that? I tried by request.getRequestURI(), but this gives me /login/login.jsp
Since there is a forward, that's why I am getting /login/login.jsp. Can I get back uri of the link which forward to login.jsp i.e., /pdfs/xyz.pdf
I hope problem is now clear to everybody
Thanks and Regards