-----Original Message-----
From: Shukla, Jatin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 16, 2000 10:59 AM
To: [EMAIL PROTECTED]
Subject: Re: Initilization parameters from properties fileHi,
I think you shoud understand the difference bet POST & GET protocol method. Post happens at submission and thus not able to set intialization parameter. Use doGet for these activities.Am I right?
regds,
Jatin
-----Original Message-----
From: Vijay Vangara [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, May 16, 2000 11:02 AM
To: [EMAIL PROTECTED]
Subject: Initilization parameters from properties fileHai 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 thispublic 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
Title: RE: Initilization parameters from properties file
Thank
you for responding to my mail..
But
actually this is not my actual code.Actually i am developing a JAVA MAIL.so must
and should i have to use the doPost() method.IS there any other way that i can
get the initialization parameters to my doPost() method...
thank
you and i appreciate your help and advise.
vijay.v.
- Initilization parameters from properties file Vijay Vangara
- Initilization parameters from properties file Vijay Vangara
- Re: Initilization parameters from properties file Vijay Vangara
- Re: Initilization parameters from properties file Shukla, Jatin
- Re: Initilization parameters from properties file Nic Ferrier
