This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes error with jsp:foward Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "error with jsp:foward" Watch "error with jsp:foward" New topic
Author

error with jsp:foward

Adewale Adebusoye
Ranch Hand

Joined: Sep 28, 2005
Posts: 118
Guys, im trying to code a jsp submit form. the problem is that when i click the submit button on my form, jsp:foward dosent move on to the next page. rather it displays a fresh version of the submit form.
Its driving me nuts please help.


"Human beings can alter their lives by altering their state of mind" William James
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
jsp:forward is not used for submitting a form.

Use pure html Form for submitting and use use the jsp file name in the action attribute of form tag

Regards


Sarath Mohan
Virag Saksena
Ranch Hand

Joined: Nov 27, 2005
Posts: 71
If you want to go to a different page on submit,
then just change the target tag in your <form
you should not need to use the jsp:forward for that


<a href="http://www.auptyma.com" target="_blank" rel="nofollow">The Peak of Performance</a>
Virag Saksena
Ranch Hand

Joined: Nov 27, 2005
Posts: 71
Yep, the action tag, not the target tag
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error with jsp:foward
 
Similar Threads
a question about jsp:foward
how to add values to servlet and call that servlet
Ajax with Struts - Loading the lookup values in drop down
jsp:foward vs response.sendRedirect
Help needed with IE 6.0 submit