JavaBeans in JSP on iPlanet server problem
843835Dec 7 2001 — edited Mar 14 2002Hi-
I have deployed several JSPs, but this is my first attempt at using JavaBeans in the pages. We are using the iPlanet 4.1 web server.
The following is my JSP code (MyTest.jsp):
<html>
<head>
<title> Test case</title>
</head>
<body>
<jsp: useBean id="myBean" class="Beans.MyBean" />
</body>
</html>
The following is the bean code:
package Beans
public class MyBean {
private String message = "No Message";
public String getMessage() {
return(message);
}
public void setMessage(String message) {
this.message = message;
}
}
I have the JSP and bean in the same directory. I'm not clear on where to put it on an iPlanet server. The bean compiles fine, and iPlanet seems to be able to see it. However, when I compile the JSP I get the following error on iPlanet:
recompiling JSP file: /<dir path>/Beans/MyTest.jsp
JSP compilation error: java.lang.Exception: JSP parse error (line24) - Incomplete tag ending of /jsp:useBean, stack: java.lang.Exception: JSP parse error(line 24) - Incomplete tag ending of /jspuseBean
I've looked through several books and the JSP coding to useBean looks fine. Is this error related to iPlanet? Is it tied to the directory structure? We are using JDK1.3, is it set up for JavaBeans - or do we need to download some other files?
Any help is welcomed!
Thanks,
Leilani