2015-08-21 8:17 GMT+02:00 fea jabi <zy...@hotmail.com>: > > > Using struts2 in iRad > > > > 1. In src folder have package > com.xyx.actions ----> in this have LoginAction.java > > 2. Created > "resources" ------ > of type Source Folder > > in it I added a package > com.xyx.actions --------> in this added LoginAction.properties > > I added couple of label and > error properties in it. > > > > 3. In LoginAction -----> > validate method is handling errors and adding the key from > LoginAction.properties file and on field error in jsp the value from > properties > file is read and displaying in jsp correctly. i.e error messages are showing > correct from th properties file. > > > > 4. In the same properties file, > I added label properties like > > label.user=Userlabel.password=Passwordbtn.login=Login > errors.user.required=Please enter usererrors.password.required=Please enter > password > > > The jsp is not getting the > label properties and displaying the key itself as label.user <s:label > key="label.loginInfo"/> > <s:textfield name="user" key="label.user"></s:textfield> > <s:submit key="btn.login" align="center" cssClass="button"></s:submit> > > > > > what is that I am > missing? How to fix this? Any help on this appreciated. Thanks.
What action do you use to display the login form? And after submitting the login form with wrong user/pass do you see the labels? Regards -- Ćukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org