Results 1 to 4 of 4
  1. #1
    nitish.dhar is offline Member
    Join Date
    Jun 2008
    Posts
    4
    Rep Power
    0

    Default getInitparameter

    i want to use getInitParameter in a simple java class .... how do i do that ?

    i tried to implement ServletContext

    and then wrote the code:

    user = getInitParameter("user" );

    which resulted in the following exception :

    java.lang.UnsupportedOperationException: Not supported yet.
    Last edited by nitish.dhar; 08-25-2008 at 10:39 AM.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,586
    Rep Power
    23

    Default

    Looks like your server doesn't support your code.
    What server are you using?

  3. #3
    nitish.dhar is offline Member
    Join Date
    Jun 2008
    Posts
    4
    Rep Power
    0

    Default

    I m using apache tomcat6.0

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,586
    Rep Power
    23

    Default

    How are you sure that the posted statement caused the error?
    Did the error message show where in the server was it thrown?

Posting Permissions

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