[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Re: Cannot make functions in JSP?????
> > What I want (NEED DESPERATELY!!!) to do is:
> >
> > <%!
> > void sendTable(JspWriter out)
> > {
> > <#
> > <table width="80%">....
> > #>
> > }
> > %>
> >
> > ...where "<#" is my invention... =)
>
> You could try using:
>
> <jsp:include file="tablecode.jsp" flush="true" />
>
> This will include ("run") the tablecode.jsp file, which can be HTML, JSP,
> whatever.
That's a very poor solution, I'd like to have a Java method, with
parameters, type checking... I don't want to go back to the old BASIC days
when one had to rely on well known names of variables to pass arguments with
the GOSUB.. =)
It's amazing for me to see such a huge flaw in the standard. I will hack
gnujsp to implement something (as I've already hacked it to support a
preprocessor.. =)).