Iam currently porting my projects from WebLogic to Jakarta-Tomcat....
but i can't make this simple test calling bean from jsp to work...
can anyone show me what i have miss ??

-------------------------------------------
-- the jsp files:
<html>
        <body>
                <jsp:useBean id="cal" scope="page" type="com.becak.portlet.Calender" />
                <jsp:getProperty name="cal" property="date" />
        </body>
</html>

-------------------------------------------
-- and my bean is

package com.becak.portlet;

import java.util.*;

public class Calender extends Object {
        public String getDate() {
                return (new Date()).toString();
        }
}
----------------------------------------------------
-- and finally the result is
javax.servlet.ServletException: bean cal  not found within scope
        at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386)
        at 
_0002ftest_0002ejsptest_jsp_3._jspService(_0002ftest_0002ejsptest_jsp_3.java:87)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
        at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
        at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
        at 
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
        at java.lang.Thread.run(Thread.java:475)



-------------------------------------------------------------
Sign up for ICQmail at http://www.icq.com/icqmail/signup.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to