Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

Problem in using JSP:useBean tag

Thread view: 
onkar.yeolekar@gmail.com - 21 Mar 2007 14:27 GMT
I have tried  a lot of options but coudn't find the answer.

I don't understand how to use this Beans with JSP page.
When I run the page it gives erro ClassNotFound .Though I added the
Bean(that is Java Class having getXXX() & setXXX() methods) in WEB-INF/
Classes/packagename/BeanClassName.java.

is there need to add entry in web.xml file & How?
or
How can I seperate web GUI & Business Logic?
Andrew Thompson - 21 Mar 2007 14:37 GMT
On Mar 22, 12:27 am, onkar.yeole...@gmail.com wrote:

> ..WEB-INF/Classes/packagename/BeanClassName.java.

   WEB-INF/classes/packagename/BeanClassName.java

Andrew T.
onkar.yeolekar@gmail.com - 21 Mar 2007 14:45 GMT
> On Mar 22, 12:27 am, onkar.yeole...@gmail.com wrote:
>
[quoted text clipped - 3 lines]
>
> Andrew T.

Thanx .
But I already done this thing & It is not working.
I am using ApacheTomcat 5.0 & Jdk1.5,
I am storing testApp dir of my application in ..webapps dir.
webapps/testApp/web-inf/... & storing .jsp pages in testApp dir.
shall I edit web.xml?

Also will Tomcat server create .class file for BeanClassName.java
file?
Lew - 21 Mar 2007 20:15 GMT
>> onkar.yeole...@gmail.com wrote:
>>
>>> ..WEB-INF/Classes/packagename/BeanClassName.java.
>>    WEB-INF/classes/packagename/BeanClassName.java
      WEB-INF/classes/packagename/BeanClassName.class

bytecode, not source

onkar.yeole...@gmail.com wrote:
> webapps/testApp/web-inf/
  webapps/testApp/WEB-INF/

> shall I edit web.xml?

No.

> Also will Tomcat server create .class file for BeanClassName.java file?

No.

Make sure you spell your directory names correctly. Andrew and I have pointed
out a couple of mistakes in your posts.

-- Lew


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.