• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Form Help

 
Tahir Ehsan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a JSP file in which I have created a form.In this form I use the drop down menu in which value changes on onChange java script function.Now I want to save the form data into a database.But when onChange function is called,the page goes to "/servlet/something".Now plz advise me that how it will be possible that when onChange function is called,it should
remain on the same form and when I click on the submit form then the servlet called. I am trying to use the JSP file for saving the data into database, but It give exception.But when I disable the onChange function then servlet perform right working. Now plz help me whats the matter.
Thanx.........
 
Zip Ped
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

It would be helful if you could show us the code.
 
Tahir Ehsan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Request for conducting the discussion outside the forum removed.]
[ April 19, 2006: Message edited by: Bear Bibeault ]
 
Tahir Ehsan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Request for conducting the discussion outside the forum removed.]
[ April 19, 2006: Message edited by: Bear Bibeault ]
 
Zip Ped
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Request for conducting the discussion outside the forum removed.]
[ April 19, 2006: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All questions and answers should take place in the forum so that others may benefit from the discussion.
 
Zip Ped
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear. That is what I had suggested too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic