| Author |
How to ignore the angle braces from being removed.
|
antsi klando
Greenhorn
Joined: May 10, 2011
Posts: 24
|
|
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: 56528
|
|
|
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.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
antsi klando
Greenhorn
Joined: May 10, 2011
Posts: 24
|
|
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.
|
|
|