aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes When is the Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "When is the "%= ... %" syntax used?" Watch "When is the "%= ... %" syntax used?" New topic
Author

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

Henry Cray
Greenhorn

Joined: Feb 14, 2003
Posts: 2
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

Joined: Nov 22, 2001
Posts: 249
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

Joined: Feb 14, 2003
Posts: 2
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: When is the "%= ... %" syntax used?
 
Similar Threads
Can not find driver?
BBCode Link in my signature doesn't work
Validwhen validtor (expression syntax)
Need help in regular expression
Java code analysis tool PMD used with eclipse.