[JSP] Usings Tags in JSP Functions
In a script I was writting recently I came across problem where you cant close your scriptlet in the middle of a function definition. I had to do a bit of a workaround that made my code a bit messier than I've of liked.
So my question is does anyone know if this is actually possible?
Bellowshould show roughly what I mean:
Code:
<%@ page import="java.util.*" %>
<HTML>
<BODY>
<%!
String getDate()
{
Date theDate;
%>
<MINE:GetDate/>
<%!
return theDate;
}
%>
Hello! The time is now <%= getDate() %>
</BODY>
</HTML>