
Hi Kindly go through a simple program below and give the solution for the said below one
public class CounterBean implements java.io.Serializable {
int coun = 0;
public CounterBean() {
}
public int getCoun() {
coun++;
return this.coun;
}
public void setCoun(int coun) {
this.coun = coun;
}
}
The above one i created in Java and compiled
<%@ page language="java" import="beans" %> <jsp:useBean id="counter" scope="session" class="CounterBean" /> <HTML> <HEAD><TITLE>Use Bean Counter Example</TITLE> </HEAD> <BODY> <table><tr><td><b> The current count for the counter bean is: </b> <%=counter.getCoun() %></td></tr> </table </BODY> </HTML>
Next i created JSP program for the above one by using Bean and i opened the Tomcat webserver and clicked the JSP and i got the HTTP Status -500 in that it is asking to copy the Tool from java1.5/lib to Tomcat5.0/common/lib. But i already did that one. Now i want the output of the program ,so please tell me the Solution

Please visit the following link:
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.