wood burning stoves 2.0*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 61449
    
  67

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: 61449
    
  67

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: 61449
    
  67

No problem.
 
 
subject: How to display EL Sintax and HTML Sintax in a JSP page?