Let’s understand the need of initialization parameters: In the practical example of RequestDispatcher, we used DividerServlet & HandlerServlet. Lets have another look at the them. DividerServlet code snippet: package com.techmentro.learningpad; … public class DividerServlet extends HttpServlet { public void doPost(HttpServletRequest request,HttpServletResponse response) { try { … //RequestDispatcher is created for index.html RequestDispatcher rd=request.getRequestDispatcher("index.html"); … }catch(Exception […]
Read complete post
Read complete post
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.