where can i get more information regarding using
java beans with weblogic
I want to use javabeans in jsp
with<usebean > tag
but i dont know where to place it
also how to deploy it as it cannot be deployed in same container with an EJB
SO IS A SEPERATE JAR FILE NEEDED
CAN I USE THE WEBLOGIC DEPLOYMENT TOOL TO DEPLOY IT(IF SO
HOW WILL I ADD THE MANIFEST )
please do help
You can use the useBean tag in the beginning of a jsp file.
See the sample below :
Here, iBook is the id by which the bean called InitBook will be referred throughout the JSP file.
hope this helps..
i know how to use a bean in jsp
but my question is where to put it in weblogic?
can it be put in the same jar file as an ejb
as javabean specification say manifest is required
while ejb1.1 need no manifest.
further with the deployment tool of weblogic , how will you create manifest?
can java bean be put in same container as ejb?
In weblogic keep ur bean class in weblogic\classes directory.
No need to deploy or create any jar files.( no need even a manifest file )
Just compile ur Javabean.java and put the Javabean.class in weblogic\classes directory.
I hope this will sort out ur problem.
Any further doubts u can contact me at
jvnk at yahoo dot com
then how can you call it a bean
java bean specifications points to using manifest and
jar (see javabean tutorial)
if these two are not needed it is only a simple class with
the partial structure of a java bean, with setter/getter methords
correct me if wrong
Beans can be classified in two different categories depending upon the usage. First one are visual beans(for which manifest file ans jar file needs to be created) and second are database specific beans which generally are used in JSP.You are right when u say beans are just classes.
In any type of bean you need to define an constructorwith no arguments.
I hope it helps