This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JSP and the fly likes How to display EL Sintax and HTML Sintax in a JSP page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to display EL Sintax and HTML Sintax in a JSP page?" Watch "How to display EL Sintax and HTML Sintax in a JSP page?" New topic
Author

How to display EL Sintax and HTML Sintax in a JSP page?

pedro abs
Ranch Hand

Joined: Mar 25, 2010
Posts: 33
Hello,

I want to display Expression Language Sintax ${.....} in a JSP page. How could I accomplish this?

I want to know the same for html content? How can I display HTML Syntax in a JSP Page without the browser render it?

Thanks !!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 62139
    
  68

For EL, escape the $ with a \.

For HTML, use HTML entities for the < and >. For example: &gt;

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
pedro abs
Ranch Hand

Joined: Mar 25, 2010
Posts: 33
Tks, and for HTML? How can I display HTML sintax in my JSP page?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 62139
    
  68

pedro abs wrote:Tks,

Please use real words like "thanks" when posting to the forums. Thanks.

and for HTML? How can I display HTML sintax in my JSP page?

I already answered that.
pedro abs
Ranch Hand

Joined: Mar 25, 2010
Posts: 33
Thanks and sorry for my distraction !
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 62139
    
  68

No problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to display EL Sintax and HTML Sintax in a JSP page?