JAAS image problem

I am running a J2EE application on JBOSS container.

I have configured JAAS authentication and it is successfull.

<login-config>

<auth-method>FORM</auth-method>

<realm-name>Forutne PromoSeven</realm-name>

<form-login-config>

<form-login-page>/login.htm</form-login-page>

<form-error-page>/loginerror.htm</form-error-page>

</form-login-config>

</login-config>

But in the login.htm page if I place a <IMG> tag to place a logo. It is not displaying.

The URL for the image

http://localhost:8080/MyApp/images/company_logo.gif

But after Logged in I can access the url and displaying the picture.

I realised it is not displaying any subfolder contents until I logged in. But I need to place a image in the login page

..

<img src="images/company_logo.jpg" alt="logo">

<form action="j_security_check" method=post>

<input type="text" size="15" name="j_username">

<input type="password" size="15" name="j_password">

<input name="submit" type="submit" value="Submit">

</form>

...

Why this images/company_logo.jpg is not displaying even it is there in the MyApp.ear package.

Please help on this

[1348 byte] By [JKJavaa] at [2007-10-3 0:47:35]
# 1
Hi, I found the error and I had setup <security-constraint> for all pages as <url-pattern>/*</url-pattern>.So I have corrected the problem. Thanks
JKJavaa at 2007-7-14 17:42:32 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 2
We have a similar problem where the Filter does not handle any url inside an <img src> tag. You can take the image url and stick it in your browser and hit go and it works, but put that url in an <img src> tag and it never goes into the LoginFilter framework.Anyone have any
mark@gea at 2007-7-14 17:42:32 > top of Java-index,Security,Other Security APIs, Tools, and Issues...