• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error with jsp:foward

 
Adewale Adebusoye
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Virag Saksena
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Virag Saksena
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep, the action tag, not the target tag
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic