Author
validation on server side
Naresh Chaurasia
Ranch Hand
Joined: May 18, 2005
Posts: 309
posted Jul 17, 2006 07:26:00
0
Hi I am trying to do validation on server side. If the validation fails then the want to paint that component (text box) as red color. How i can do this in JSP . thnx in advance
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56178
posted Jul 17, 2006 08:51:00
0
When you detect that the value is in error, assign a CSS class name to the text field that defines a colored background.
[Smart Questions ] [JSP FAQ ] [Books by Bear ] [Bear's FrontMan ] [About Bear ]
Naresh Chaurasia
Ranch Hand
Joined: May 18, 2005
Posts: 309
posted Jul 17, 2006 09:13:00
0
hi bear, the text box and css has the following code...... can u pls tell how and where i can set the class, when error occurs
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56178
posted Jul 17, 2006 09:19:00
0
can u pls tell how
u and pls are not real words .
Naresh Chaurasia
Ranch Hand
Joined: May 18, 2005
Posts: 309
posted Jul 17, 2006 09:23:00
0
bear, can you please tell how and where i can set the class, when error occurs
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56178
posted Jul 17, 2006 11:05:00
0
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Since you have also asked this in the HTML forum, I'm closing this one.
subject: validation on server side