<HTML>
<HEAD>
<!-- Example2 -->
<TITLE> JSP loop</TITLE>
</HEAD>
<BODY>
<font face=verdana color=darkblue>
JSP loop
<BR> <BR>
<%!
public String writeThis(int x)
{
String myText="";
for (int i = 1; i < x; i++ )
myText = myText + "<font size=" i " color=darkred face=verdana>VisualBuilder JSP Tutorial</font><br>" ;
return myText;
}
%>
[Br style="font-family: Verdana; font-size: 12px;" />
This is a loop example from the
[Br style="font-family: Verdana; font-size: 12px;" />
<br>
<%= writeThis(8) %>
</font>
</BODY>
</HTML>
hai i have few doubts regarding jsp i find it difficult while learning please help me .
1- how the above code work
2 - how to execute it ?
Software/Hardware used:
software jdk 1.6
ASKED:
March 9, 2012 6:00 PM
UPDATED:
April 4, 2012 7:57 AM