Problem could be that the class you are creating is of the same name as
the packages that get included as part of API ..that's what comes to my
mind






Thanks and Regards,
Sharadha Yadav M.S.
Infosys Technology Ltd.


-----Original Message-----
From: vijay r [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 11:45 AM
To: Struts Users Mailing List
Subject: Re: why do we need to create packages

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.

I dont think Java 1.5 specification speficies it explicitely to
compulsarily use packages. Any pointers, Andre. Doesn't the compiler
create a default package.

regards,
vijay.

On 6/7/06, Sharadha Yadav <[EMAIL PROTECTED]> wrote:
>
>
> Packages are created to avoid  collision in namespace...
>
>
> Supposing you have two different classes with same name, you need to
> associate the class with a package to make clear that the class comes
> from a particular package...
>
>
>
>
>
>
>
> Thanks and Regards,
> Sharadha Yadav M.S.
> Infosys Technology Ltd.
>
> -----Original Message-----
> From: vijay r [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 07, 2006 11:32 AM
> To: Struts Users Mailing List
> Subject: why do we need to create packages
>
> Hello,
>
> I was wondering why do we need to create packages to keep our
> ActionForms, Action classes. Can't we do without creating packages.
>
> I created the .class files in WEB-INF\classes directory and gave no
> package names in struts-config.xml file. It gave NullPoniterException
> - Error creating form bean of class Test.
>
> regards,
> vijay.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
solely for the use of the addressee(s). If you are not the intended
recipient, please notify the sender by e-mail and delete the original
message. Further, you are not to copy, disclose, or distribute this
e-mail or its contents to any other person and any such actions are
unlawful. This e-mail may contain viruses. Infosys has taken every
reasonable precaution to minimize this risk, but is not liable for any
damage you may sustain as a result of any virus in this e-mail. You
should carry out your own virus checks before opening the e-mail or
attachment. Infosys reserves the right to monitor and review the content
of all messages sent to or from this e-mail address. Messages sent to or
from this e-mail address may be stored on the Infosys e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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

Reply via email to