Request parameter How to find whether a parameter exists in the request object?
Submitted by: Administrator1.boolean hasFoo = !(request.getParameter("foo") == null || request.getParameter("foo").equals(""));
2. boolean hasParameter = request.getParameterMap().contains(theParameter);
(which works in Servlet 2.3+)
Submitted by: Administrator
2. boolean hasParameter = request.getParameterMap().contains(theParameter);
(which works in Servlet 2.3+)
Submitted by: Administrator
Read Online Java Servlet Programming Job Interview Questions And Answers
Top Java Servlet Programming Questions
☺ | What are the uses of Servlets? |
☺ | What’s the Servlet Interface? |
☺ | What’s the advantages using servlets than using CGI? |
☺ | When a servlet accepts a call from a client, it receives two objects. What are they? |
☺ | What is the servlet? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |