Hi Pallav,
> > hi..i'm trying to load a jsp page using a
> > bean..the jsp file is located in D:\Program
> > Files\Tomcat\webapps\jspTest
> > The bean is located in D:\Program
> > Files\Tomcat\webapps\jspTest\Web-inf\classes and is
> > a valid .class file...there are no package
> > declarations...and this is the entry in server.xml
> > <Context path="/jspTest" docBase="jspTest"
> > debug="0" reloadable="true"/>
Your docBase is wrong... it should be "webapps/jspTest". Also if you are
putting your application in webapps then you need not modify server.xml
> > do i need to put the bean name in web.xml??
> > currently i do not have a web.xml for this webapp
> > because i am not using servlets...
> > any help appreciated..thanks..
No, you do not need to define anything in web.xml. If the beans are in a
package, you can use it like
<jsp:useBean id="beanName"
class="fully_qualified_classname" scope="scope"/>
However, if the bean in not in a package, you need to import it before
using. Take a look at
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPBeans4.html#64054 and go
through the complete tutorial for any more clarifications.
Hope this helps,
Sourabh
___________________________________________________________________________
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