FORM based authentication + static content [message #635500] |
Wed, 27 October 2010 07:07 |
Andrew Messages: 43 Registered: December 2009 |
Member |
|
|
Hi,
I'd like to have a FORM based authentication in my RAP app. So in web.xml I add correspond section. But I'v got a 404 error:
"The requested resource /login.html is not available". Seems like container can't find login.html (I put login.html next to WEB-INF).
The only way it works is to change alias from static resource /login.html to my servlet which defined in web.xml and which output this login.html.
From:
<form-login-config>
<form-login-page>/login.html</form-login-page>
</form-login-config>
To:
<form-login-config>
<form-login-page>/ShowLoginPageServlet</form-login-page>
</form-login-config>
But if I remove equinox bridge servlet from web.xml then container can find login.html.
P.S. I can't use a plain (RAP) dialog to query user name and password coz users can save their user name and password in browser (for example with opera wand).
Is it possible to use "normal" static contents in container with RAP app without addition servlets or something else?
[Updated on: Wed, 27 October 2010 07:11] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04094 seconds