any reason why you are not supplying line breaks between key1=value1key2=value2 in properties file: label.user=Userlabel.password=Password
instead of: label.user=User label.password=Password ? Martin > From: zy...@hotmail.com > To: user@struts.apache.org > Subject: Struts2 resource bundle labels not showing up > Date: Mon, 24 Aug 2015 08:24:54 -0400 > > Still need help with this please. > > > From: zy...@hotmail.com > > To: user@struts.apache.org > > Subject: Struts2 resource bundle labels not showing up > > Date: Fri, 21 Aug 2015 02:17:08 -0400 > > > > > > > > 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. > > > > >