Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Sunday, December 2, 2007

java code for Jsp page includes another Jsp page

//File: index.jsp







<%@ page buffer="5kb" autoFlush="false" %>

In place evaluation of another JSP which gives you the current time:

<%@ include file="foo.jsp" %>

by including the output of another JSP:



:-)




////////////////////////////////////////////////////////////////////
//File: foo.jsp





<%= System.currentTimeMillis() %>

////////////////////////////////////////////////////////////////////
//File: foo.html

To get the current time in ms

No comments: