Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet Help in completing Servlet code!
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


EldaSummer
Help in completing Servlet code!
0 Answer(s)      a year and 10 months ago
Posted in : JSP-Servlet


Complete the following Servlet codes to store the information read from the input form to session object.

public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String topic = req.getParameter(?topicName?); 1 mark
String comment = req.getParameter(?commentText?);

//Complete the code to store the topic and comment into session scope and

// make it available other Servlets or JSPs
}

Advertisement
View Answers

Related Tutorials/Questions & Answers:
 

 

 

DMCA.com