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

How to ignore the angle braces from being removed.

 
antsi klando
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a text field input contains the symbols <> together and submitted,it gets saved.

But,when the requested JSP page that must contain the field with <> together is loaded,it does not get displayed.The following example will make it easy to understand.
Suppose if a form text field input is <trial> and submitted,it gets saved.
But,when that JSP page is requested,it does not get displayed.Can I know the reason?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65228
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reason is invalid markup. The characters need to be html-escaped. Using the <c:out> tag to emit the value will automatically escape any such characters.
 
antsi klando
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reply is not clear.

The form contains a ProductName field.


Text in the form given as "<text>" and saved.

When another JSP is called,which requests for the ProductName,it returns nothing.So,kindly provide clarity on where this <c:out> tag should be used.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic