This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Struts & FORM authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts & FORM authentication" Watch "Struts & FORM authentication" New topic

Struts & FORM authentication

Pavels Hlopoks
Ranch Hand

Joined: Feb 05, 2007
Posts: 31

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">
<html:text property="user" styleId="user"></html:text>
<html assword property="password" />
<html:submit value="Login" styleClass="button"></html:submit>


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

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
That's not going to work.

My suggestion would be to remove the Struts tags and replace them with plain HTML tags. This applies to the login JSP only. All other pages need not be changed.[LIST]

Consultant, Sima Solutions
I agree. Here's the link:
subject: Struts & FORM authentication