wood burning stoves*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes difference between tags? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "difference between tags?" Watch "difference between tags?" New topic
Author

difference between tags?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
What is the difference between these two types of tags <% %> and <%= %> ?

JSP Beginner.
Sumitro Palit
Ranch Hand

Joined: Dec 13, 2003
Posts: 37
1. <% %> - jsp scriptlet.
Whatever java code you write here becomes part of the _jspService method after translation. For example: <% int i = 0; %>

2. <%= %> - jsp expression.
Whaterever you write here will be outputted to the html page generated by your jsp page.

I suggest that you pick up a jsp book and start reading about the basic java tags and practice using them using a free servlet/jsp container like Tomcat.

- ortimuS
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between tags?
 
Similar Threads
Why is there a listener-element in the TLD?
struts tag & html
nested:iterate tag
ejb-jar.xml (Help!)
what is the difference between <s,<mx,<fx tabs