This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
hi people
i don't know how change the color and position of textfield error message on my jsp . i use strut2.
on my actioncode, i use the methode validate
and on my jsp page :
the errorfield message display is automatic so cannot manage the position and the rendering on error message.in this case the error message is on the field and i want the message on the right field and the color red.
the second question i use the tag <s:fielderror fieldName="password"></s:fielderror> but the interline(the space between two ligne) how i can do to change that.
i m sorry my english is weak.can you help me.
any people can help me please to know how to
khekhone yvan
Ranch Hand
Joined: May 08, 2011
Posts: 75
posted
0
if you dont understand something about my problem .ask me and i can to explain again .
pooja par
Ranch Hand
Joined: Feb 14, 2011
Posts: 31
posted
0
I couldn't exactly understand what you want.
The below code would display all the field error messages of the jsp in red color above the form
In your jsp
You need to change the cssErrorStyle
cssErrorStyle is the attribute where you can define you own style and this will override cssErrorClass.
khekhone yvan
Ranch Hand
Joined: May 08, 2011
Posts: 75
posted
0
hi pooja thank to answer me
i try your code its ok
but i use also
on my action
when you dont fill the field an error message display on the field.
the application manages itself the localisation and the color message without tag.
but i want change color and localisation message see the picture.
red color to my message instead black color.
the error message is on the field and i want on the right field.