You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Charles P. Killmer" <ch...@netgaintechnology.com> on 2005/03/15 17:27:21 UTC

Jumping in and out of JSP

Is it possible to do something like the following?  I have as much code
as I want in Java classes.  This is just to make modifying the UI
easier.
 
 
<%!
public String test() {
%>
test2
<%!
}
%>
<%=test()%>
 
 
 
 
Charles Killmer
 

{OT] Re: Jumping in and out of JSP

Posted by Jason Bainbridge <jb...@gmail.com>.
On Tue, 15 Mar 2005 10:27:21 -0600, Charles P. Killmer
<ch...@netgaintechnology.com> wrote:
> Is it possible to do something like the following?  I have as much code
> as I want in Java classes.  This is just to make modifying the UI
> easier.
> 
> <%!
> public String test() {
> %>
> test2
> <%!
> }
> %>
> <%=test()%>

Yes it is and one of the reaons using JSP's instead of just Servlets
is attractive.

Regards,
-- 
Jason Bainbridge
http://kde.org - webmaster@kde.org
Personal Site - http://jasonbainbridge.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org