Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

2 problems in JSP  RSS feed

 
arpit singla
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
2 problems regarding JSP:
I have a register JSP where user registers for a website, this JSP calls a servlet which inserts the data in the database. If user does not fills in the required fields, i want to display the warning message on the JSP along with the fields which have already been filled by the user.
If the required field has been filled or not, i am verifying that in the servlet and then calling the JSP again(requestdispatcher). do i need to embed the warning message in the dispatcher.
please let me know how to put this functionality.
thanks
 
Swapna Sam
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you write java-script function for these messages to pop when appropriate required field is not given by the end-user.
It's not required for your JSP page communicate to servlet until all required fields are given
Hope this helps u
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!