CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: servlets

  1. #1
    Guest

    servlets

    i just wanted to know what is the difference between initialization parameters, and the parameters we send in an shtml file using servlet tags. what is the significance of initialization parameters?? and when do we use getInitParameters() and getParameters(). waiting for u r reply


  2. #2
    Join Date
    Nov 1999
    Location
    Tilburg-Breda, Noord-Brabant, The Netherlands
    Posts
    135

    Re: servlets

    Hi there,

    when you call your servlet from a HTML form, and you have a textfield on the form, then the value of this textfield is send as an parameter to the servlet. You can get it with getParameter(pname).
    And with getInitParameter(), you can get parameters from a file called servlet.properties. This file can be in your default servlet directory. More information on this can be found at:
    http://www.java.sun.com/docs/books/t...ets/index.html

    Greets,
    Jan Meeuwesen
    ( If this answer is of any value to you, rate it! (bottom right in your browser under this text) )


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured