*
The moose likes JSP and the fly likes setting classpath for 'jsp:useBean' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "setting classpath for Watch "setting classpath for New topic
Author

setting classpath for 'jsp:useBean'

Neela Sathesh
Ranch Hand

Joined: Jan 19, 2004
Posts: 50
Hi
I am using javawebserver. while using <jsp:useBean> tag i get cannot find class error.
What is the codebase for javawebserver?
while gone through the previous reponses in javaranch i found it is 'web/inf' but in javawebserver i am not having that 'web/inf'.
please help me.


With regards,<br />Neela.N
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5
This will probably be solved by putting your bean class in a package and putting the class file in the correct place under WEB-INF/classes (etc. for the package) for your web application. (NOT web/inf)
Be sure to import the package and give the full package.class name in the useBean tag.
Bill
Neela Sathesh
Ranch Hand

Joined: Jan 19, 2004
Posts: 50
No 'web/inf' is found in 'javawebserver2.0'
If i have the package stored in 'd:\java\bin\package1'
and the 'jsp' in c:\jspfile.jsp, then where i have to place the class file and what is the class path?
<jsp:useBean id="a"class="???" ..../>
Prakash Dwivedi
Ranch Hand

Joined: Sep 28, 2002
Posts: 452
I am using javawebserver
may i ask why?
Sun Microsystem hasn't released any new version of javawebserver for last many years. Which makes it obsolete, as it will not provide the functionality added in last 2-3 years. And if i remember correctly you can no longer download it from Sun's site as they discourage you to use it.
i will strongly recommend you to switch to some other server. May be Jakarta's Tomcat(it's opensource).
Below is the quote from Sun's web site: http://wwws.sun.com/software/jwebserver/

In late 1999, Sun announced that Java Web Server 2.0 was the last planned release of Java Web Server. On February 7th 2001, Sun announced the End Of Life (EOL) of Java Web Server.

[ February 28, 2004: Message edited by: Prakash Dwivedi ]

Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
 
Consider Paul's rocket mass heater.
 
subject: setting classpath for 'jsp:useBean'