Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

When is the "%= ... %" syntax used?

 
Henry Cray
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please explain when the "%= ...%" syntax is used instead of "<%= ... %>" for JSP attribute values? In the Manning book, I see that both cases are used, but I don't understand when one is used over the other.
Thanks,
-Henry
 
Bhushan Jawle
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The former syntax us valid when you are using XML syntax only to represent a JSP file. Later can be used in both XML and non-XML reprn. of JSP.
 
Henry Cray
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the information. I now understand that the "%=...%" syntax is only valid when the JSP page is using XML syntax, and the "<%=...%>" is used when the JSP page is using standard JSP syntax.
Thanks,
-Henry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic