View Single Post
  #3 (permalink)  
Old 07-04-2007, 03:53 PM
Daniel Daniel is offline
Member
 
Join Date: Jun 2007
Posts: 92
Daniel is on a distinguished road
Code:
<%! ... %> i
s referred to as a declaration block.

it can also be written in xml syntax...for example

Code:
<jsp:declaration> String user_name = new String(); </jsp:declaration
the following is a comment
Code:
<%-- comment --%>
the following is an expression
Code:
<%= expression %>
Say for example, you have a string and it contains a user's name "John Smith" and you want to print it...you can write
Code:
<%= name %> instead or typing <% out.println( name ); %>
Greetings
Daniel
Reply With Quote