Hi all
My question is: Is it possible to make a function on a JSP page, that is a
set of JSP (esp. JSTL) tags?
I mean sth like:
<% public void fun()
      {
%>
          <sql:query var="tt">
            select a,b
            from c
            order by a,b
          </sql:query>
          <c:forEach items="${tt.rows}" var="r">
            <c:out value="${r.a}" />
            <c:out value="${r.b}" />
          </c:forEach>
<%
        }
%>


so that I could use it later a few times? If yes, then how because the above
doesn't work.

Thank you in advance
With best regards
Piotr Bieganowski

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to