Yes, A good example would be:

<%
if (true){
%>

<P>This is my HTML.</P>
<DIV align="center"> I love how JSP keeps HTML code separate from the
scriptlets. Those out.println() statements are now only needed for dynamic
content!</DIV>

<% } %>

The broken scriptlets just help keep the HTML and the Java separated. Double
check your code for any little bugs, or for larger objects you might want to
use a bean.

Check out JSPInsider.com for more info, as well as examples for learning how
JSP works.

Jayson Falkner
[EMAIL PROTECTED]

----- Original Message -----
From: "Kai Hackemesser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 13, 2000 11:35 AM
Subject: I need some help with JSP reference


> Hi!
>
> I'm not sure if I understood JSP reference correctly. If I create code
> between <% and %>, are the objects available in another <% %> part, or
not?
> I tried, but got a warning from tomcat compiling this.
>
>
===========================================================================
> 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
>

===========================================================================
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

Reply via email to