i made the following jsp file
<%@ page import="mybeans.NameBean" %>
<jsp:useBean id="pageBean" class="mybeans.NameBean" scope="page" />
<jsp:setProperty name="pageBean" property="*" />
<jsp:useBean id="sessionBean" class="mybeans.NameBean" scope="session" />
<jsp:setProperty name="sessionBean" property="*" />
<HTML>
<HEAD> <TITLE> The UseBean JSP </TITLE> </HEAD>
<BODY BGCOLOR=red>
<H3> Welcome to the UseBean JSP </H3>
<P><B>Page bean: </B>
<% if (pageBean.getNewName().equals("")) { %>
I don't know you.
<% } else { %>
Hello <%= pageBean.getNewName() %> !
<% } %>
<P><B>Session bean: </B>
<% if (sessionBean.getNewName().equals("")) { %>
I don't know you either.
<% } else {
if ((request.getParameter("newName") == null) ||
(request.getParameter("newName").equals(""))) { %>
Aha, I remember you.
<% } %>
You are <%= sessionBean.getNewName() %>.
<% } %>
<P>May we have your name?
<FORM METHOD=get>
<INPUT TYPE=TEXT name=newName size=20>
<INPUT TYPE=SUBMIT VALUE="Submit name">
</FORM>
</BODY>
</HTML>
its giving following errors
org.apache.jasper.JasperException: /3.jsp(2,0) The value for the useBean class attribute mybeans.NameBean is invalid.
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1227)
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Generator.generate(Generator.java:3272)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
i am a beginner and dont know much. can u please help me.