This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one for details.
Do we have to keep the struts.jar file in the C:\j2sdk1.4.1_02\jre\lib\ext directory while compiling servlets and then remove the struts.jar file from the C:\j2sdk1.4.1_02\jre\lib\ext directory while running our struts? I know that the struts.jar cannot be in the classpath at runtime. To me, it is quite tedious to do. Will servlets be compiled properly if the struts.jar is not in the classpath? :roll: 2. Toward the end of the instruction, it says that "ActionForm class can be deleted". But, where is the ActionForm class? I know that the LoginForm.java extends ActionForm. And I saw only LoginAction.java, LoginBean.java, and LoginForm.java, I did not see ActionForm. I am confused.
In order to compile things like your ActionForms, ActionBeans, etc, you will need struts.jar in your javac.classpath. There is no need to remove it from your classpath if you don't want to. Here is what I do. I have a folder called java. Inside this folder is where I do ALL my developement for whatever JAVA stuff. I have a folder in there called lib. In this lib folder I have every possible JAR file that any of my applications might need. So I use that as my classpath for every application. There is no harm in this because javac will just look for what it needs. Nothing more. When it is time to build, I will use ANT to copy any jar files I need into the current build folder for my app. So let's say I find a new JAVA Library to use on a new project. Where does it go? My java\lib folder. It's just a global classpath folder for myself. You don't have to do it this way. You can cut, copy, move, paste all you want. But you don't have to.