Hi Guys,
I'm Resin as JSP Engine and Apache Web server is Server.
I'm putting code.
my JSP File:
<%@ page import="jspbeans.*" language="java" %>
<jsp:useBean id="simpleBean" class="jspbeans.SimpleBean" scope="request" />
<%
simpleBean.setUserName("Rajeev Kumar ");
%>
<%= simpleBean.getUserName() %>
I kept this JSP file in Jsp folder
And Java Bean File:
package jspbeans;
import java.io.*;
public class SimpleBean {
String userName = null;
public SimpleBean(){
}
public String getUserName(){
return userName;
}
public void setUserName(String user){
userName = user;
}
}
and This file in jspbeans folder.
I mapped this the location where the JSP and Beans in Resin Configuration
file.
When I execute this JSP It is giving the Following Error
Parse Error in JSP file
/resin/jsp/simple.jsp:3: jsp:useBean cannot find class `jspbeans.SimpleBean'
Can any one knows abt it?
Thanks in Advance
Rajiv Kumar B
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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