posted 22 years ago
hi,
when trying your examples or trying to make an example of my own, i seem to can not get the
response.sendRedirect(response.encodeRedirectURL("www.google.com"));
to work correctly.
the problem:
project xxx
Web
index.html
secure
login
login.jsp
hallo.jsp
mainmenu
mframes.html
logo.jsp
....
.....
WEB-INF
classes
com
utilities
tree
treeview.class
....
....
i start with login.jsp (a session is created) and perform an "response.sendRedirect("hallo.jsp");" and that works.
on the page "hallo.jsp" i try to go after the submit button was pressed to "mainmenu/mframes.html" with an
response.sendRedirect("/secure/mainmenu/mframes.html");
and that doesn't work. after pressing submit i am always returned to the "login.jsp". this is also the case if i choose to goto "logo.jsp".
what am i doing wrong?