Issue regarding error messages

2010-11-24 Thread Prabhubalaji Ragavan
Hi
I am using s:actionerror /, where the messages will pulled from the
resource bundle.
I want my messages to be on the bottom of the fields rather than top of the
field.

Thanks
Prabhu


Label problem in struts2

2010-11-17 Thread Prabhubalaji Ragavan
Hi
I am using the below code to label, which is using a resource bundle. When
the application starts up, the label appears twice.

JSP code
---
s:label key=Label.Name /


Resource bundle
-
Label.Name = Legal Name

Output
---

Legal Name Legal Name


Please help

Thanks
Prabhu Ragavan


Validation xml for Radio button

2010-11-15 Thread Prabhubalaji Ragavan
Hi
I am using a radio option in my code. when i try to validate that thru the
validator.xml, the validation is not happening.

this is my jsp content.

s:radio label=Answer name=yourAnswer list=#{'1':'Yes','2':'No'} /

this is my validator.xml content

field name=yourAnswer
   field-validator type=fieldexpression
param name=expression![CDATA[(yourAnswer == 1)]]/param
messageenter gen1/message
/field-validator
/field


Please help, am new to struts2.

Thanks
Prabhu Ragavan