• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

2 problems in JSP

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic