File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes not redirecting to servlet page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "not redirecting to servlet page" Watch "not redirecting to servlet page" New topic

not redirecting to servlet page

Megha Singhal
Ranch Hand

Joined: Feb 28, 2012
Posts: 225

when i am clicking on submit button it is not redirecting me to the SerRec page

in the footer of the page it is showing that it is redirecting to other page with values but actualy it is not performing any action.
Stefan Evans

Joined: Jul 06, 2005
Posts: 1580
You appear to have a nested form on your page. That would probably screw things up.
Don't nest <form> elements within eachother.

rather than using javascript to submit the form, I would recommend just using a standard input type="submit" button.
There is quite a bit of javascript on the page there for validation. Do any javascript errors show up when you click the button?

What does happen when you click the button?
Navigates to an error page?
I agree. Here's the link:
subject: not redirecting to servlet page
It's not a secret anymore!