Re: why do we need to create packages
vijay r wrote: > But how come its working. My ActionForm is instantiated by some class > in the struts package. How can that class see my ActionForm which is > in an anonymous package. What? Because your class is on your classpath in an un-named package. Why do you think it shouldn't find it?! Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: why do we need to create packages
Its not that I do not want to create any packages, I just wanted to check whether the ActionForms, Actions work without a package or not. http://marc.theaimsgroup.com/?l=tomcat-user&m=104265745710637&w=2 My ActionForm, Action have no packages and they are working. I made a silly mistake in struts-config.xml because of which it was not working. But how come its working. My ActionForm is instantiated by some class in the struts package. How can that class see my ActionForm which is in an anonymous package. regards, vijay. On 6/7/06, Sateesh Nelluri <[EMAIL PROTECTED]> wrote: 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: why do we need to create packages
That's cool.. Thanks and Regards, Sharadha Yadav M.S. Infosys Technology Ltd. -Original Message- From: Sateesh Nelluri [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 12:49 PM To: Struts Users Mailing List Subject: RE: why do we need to create packages 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] 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]
RE: why do we need to create packages
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]
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]
RE: why do we need to create packages
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]
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]
RE: why do we need to create packages
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]
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]