| Author |
importing a struts library
|
Sunny Gibbony
Ranch Hand
Joined: May 14, 2008
Posts: 39
|
|
I have "import org.apache.struts.action.*;" as one of the things I need to import as I need to extend my class to the Action class under that library. However Netbeans is saying "package org.apache.struts.action.*; does not exsist" I guess that means I don't have that package downloaded, where can I get the package and what folder on my computer does it go into? Thanks
|
 |
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
|
|
You can download the lates Struts 1 version (1.3.8) from the Struts Home Page. The easiest way to set things up in NetBeans is to unzip the file struts-blank-1.3.8.war that comes with the download into a project folder and use this as the basis of your Struts project. If you do this, you will see that the struts-core-1.3.8.jar file is placed in the /WEB-INF/lib folder, which NetBeans will add to the compile class path.
|
Merrill
Consultant, Sima Solutions
|
 |
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
|
|
A. Hill, One other administrative matter: The name you are currently displaying with your posts does not meet the requirements of the JavaRanch naming policy. Specifically, it requires that you use a first and last name (Not just an initial) that is not obviously fictitions. Please Click on the My Profile link on the top of this page to change your publicly displayed name to one that meets these requirements.
|
 |
Sunny Gibbony
Ranch Hand
Joined: May 14, 2008
Posts: 39
|
|
Originally posted by Merrill Higginson: A. Hill, One other administrative matter: The name you are currently displaying with your posts does not meet the requirements of the JavaRanch naming policy. Specifically, it requires that you use a first and last name (Not just an initial) that is not obviously fictitions. Please Click on the My Profile link on the top of this page to change your publicly displayed name to one that meets these requirements.
It is actually allowed in the naming policy "You can even use an initial or initials for the first name if you like (but not the last)." The is the 2nd time a Java Ranch officer has mis-informed me on the naming policy. Thanks, A. Hill
|
 |
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
|
|
|
You're right. My apologies. By way of explanation, the naming policy has changed recently to allow this, and some of us haven't kept up on the changes.
|
 |
Sunny Gibbony
Ranch Hand
Joined: May 14, 2008
Posts: 39
|
|
Merrill, It's okay. Thanks for informing me that the naming policy has been recently changed so I can expect more private messages from the officers.
|
 |
 |
|
|
subject: importing a struts library
|
|
|