• Struts:
    • Type: java based web framework s/w
    • Version: 1.3.8(j2sdk 1.4/1.5), 2.0.11(j2sdk 1.5+)
    • Vendor: apache foundation
    • Open s/w
    • Help: www.apache.org
    • Download: as a zip file from www.apache.org
    • Good online tutorial: www.Roseindia.com
    • Reference book: Jakarta struts1.x
  • Installing struts 1.x s/w is nothing but extracting the struts 1.3.8-all.zip file to a folder. The folder where struts s/w zip file is extracted is called struts home directory
  • Struts/lib/struts-core-1.3.8 version jar file represent the whole struts api and this jar file is having mulitple dependent jar file
  • Struts 1.x s/w
    • It  gives base framework struts-source library s/w
    • Jsp tag libraries
    • Plug in
      • Validator plug-in
      • Tile plug-in
    • Source code s/w documentation
    • Example application
  • Plug in are the add on s/w to the base framework s/w to enhance the functionalities of based framework s/w
  • Jsp tag library are useful to make jsp as java code less jsp
  • Action servlet: struts supply its own web container called action servlet. An integrate with other technologies to provide model and view layer of servlet. Action servlet is built in controller servlet of struts based web app, but it integrated logic will be generated dynamically based on other input values.
  • Setup require to develop struts 1.x application
    • J2sdk 1.4/1.5
    • Struts 1.3.8 s/w
    • Any web server/application server that is compatible with j2sdk 1.4/1.5 s/w
    • Tomcat 5.0,5.5
    • Weblogic 8.1/9/0 or 8x/9x
  • While choosing web server/app server s/w make sure that weather there are compatible with struts, j2sdk s/w version
  • Developing struts app is nothing but adding third party api called struts api support to the normal web app while developing web resource of web app
  • Since struts s/w, api is not part of java or j2ee api it is called third party s/w /api
  • When java web app use third party api(other than j2sdk api) then the 3rd party api related main jar file should be kept in the classpath and 3rd party api main and dependent api jar file be kept in WEB-INF/lib folder of web app deployment directory structure
  • Jar files added in the classpath will used by java compiler during the compilation web resources programs.
  • To recognize third party api, Similarly jar file added in WEB-INF/lib folder will be used by web server during the executing of web resource programs to recognize and third party api
  • When struts is support to added the web app place struts api related main jar file in classpath file in WEB-INF\lib folder of web app deployment directory structure
  • If classes of one jar file are using classes of another jar file then another jar file is called dependent jar file to first jar file
  • Struts-core-1.3.8.jar file is the main jar file representing struts api and it is having multiple dependent jar file