Heres my JSP page
-------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<%@ page import = "americaii.chpfindr.beans.HelloBean"
%>
<jsp:useBean id="test"
class="americaii.chpfindr.beans.HelloBean"
scope="session" />
<%= test.getName() %>
</body>
</html>
------------------------------------------------------
The useBean tag doesn't seem to work. If I run the
same jsp on Jrun running on windows this same page
works fine. Heres part of the output from the
generated servlet on linux followd by the generated
servlet ouput on windows
-----------------------------------------------------
out.println("<jsp:useBean id=\"test\"
class=\"americaii.chpfindr.beans.HelloBean\"
scope=\"session\" />");
out.print("" + ( test.getName() ) );
------------------------------------------
If you notice above the test bean is never
instantiated by the servlet, instead the servlet just
prints out the bean tag to the outputstream as if it
were a HTML tag.
Now the one below is part of the generated output from
windows if you notice it you will see that the servlet
is instantiating the bean.
----------------------------------------------------
americaii.chpfindr.beans.HelloBean test =
(americaii.chpfindr.beans.HelloBean)
JSPRuntime.instantiateBean("test",
"americaii.chpfindr.beans.HelloBean", "session",
__test_was_created, pageContext, request, session,
application);
if(((Boolean)
__test_was_created[0]).booleanValue()) {
}
out.print(test.getName() );
out.print("\r\n\r\n</body>\r\n</html>\r\n");
out.flush();
}
------------------------------------------------------
Have anyone come across this problems before. if so
what is the alternative
Appreciate your inputs
Sanjay
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
===========================================================================
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