File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Submit contents of a listbox from jsp to a serlvet

 
Rajesh Khan
Ranch Hand
Posts: 230
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , I need to submit the contents of my list box from a javascript function on my jsp page to a servlet.
Why from a javascript function ? Because the user already clicked a button and a javascript function did some stuff and now it needs to send the contents of a specific listbox to a servlet.
Any ideas on how I could do that.One of the ideas that I have is to insert the listbox into a form and have a hidden submit button next to it .but I am not really sure how i could simulate a button click even from a javascript. function and is there a better way. ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing to do with JSP -- moved the HTML/JavaScript forum.

Why would you need to simulate a button click? Just call the form's submit() method.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic