File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes Struts & FORM authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Struts & FORM authentication" Watch "Struts & FORM authentication" New topic
Author

Struts & FORM authentication

Pavels Hlopoks
Ranch Hand

Joined: Feb 05, 2007
Posts: 31
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!
 
IntelliJ Java IDE
 
subject: Struts & FORM authentication
 
Threads others viewed
nothing is happening in action class when i submit a page(struts )
doesnt display struts tags in normal html form
can we replace submit button with link in order to submit form ?
Problem with struts message
Struts & FORM authentication
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture