Sat Jan 17, 2009 1:51 am
<HTML>
<HEAD>
<TITLE>JSP and Using a Constructor</TITLE>
</HEAD>
<BODY>
<H1>Using a Constructor</H1>
<% mybeans.Home H = new mybeans.Home("JSP Examples Home"); %>
Home is : <%= H.HomeName() %>
</BODY>
</HTML>
package mybeans;
public class Home
{
String HomeName;
public Home(String Name)
{
HomeName = Name;
}
public String HomeName() {
return HomeName;
}
}
Fri Apr 08, 2011 4:00 pm
Sat Aug 20, 2011 6:58 pm
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.