Search

Jakarta Struts II: Configuring Struts Applications

  • Configure a struts servlet just like a normal servlet in the web.xml file
  • Configure Tag libraries in the web.xml
    • taglib
      • taglib-uri
      • taglib-location
  • Configure the Struts Configuration File
    • struts-config
      • data-sources
        • autoCommit
        • description
        • driverClass
        • maxcount
        • minCount
        • user
        • password
        • url
      • form-beans
        • Elements
          • icon
          • display-name
          • description
          • set-property
          • form-property*
              • className
              • initial
              • name
              • type
        • Attributes
          • className
          • dynamic true/false
          • name
          • type
      • global-exceptions
        • className -decendant of org.apache.struts.config.ExceptionConfig
        • handler-decendant of org.apache.struts.action.ExceptionHandler
        • key
        • path
        • scope-request/session
        • type
        • bundle
      • global-forwards
        • className
        • contextRelative
        • name
        • path
        • redirect
      • action-mappings
        • action
          • attribute
          • className
          • forward
          • include
          • name
          • path
          • parameter
          • prefix
          • roles
          • scope
          • suffix
          • type
          • unknown true/false
          • validate
      • controller
        • bufferSize
        • className
        • contentType
        • debug
        • forwardPattern
        • input forward
        • locale
        • maxFileSize
        • mulitipartClass
        • nocache
        • pagePattern
        • processorClass
        • tempDir
      • message-resources
        • className -decendant of org.apche.struts.config.MessageResourceConfig
        • factory
        • key
        • null
        • parameter
      • plug-in*
        • setProperty*
Using Multiple Application Modules
  • init-param of Servelt must be modified
    • param-name
    • param-value - File path

blog comments powered by Disqus