Wednesday, April 8, 2009

3. Scriptlet Tag

In this tag we can insert any amount of valid java code and these codes are placed in _jspService method by the JSP engine.
a scriptlet - which means Java code within a <% .... %>

Eg : BasicCounter.jsp
<html> <body>

The Page Count is : <% out.println(Counter.getCount()); %>
</html> </body>


output

The page count is :1

No comments:

Post a Comment