Hi Friends,
I am very new to JSP.Just started learning few days back.I am struck with form validations in JSP.Can you pl help me as to how to validate the inputs entered by user in the form.No alerts shud be there.For example..if user doesnot enter any mandatory column(say first name),it should throw an error on the top of the page saying"Please enter the First name".Hope I am clear with the doubt.Fast help will be highly appreciated...thanks a lot
tdamon 0
Newbie Poster
Recommended Answers
Jump to PostTwo basic options
- Submit data to servlet for validation (full check as in regards is there any input, is the input in correct format and do the data match with whatever is in database - in case of login action)
- Use JavaScript traditionally used for just general check if …
All 3 Replies
peter_budo 2,532
Code tags enforcer Team Colleague Featured Poster
tdamon 0
Newbie Poster
peter_budo 2,532
Code tags enforcer Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.