Hi All,

I have a jsp page which uses a bean, it is a simple jsp page which
initializes
the bean with default values as shown below.

<jsp:useBean id="bean1" class="test_Bean" scope="page">
  <jsp:setproperty name="bean1" property="Name" value="Joe"/>
  <jsp:setproperty name="bean1" property="Age" value="30"/>
  <jsp:setproperty name="bean1" property="Company" value="XYZ"/>
</jsp:useBean>

But the problem is the jsp page(.java created by the JSP Engine) is unable
to instanstiate the bean.
The .java file is created in the dir
C:\JRun\jsm-default\services\jse\servlets\jsp\jsp\test_view.java

The jsp file(test_view.jsp), bean class(test_Bean.java) are present in a dir
C:\temp\test
and are not included in any package.
This dir is included in the classpath of the JRun properties(jsm.properties)
file.

Now, when I try to run the jsp by typing in the url
"http://mycomputername:portno/jsp/test_view.jsp,
I get an error saying "Error: Type jsp/jsp/test_Bean was not found"

Note: -
/jsp  -  is mapped to point to the dir mentioned above in the webserver
properties
Also, I am able to run other simple jsp's(without using any Java bean
objects) placed in the same directory without any problem.
The .java files for these .jsp's are also created in the same dir as
test_view.java

Am I doing something wrong here. Any help in this regard is appreciated.

Thanks,

Prasad M

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to