This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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: 64630
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: 64630
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: 64630
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