Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

validation on server side

 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
When you detect that the value is in error, assign a CSS class name to the text field that defines a colored background.
 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
can u pls tell how


u and pls are not real words.
 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Report post to moderator
bear,
can you please tell how and where i can set the class, when error occurs
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic