• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

form submission doesn't happen

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my Register.jsp file


this is my index.jsp file


but when i run this Register.jsp file and click submit it says


this is my web.xml file


i ma using Netbeans IDE and these two jsp files are in same folder(Webpages)
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can't we submit forum to the another jsp?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Samanthi perera wrote:can't we submit forum to the another jsp?


You can submit the form to another jsp. but it is considered as poor practice.

dont submit a form to another jsp directly instead submit to a Servlet . Model1 Design pattern is Obsolete.

anyway, in your case the folder[ which have register and index jsp files] is under root directory right?
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
then , it is fine for me . Hmmm please try this and let me know
[if Possible use this]


or

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or get the right request parameters.

You call it "userName" in the form, but get the "name" parameter. You call it "userID" in the form, but get the "1984" parameter.
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok.I will try
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic