This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying an inline error message in a JSP  RSS feed

 
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: 1812
15
Android Eclipse IDE 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: 1812
15
Android Eclipse IDE 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
Boost this thread!