• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling bean method in servlet

 
Ilja Smoli
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i guess its newbie question , but im stuck on this
im trying to call javabean method in servlet.
My settings: Tomcat 3.3, classpath set to c:\tomcat\lib\common\servlet.jar\
win2k
bean:

Then i try to call method getQuery in servlet:

Servlet compilation gives error:
Mega.java:12: cannot resolve symbol
symbol : class aTest
location: class ee.lynx.ladu.Mega
aTest lala = new aTest();
^
Mega.java:12: cannot resolve symbol
symbol : class aTest
location: class ee.lynx.ladu.Mega
aTest lala = new aTest();
^
2 errors

Any suggestions?
thx in advance..
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to add the path to your package to your classpath.
 
Krishna Srinivasan
Ranch Hand
Posts: 1872
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
set ur classpath properly.& then try it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic