Hello,
I am trying to store the url visited so when the session does not exist it redirects you to the login page then after login it will direct you to the page you were attempting to access.
Setup:
web.xml directs /action to
servlet action.java
I access the page from the servlet(action.java) and redirect you to the
jsp page via: request.getRequestDispatcher("/view.jsp").forward(request, response);
The url says the servelts name
So on the page action the url is:
localhost:8080/App/action
but request.getRequestURI().toString(); shows /App/view.jsp
How can I get the url to show the servlet address?