Scott Purcell wrote:
I have ran into that issue many times, and my workaround has always been to put your
bean in a class.
eg. com/MoniTestBean
and make sure you add the package statement
package com; at the top of your java file,
recompile, then change your useBean to look like this. Where you put the class was
perfect. So All should be good.
*jsp:useBean id=formHandler scope=request class=com.MoniTestBean/
I bet that works. I talked to my teacher about it before and he believes that all
beans have to be in a named package.
I always worked for me.
good luck
Scott Purcell
Vertis Corporation
-Original Message-
From: chuck amadi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 7:16 AM
To: Tomcat Users List; taglibs-user-help
Subject: javax.servlet.ServletException: Cannot create bean of class
MoniTestBean
I have a problem with the following i have created and compiled my
JavaBeans in my Web-Inf /classes folder and everythings fine .
Nevertheless in the stack trace i get a error 500 cannot create Bean. I
have posted this on numerous occasions to no avail.
Can anyone lends some time and have a look as basically this is
preventing me completing this Questionairre Web Forms Project
(Validation Problem).
Thus i have the useBean tag as follows:
*jsp:useBean id=formHandler scope=request class=MoniTestBean/
jsp:setProperty name=formHandler property=*/
And also the request.getParameter test but due the the non creation of
the bean in the stack trace thus the jvm from the server is causing me
this dilema.
Any suggestions my set-up: RHlinux v7.2 JTomcat v3.3a as Tomcat v4
didn't function properly and Netbeans IDE 3.2.2 Text Editor Emacs.
%=request.getParameter(surName)%
%=request.getParameter(foreName)%
%=request.getParameter(monDisable)%
Thus the return value was null as the bean cannot create/intialate itself.
* Internal Servlet Error:*
javax.servlet.ServletException: Cannot create bean of class MoniTestBean
I have posted this problem a few times and unfortunately no suggestions
, i have gone through the usual procedures .
Cheers Chuck Amadi
Systems Programmer
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]
Hi There, cheers for your input , Apparently one can declare a Bean in
classes default Package and thus uses the page import directive to call
on a Bean.class from anywhere. ie %@ page import =MoniBean % Thus
this can call numerous Bean.class file's by either terminating each
Bean.class with a semi colon or list them accordingly . Nevetheless the
standard wat is what you described and what my boss has done on a
previous project.Thus after testing ect i will be creating the
neccessary package paths as per our organisation.
So anyway this was a good point and thus made me go back to the doc's
and jsp books for some nightly digestion.
Cheers again as im nearly 90% finished apart from i'm using the Memento
design pattern to process jsp and javabeans.
except im having to do overtime on indexed property type ie String[]
opportunities for handling checkboxes.
Cheerx Chuck Amadi
Systems Programmer
Rhaglennydd Systemai
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]