aspose file tools*
The moose likes JSP and the fly likes How to ignore the angle braces from being removed. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to ignore the angle braces from being removed." Watch "How to ignore the angle braces from being removed." New topic
Author

How to ignore the angle braces from being removed.

antsi klando
Ranch Hand

Joined: May 10, 2011
Posts: 46
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

Joined: Jan 10, 2002
Posts: 61657
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
antsi klando
Ranch Hand

Joined: May 10, 2011
Posts: 46
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.
 
 
subject: How to ignore the angle braces from being removed.