Hi
See this clarification from Will Hartung.

http://marc.theaimsgroup.com/?l=tomcat-user&m=104265745710637&w=2

Hope this should clear the things..

-sateesh


-----Original Message-----
From: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 12:23 PM
To: Struts Users Mailing List
Subject: Re: why do we need to create packages

vijay r ha scritto:
> That's fine. I know why packages are for. But why is it necessary to
> create packages to keep our ActionForm classes, Action classes. Name
> collision is the problem which the development team has to tackle.
> What if the development team decides to name classes starting with
> their Employee ID, probability of name collision decreases
> considerably. Is it strictly enforced by Struts to use packages.

In my experience I had sometimes tried to write some servlet-based 
applications with classes with no packages, just to make a test and 
without using Struts. It may seem strange but I got a lot of strange 
errors, such as classes not found. When I modified the code simply 
adding a package everything went fine.
But the question is: why don't you want to use packages? I think it is a

Java convention since 1.0 that you have to name your packages reversing 
your domain URL (com.hello.etc.). I think that not using packages is 
only a question of lazyness.
Ciao
Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Information transmitted by this EMAIL is proprietary to iGATE Group of 
Companies and is intended for use only by the individual 
or entity to whom it is addressed and may contain information that is 
privileged, confidential, or exempt from disclosure under 
applicable law. If you are not the intended recipient of this EMAIL immediately 
notify the sender at iGATE or [EMAIL PROTECTED] 
and delete this EMAIL including any attachments
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to