• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

redirecting to an other page problem

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic