This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Not able to forward servlet to Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Not able to forward servlet to " Watch "Not able to forward servlet to " New topic
Author

Not able to forward servlet to

vijayrawat san
Greenhorn

Joined: Jul 09, 2010
Posts: 2
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...
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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

Joined: Jul 09, 2010
Posts: 2
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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to forward servlet to
 
Similar Threads
java .lang .Number Format Error
detect the session attributes after the session is TimeOut?
Unable to update database
Vector from bean to servlet?
Session Value Persistence