Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying an inline error message in a JSP

 
Jahnavi Kondapaneni
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Can anybody help me out in displaying an inline error message in a JSP instead of using displaying alerts using Javascript.
Thanks in advance


Regards
Janu
 
Swastik Dey
Rancher
Posts: 1625
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might use inline style sheet for this, in the following example if you leave the text field blank it will display an error message, and once again when the text field gets the focus that message will disappear

 
Jahnavi Kondapaneni
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swastik,

Thank you.
Your code is working....
But I want to know what is the use of <fmt> tag .
 
Swastik Dey
Rancher
Posts: 1625
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its a part of JSTL and can be used to display any formatted output for e.g



You can also set the date patterns, time zone etc.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic