Hello all,
A basic question. I have a sample jsp and a bean. When I try to test it i
get "page cannot be displayed" message in IE. Here is my source code for jsp
file:
<html>
<body>
<jsp:useBean name="circle1" class="hellobean.Circle">
<jsp:setProperty name="circle1" property="radius" value="2">
Area = <jsp:getProperty name="circle1" property="area">
</body>
</html>
The jsp file is stored in oublic_html folder in Javawebserver2.0.
Here is the Circle bean source code:
package hellobean;
public class Circle
{
double radius;
double area;
public void setRadius(double r)
{
radius= r;
}
public double getRadius()
{
return radius;
}
public void setArea(double a)
{
area= a;
}
public double getArea()
{
return area;
}
}
The Circle.class file has been stored as
c:\javawebserver2.0\classes\hellobean\Circle.class.
My classpath contains this command: c:\javawebserver2.0\classes. Can any one
please tell me what am i doing wrong? Thanks.
shuaib
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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