How to

asked 2012-01-18 08:47:03 +0800

yohann gravatar image yohann

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

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2012-01-20 00:53:31 +0800

paowang gravatar image paowang
140 6

updated 2012-01-20 00:56:52 +0800

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

link publish delete flag offensive edit

answered 2012-02-08 15:01:11 +0800

yohann gravatar image yohann

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,

link publish delete flag offensive edit

answered 2012-02-08 17:03:07 +0800

javafan gravatar image javafan

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

link publish delete flag offensive edit

answered 2012-02-08 21:17:37 +0800

yohann gravatar image yohann

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"%>

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

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

<form id="loginForm" name="loginForm" action="j_spring_security_check" method="post">
<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>



link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2012-01-18 08:47:03 +0800

Seen: 174 times

Last updated: Feb 08 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More