• 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

SERVLET-CONNECTIVITY

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I HAVE CREATED HTML PAGE FROM THAT I M ACCEPTING USER NAME & PASSWORD & SUBMIT BUTTON OF THIS HTML PAGE IS CALLING MY SERVLET.
IN SERVLET I M CHECKING USER NAME & PASSWORD.
IF USER NAME & PASSWORD IS CORRECT THEN I WANT TO DISPLAY SOME OTHER HTML PAGE WHICH IS PREVIOUSLY CREATED.
BUT I DONT WANT TO WRITE HTML CODING IN MY SERVLET PROG.
HOW TO GET THIS?
response.Redirect(url),method is not working.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<hint>don't write in all caps - it looks like you are shouting</hint>
The method you want is in HttpServletResponse -
sendRedirect( urlstring );
Bill
------------------
author of:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic