Meaningless Drivel is fun!*
The moose likes JSP and the fly likes validation on server side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
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: 357
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: 61662
    
  67

When you detect that the value is in error, assign a CSS class name to the text field that defines a colored background.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 357
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: 61662
    
  67

can u pls tell how


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

Joined: May 18, 2005
Posts: 357
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: 61662
    
  67

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