The Artima Developer Community
Sponsored Link

Java Answers Forum
HELP ME, PROBLEMS WITH JSP

1 reply on 1 page. Most recent reply: Apr 17, 2003 9:22 AM by Sohail Sikora

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
bogdan

Posts: 3
Nickname: killaz
Registered: Mar, 2003

HELP ME, PROBLEMS WITH JSP Posted: Apr 2, 2003 1:12 PM
Reply to this message Reply
Advertisement
Hi, i have problems with JavaBeans in JSP.
In a jsp file( locating in ROOT directory of tomcat 4.0.6 :jakarta-tomcat-4.0.6\webapps\root ) i have this code:

<jsp:useBean id="paramBean" class="licentza.ParamBean" />
<jsp:setProperty name="paramBean"
property="nume"
value='<%= request.getParamete("numeUser") %>' />

where ParamBean it's a "bean" class locating in jakarta-tomcat-4.0.6\webapps\examples\web-inf\classes\licentza (licentza is the package i'm using).
And i get this error:

Generated servlet error:
D:\jakarta-tomcat-4.0.6\work\Standalone\localhost\_\dora\intrare2$jsp.ja va:67: Class licentza.ParamBean not found.
ParamBean paramBean = null;

What is the problem?Thank you.


Sohail Sikora

Posts: 2
Nickname: trytohelp
Registered: Apr, 2003

Re: HELP ME, PROBLEMS WITH JSP Posted: Apr 17, 2003 9:22 AM
Reply to this message Reply
You cannot have the JSP in webapps\root and the bean in webapps\examples.

Tomcat I think, uses the path relative to the webapp name. The bean would have to be in webapps\root\web-inf\classes\

Flat View: This topic has 1 reply on 1 page
Topic: java newbie wants RMI task list Previous Topic   Next Topic Topic: JFrames

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use