
import java.io.*; import java.net.*;
import javax.servlet.*; import javax.servlet.http.*;
public class Details1 extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response, String StringContext, String StringConfig)
throws ServletException, IOException
{
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
ServletContext ctx=getServletContext();
ServletConfig con=getServletConfig();
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet Details1</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Books Detail" + request.getContextPath()+"</h1>");
StringContext=ctx.getInitParameter("Books");
StringConfig=con.getInitParameter("English");
out.println("</body>");
out.println("</html>");
out.close();
}
}
whish setp is missing??
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.