can it possible to validate form field before execution of a
servlet service method if yes how??
Answer Posted / suresh
We can do it, There are two validation is available
1. Form validation
2. Server side validation
1. Form Validation - This validation is perform client side,
java script used to achieve these form validation
2. Server side Validation - This type we can use predefined
server side validation method used to achieve these validate.
Note:- In perform wise we compare Form validation is better
than server side validation. it's easy to progress.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is a generic servlet?
What is the difference between jsp and servlet life cycle?
Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
What is httpservlet class?
What is session tracking?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What’s the difference between genericservlet and httpservlet?
Which event is fired at the time of setting, getting or removing attribute from application scope?
When jsessionid is created?
Tell us something about servletcontext interface.
Can you send an authentication error from a servlet?
What is servlet? Explain
Define servlet mapping?
Difference between forward() method and sendredirect() method ?
How do I support both get and post from the same servlet?