Hey can anyone solve this ......

I am using Tomcat 4.1.30 on IE
I am Getting following error :

HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message description
The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /idcard.jsp(5,5) jsp.error.badaction
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126)
at org.apache.jasper.compiler.Parser.parseAction(Parser.java:671)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:803)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)


and  blah blah blah ..........

the jsp file looks as follows:

<html>
<head>
</head>
<body>
<@page import="com.dinesh.idcard" >
<jsp:usebean id="myidcard" scope="page" class="com.dinesh.idcard">
<jsp:setProperty name="myidcard" property="RollNo" value="123" />
<jsp:setProperty name="myidcard" property="Name" value="Harikiran" />
</jsp:usebean>
<%=myidcard.getName()%>
<br>
<%=myidcard.getRollNo()%>
</body>
</html>

and the bean file looks as follows:

package com.dinesh;
public class idcard{
private int RollNo;
private String Name;
public void setRollNo(int num){
this.RollNo=num;
}
public int getRollNo(){
return RollNo;
}
public void setName(String Name)
{
this.Name=Name;

_________________________________________________________________
The new MSN toolbar! Your shortcut to the internet! http://toolbar.msn.co.in/ Access a world of convenience!



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to