Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts & FORM authentication

 
Pavels Hlopoks
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I have a problem!
Now I need change authentication system in small project.
This project is created using STRUTS.

Is possible to do LOGIN form using FORM authentication?

Here is login page source:

"
<html:form action="/authorization" method="post" >
<DIV align="center">
<table name="detail" align="center">
<tr>
<th>User</th>
<td>
<html:text property="user" styleId="user"></html:text>
</td>
</tr>
<tr>
<th>Password</th>
<td>
<html: FORM password property="password" />
</td>
</tr>
<tr>
<th></th>
<td>
<html:submit value="Login" styleClass="button"></html:submit>
</td>
</tr>
</table>
</DIV>


</html:form>
"

if I change form action to j_security_check, after submit form go to j_security_check action in struts-config.xml.

Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic