ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

How to

yohann
18 Jan 2012 08:47:03 GMT
18 Jan 2012 08:47:03 GMT

Hi all,

I'am using spring security 3.0.5 to protect some pages of my website application, when i try to access a secure page then the login.zul is displayed, so i can log and this works fine. But i try to add an embedded login form on my home page with "<jsp:include page="../login.zul" /> " in my jsp home page and when i try to log nothing is happenning !
Is someone can help me please ?

best regards !


Yohann from France

paowang
20 Jan 2012 00:53:31 GMT
20 Jan 2012 00:53:31 GMT

Can you provide the spring configuration and jsp file ?
You may try disabling protection first and login again, see what happen?

yohann
8 Feb 2012 15:01:11 GMT
8 Feb 2012 15:01:11 GMT

Thanks for your response and sorry for my response time.

I was a problem of relative path to j_spring_security_check, the problem is solved.

Best regards,

javafan
8 Feb 2012 17:03:07 GMT
8 Feb 2012 17:03:07 GMT

hi yohann
I am now to zk, learning..
would you mind send me login sample files that you implemented successfully? Thanks a lot in advance.
my e-mail address: khan123 at hotmail dot sg

yohann
8 Feb 2012 21:17:37 GMT
8 Feb 2012 21:17:37 GMT

Hi Javafan,

I have used JSP file like in this link : http://www.mularien.com/blog/2008/07/07/5-minute-guide-to-spring-security/

<%@ page session="true"%>
<html>

<head>
<title>Login: Spring Security Web Application</title>
</head>

<body onload='document.loginForm.j_username.focus();'>

<form id="loginForm" name="loginForm" action="j_spring_security_check" method="post">
<table>
<tr><td>Username</td><td><input id="usernameField" type="text" name="j_username" /></td></tr>
<tr><td>Password</td><td><input id="passwordField" type="password" name="j_password" /></td></tr>

<tr><td colspan="2" align="right"><input type="submit" value="Login" /></td></tr>
</table>
</form>

</body>

</html>