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!