File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to ignore the angle braces from being removed.

 
antsi klando
Ranch Hand
Posts: 46
  • 0
  • 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: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic