Hai All,
i have got a problem here.I am trying to initilize some parameters through
the properties file.but when i am using the
service() or doGet() methods it is working fine.but when i am using the
doPost() it is saying some "Bad ......"..
My code is like this
public class Exam extends HttpServlet
{
String s = " ";
public void init(ServletConfig sc) throws ServletException
{
super.init(sc);
s = getInitParameter("xyz");
}
public void doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
{
response.setContentType("text/html");
PrintWriter writer = response.getWriter();
writer.println("<html><body>" + s + "welcome
world</body></html>");
}
}
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html