Is your bean in a package? I've used JSP's w/ Weblogic 4.5.1 and you must
put the fully qualified name in the useBean tag. For instance:
package com.simple.example
public class try1{
....
}
<@page import="com.simple.example">
<jsp:useBean id="try1" class="com.simple.example.try1" scope="page" />
Even though you put the package in the import statement, you still have to
put the entire thing in the class property of useBean. One would think that
because you've imported the class, you could just reference the try1 class
in the useBean tag, but this is not the case. At least, not in Weblogic
4.5.1. Perhaps this will help?
-ryan
-----Original Message-----
From: vaidyanathan_g
To: [EMAIL PROTECTED]
Sent: 2/25/00 9:04 AM
Subject: Using UseBean tag in weblogic 4.5.1
Hi ,
If I have a bean as follows
public class try1{
private String userName;
public void setUserName(String str1)
{
userName = str1;
}
public String getUserName()
{
return userName ;
}
}
In the jsp I am using it like this:
<@page import=try1>
<jsp:useBean id="try1" class="try1" scope="page" />
This gives an error that it is not able to find the class try1 in the
working directory for jsp. But the class is available in the directory
specified in the classpath (servletclasses directory itself).
This code works fine in jswdk-1.0 and orion. Anypointers for this
problem?
Thanks
regards,
Vaidyanathan G
========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html