
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
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.