954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Struts 2 - Tell me if this aint the right way :)

hello! i have been using Struts 2 for 2 weeks and i want to know if my login design is acceptable or not.
here's my code:

<s:if test="status != null">
		status property is NOT null
		<s:if test="status == 'incorrect'">
			<div>Incorrect username/password</div></s:if>
		<s:if test="status == 'incomplete'">
			<div>Incomplete details</div></s:if>
	</s:if>

The status property comes from the Bean Class that extends ActionSupport Class. It's because I dont want to use the invalidate() method and ActionError Class or something.
Or if you have different ways to handle this, please post it here..
I only want my user to show them what specifically the error is, say "incomplete" or "incorrect" or "username not valid" etc.. thanks!

autorunman22
Light Poster
43 posts since May 2011
Reputation Points: 13
Solved Threads: 3
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You