webtier@glassfish.java.net

Login using realm security

From: <webtier_at_javadesktop.org>
Date: Tue, 06 Jan 2009 08:17:12 PST

Hi,
I have recently made a site in which i m using realm security
The site is here : -
http://void.co.nr

But as i have made a login form in the first (index.html) it can correctly take the emailID and the password.... and throw the user to error page (error logging in )

But it cannot login the user....as i have put the code in the index.jsp page....
<%
        
        java.security.Principal obj = request.getUserPrincipal();
            if(obj!=null) {
            String user = obj.getName();
            response.sendRedirect("secureUser(forwardslash)pageU.jsp");
            out.print(user); }
%>

But when i login using the link above the form(Click here to Login ) then it successfully redirects to the loginA.jsp page and i m able to login.

May its due to the config in web.xml: -
<form-login-page>/LoginA.jsp</form-login-page>
<form-error-page>/loginError.html</form-error-page>

i have tried using
<form-login-page>/index.jsp</form-login-page>

but still its not able to login....

but i have to do something with login form in index.jsp such that it can login users....

Thanks
Pradyut
http://pradyut.tk
New Delhi, India
[Message sent by forum member 'pradyut' (pradyut)]

http://forums.java.net/jive/thread.jspa?messageID=324305