Correct Answer: Cookie cookie = new Cookie("key","value")
Explanation:
Note: This Question is unanswered, help us to find answer for this one
JSP And Servlets Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More JSP And Servlets MCQ Questions
To deploy and run JavaServer Pages you need...
Another way to track user data between pages is:
Which is the best place to define error pages for JSPs?
If submit a form without mentioning the method type(get or post) and called servlet. which method will invoke? doGet() or doPost().
When a web browser asks for a JSP page, the first thing the JSP engine does is:
Which JSP action retrieves the value of a property from a properly declared JavaBean in a JSP page?
If cookies are turned off on the client, which two methods still work with the session ID?
What output will be sent to the browser by the following code snippet? -->
What does the container do with the following code snippet?
Assuming the servlet method for handling HTTPGET requests is doGet(HttpServletRequest req, HTTPServletResponse res), how do you get a request parameter in that servlet?
JSP And Servlets MCQs | Topic-wise