aspose file tools
The moose likes JSP and the fly likes validation on server side Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

validation on server side

Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 309
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
    
  13

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
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
    
  13

can u pls tell how


u and pls are not real words.
Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 309
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
    
  13

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validation on server side
 
Similar Threads
Validate
client side validation (message deleted I think)
client side validation
why client side and server side validations?
date validation