Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple forms, but only one servlet to handle requests. Is it possible?

 
Javedali Shaikh
Greenhorn
Posts: 12
Chrome Eclipse IDE Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

Can we design mutliple forms in single page, and accept values on single servlet only? Is it possible? I referred the following link http://www.javakb.com/Uwe/Forum.aspx/java-programmer/12999/multiple-forms-and-one-servlet, and followed the instructions there but it is giving nullpointerexception. May I know the reason? Or please suggest something which serves the purpose.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Easy - just use a hidden variable in each form to direct the processing of the request.

My crystal ball is in the shop for the 10,000 vision checkup so I can't see your code - perhaps you should post some of it? NOT all of it, the part getting the NPE.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic