Hi everybody,
this is my first mail to this group.
this is my second day,i am doing JSP.
i am using JSWDK-1.0.1 and IE 5.0
i have one problem as follows:
i have this JSP page:
<%@ page import="num.naresh" %>
<jsp:useBean id="sum" scope="session" class="num.naresh" />
<jsp:setProperty name=sum" property="*" />
<html>
<body>
<form method="get">
<input type="text" name="firstnum" size="25">
<input type="text" name="secondnum" size="25">
<input type="submit" name="calculate" value="submit">
</form>
<jsp:getProperty name="sum" property="thirdnum">
</body>
</html>
my class file is:
package num;
public class naresh {
private int firstnum;
private int secondnum;
public void setfirstnum(String name){
try{
firstnum=Integer.parseInt(name);
}catch(Exception e){System.out.println("numberformatexception");}
}
public void setsecondnum(String name){
try{
secondnum=Integer.parseInt(name);
}catch(Exception e){System.out.println("numberformatexception");}
}
public String getthirdnum()
{
return firstnum+secondnum +"";
}
}
i am placed the files in appropriate directory.
when invoke the page from browser,i get "page can not be displayed" error.
can somebody suggest what might be the problem.
awaiting early help.
thanks in advance
naresh
