Wrox Programmer Forums
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 29th, 2004, 09:51 PM
Registered User
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default package

  Hi,
  I created my own aplication(myApp) under webapps,I put all my own classes under /myApp/WEB-INF/classes.It works fine
  I want to put my classes in order.So I created two folders /myApp/WEB-INF/classes/myPackageA and /myApp/WEB-INF/classes/myPackageB
  How can one class(A.java) under /myApp/WEB-INF/classes/myPackageA use other class (First.java) under /myApp/WEB-INF/classes
  or (B.java) /myApp/WEB-INF/classes/myPackageB? I put "package myPackageA;" in the first line of A.java and
"package myPackageB;" in the first line of B.java.It doesn't work.
How these these classes(First.java,A.java, B.java) can use each other?
Thanks Dennis


 
Old May 18th, 2004, 10:26 AM
Registered User
 
Join Date: May 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I believe you could just import them.

Quote:
quote:Originally posted by Dennis
  Hi,
I created my own aplication(myApp) under webapps,I put all my own classes under /myApp/WEB-INF/classes.It works fine
I want to put my classes in order.So I created two folders /myApp/WEB-INF/classes/myPackageA and /myApp/WEB-INF/classes/myPackageB
How can one class(A.java) under /myApp/WEB-INF/classes/myPackageA use other class (First.java) under /myApp/WEB-INF/classes
or (B.java) /myApp/WEB-INF/classes/myPackageB? I put "package myPackageA;" in the first line of A.java and
"package myPackageB;" in the first line of B.java.It doesn't work.
How these these classes(First.java,A.java, B.java) can use each other?
Thanks Dennis







Similar Threads
Thread Thread Starter Forum Replies Last Post
HowtoRun package from .asp from Package Store? Tom de Koning BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 0 June 21st, 2006 08:08 AM
don't run my package when i schedule package Isra2005 SQL Server DTS 1 May 17th, 2005 01:34 AM
Package huskie Access 11 August 26th, 2003 11:34 AM
package issues drew JSP Basics 0 June 4th, 2003 06:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.