• 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

Not able to forward servlet to

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a simple login form in index.jsp...


This is the code written in doPost method of loginprocess.java


The problem is when i run it I get an error saying resource not found...
I know that FLOW does go to "loginprocess.java"...
What I suspect is that it cant forward to "index.jsp" again...
I dont know why???
I have wasted 3 days..please help...
 
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

request.getRequestDispatcher("index.php").forward(request, response);



Why are you expecting a PHP page to take a servlet request and response?

Bill
 
vijayrawat san
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for noting it out...
Actually i m working on many projects. One on php jscript and other on jsp and servlets...

I m so sorry to ask something such dumb....
thank you vry much...
 
reply
    Bookmark Topic Watch Topic
  • New Topic