• +91 9971497814
  • info@interviewmaterial.com

Computer Interview Questions Answers

Question -

Request parameter How to find whether a parameter exists in the request object?



Answer -

1.boolean hasFoo = !(request.getParameter("foo") == null || request.getParameter("foo").equals("")); 2. boolean hasParameter = request.getParameterMap().contains(theParameter); (which works in Servlet 2.3+)

Comment(S)

Show all Coment

Leave a Comment


Selected

 

Computer Contributors

Aquarian Infotech System
Devraj Nagar
krishan
Rajeev Katiyar
Rashmi
Sandeep Saxena
Yes Baroda

Share your email for latest updates

Name:
Email:

Our partners