Hello,
I would be very glad to receive an answer to the following question :
How can I remove all the coding in a JSP-page to a JSP page that I can
include ? For example, say that I have the following JSP-page:
<html>
<head>
<jsp:include page="GenericFunctions.jsp" flush="true"/>
</head>
<body>
<%=foo1();>
<BR>
<%=foo2();>
<BR>
<%=foo3();>
<BR>
</body>
</html>
Within the body-tags, I want to show the output of three functions, for
example
public String foo1() { return "This is string 1"; }
public String foo2() { return "This is string 2"; }
public String foo3() { return "This is string 3"; }
These three functions should be defined in a JSP page called
"GenericFunctions.jsp", but I constantly get compilation errors when I
compile the page with content the above three functions enclosed within <%
and %>.
Many thanks,
Michiel
Michiel Decancq - partner - Emalaya nv
O Tel ++32-2-340 77 30
OOO Fax ++32-2-346 42 52
OOOOO GSM ++32-476-936 315
[EMAIL PROTECTED]
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets