[opencms-dev] useBean in Jsp

S.Wittig google at elektromeister-wittig.de
Tue May 22 22:30:49 CEST 2007


Hi,

i wrote a java class which implements a connection to a mySql Database and
more.
i want to use this class as a bean like
<jsp:useBean id="myClass" ....scope="session">
<%
...
myClass.connect(....)
...
%>
</jsp:useBean>
now i can use the bean and his functions.
till now all works perfect. but when i refresh the jsp, the bean myClass
lost the connection and all the member´s are empty.

i don´t know why because i have a second bean and this bean work like
expected.

i stored the .class files (for the database connection) as a jar-package in
the .../opencms/WEB-INF/lib folder.
the other .class files from the "working"-bean i stored in the module folder
in opencms workplace.

could that be the reason?
hope i could explain my problem exactly.

sebastian


-- 
View this message in context: http://www.nabble.com/useBean-in-Jsp-tf3800276.html#a10751935
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list