Hi Erik:
This is my web.xml:
<servlet>
<servlet-name>ProtectedPage</servlet-name>
<description>
this is the first menu for the application
</description>
<servlet-class>idcard.ProtectedPage</servlet-class>
<init-param>
<param-name>
passwordFile
</param-name>
<param-value>
Passwords
</param-value>
</init-param>
</servlet>
What happens is that when I enter what should be correct username/password
pairs they are not recognized. The value above for the name passwordFile is
not correct so I do not see the page as I should.
Does that help?
Sandra Patricia Hunter
Systems Development and Web Design
-----Original Message-----
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: March 27, 2003 10:43 AM
To: Tomcat Users List
Subject: Re: Registering Servlets
Sandra Patricia Hunter wrote:
[...]
> I am creating a passwordFile using a FileOutputStream to the address above
> like this: String passwordFile =
> "C:\\SANDRA\\BC
> Transit\\IDCardProject\\Passwords\\passwords.properties";
> FileOutputStream out = new FileOutputStream(passwordFile);
>
> However when I call it like this:
> passwordFile = config.getInitParameter("passwordFile");
> passwords = new Properties();
> passwords.load(new FileInputStream(passwordFile));
>
> The above web.xml does not do the trick. I believe my param-name is
> correct, but what should the value be?
You have to stop and then start Tomcat when you want the web.xml to be
re-read. Also, you didn't mention the error or problem you're getting?
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]