Hi, I'm really new with WebWork, so please bear with me.
I'm trying to create a log-in page (simple username/password form) that posts to an action which, through some chain of logic, verifies the username/password combo... if the log-in fails, i want to return to the original log-in page with an error message... how do I put a test in the if-tag for a method of the action bean? eg: ================================================= The action java bean... ================================================= // this bean logs in with the proper info, and if anything goes wrong, set error to true and give an error message. public class LoginAction { private boolean myerror = false; private String errormessage = ""; public boolean isError() { return myerror; } public void setError(boolean val) { myerror = val; } public String getErrorMessage() { return errormessage; } public void setErrorMessage(String val) { errormessage = val; } // and other code... } ================================================= ================================================= in views.properties ================================================= webtest.LoginAction.success=start.jsp webtest.LoginAction.error=login.jsp So i basically loop back to the same page after a login-failure, and the login.jsp looks like this: ================================================= My login.jsp: ================================================= .... <webwork:if test="webtest.LoginAction.isError()"> <font color="#FF0000">ERROR:<%=indexBeanId.getErrorMessage()%></font> </webwork:else> <form method="post" action="webtest.LoginAction.action"> <br>Enter User name : <input name="username"><br> <br>Enter Password : <input name="password"><br> <br><br> <input type="submit" name="Submit" value="Submit"> </form> ... That "if" part is for me to test print out some sort of an error message... how do I do it?? this part is simply not working out, and i have tried many different combinations... thank you, James ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork