This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

beginner servlet question

 
Donald Wynn
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to validate some check boxs on my servlet, whats a good way to do that?
 
Thomas Hubschman
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Donald,
There are two ways you can validate forms. In the HTML form itself via JavaScript and in your servlet/jsp code.
If you do it with JavaScript you will not need to send a sometimes time consuming HTTP request and response pair from and to the user, as all of the validation code has already been downloaded with the original page.
If you do it on the server in a servlet or JSP page you have more flexibility and access to all of the Java API but as mentioned above it is more time consuming.
That's the basics. Good luck!
[ December 09, 2002: Message edited by: Thomas Hubschman ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic