Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JARs for Struts Programming

 
Deepak Kumar Jena
Ranch Hand
Posts: 68
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need details about the JARs required for DispatchAction, LookupDispatchAction, MappingDispatchAction, IncludeAction and ForwardAction programming using Struts 1.x:

1. JARs to be present in the CLASSPATH
2. JARs to be present in the lib of the web application
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the following link http://findjar.com/index.x
 
Tim Moores
Bartender
Posts: 2895
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why wouldn't you just download Struts and use the jar files that come with it? Note that not all servlet containers (Tomcat, for example) make use of CLASSPATH.
 
Deepak Kumar Jena
Ranch Hand
Posts: 68
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The information I am looking for is the JARs needed to be present in the CLASSPATH to compile the XXXAction(s) and the JARs needed in the lib folder of the application to run them properly. The complete set of JARs provided in the Struts distribution are not needed for each and every application as they are specific to some purpose only.
 
Deepak Kumar Jena
Ranch Hand
Posts: 68
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mohana Rao wrote:Use the following link http://findjar.com/index.x

It is the place to download the JARs. Need the information about the JARs (name, version, etc.)
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think anyone around here has done extensive work mapping all the dependencies of the various Struts classes. Why don't you start with the full compliment of JAR files (each Struts release comes with a "blank" application which is a good starting point) and remove the JAR's you don't think you need?
 
Deepak Kumar Jena
Ranch Hand
Posts: 68
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Moores wrote:Why wouldn't you just download Struts and use the jar files that come with it? Note that not all servlet containers (Tomcat, for example) make use of CLASSPATH.

Using the application specific JARs in the lib is a better approach of application development. The Struts distribution contains a number of JARs for different purpose (logging, beanutil, validation, etc). To minimize the size of the application the necessary JARs are only needed to be kept in the library.
 
Tim Moores
Bartender
Posts: 2895
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepak Kumar Jena wrote:Using the application specific JARs in the lib is a better approach of application development.

Why? What specific problem are you trying to address? As Joe said, it is not possible to know in advance for any given scenario whether or not you're going to need one of the constituent jar files. You're not better off omitting some of them, you're off worse.
 
Deepak Kumar Jena
Ranch Hand
Posts: 68
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Ess wrote: I don't think anyone around here has done extensive work mapping all the dependencies of the various Struts classes. Why don't you start with the full compliment of JAR files (each Struts release comes with a "blank" application which is a good starting point) and remove the JAR's you don't think you need?

It will be appreciable if you can share some knowledge about the following JARs in the Struts 1.3 Distribution -
1. struts-core-1.3.10.jar
2. struts-extras-1.3.10.jar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic