Adding New FAQs
Each question should be a new page. When possible, answers should be cross-linked with the reference documentation. Answers should be concised and focussed. If an answer seems long, then it might be addressing more than one question.
For more questions and answers, visit "The Vault".
General
- How do I get the latest version the framework
- Can I break up a large struts.xml file into smaller pieces
- I'm trying to run the example in the tutorial on Tomcat, and it can't instantiate the VelocityEngine
- Should the framework call getModel multiple times as a page renders
Accessing Resources
- How do I get access to the session
- How can I get the HttpServletRequest
- How can I get the HttpServletResponse
- How can I see all request parameters passed into the Action
- How do I obtain security details (JAAS)
- How do I get static parameters into my action
- How do I handle uploading files
- Can I access an Action's Result
- How can we force the Action Mappings (struts.xml) to reload
Per-Page Settings
- Can I change theme on a per-page basis
- Can I change templateDir on a per-page basis
- Can I change templateSuffix on a per-page basis
HOWTO
- How can we display dynamic or static images that can be provided as a array of bytes
- How can we test Actions
Interceptors
Validation
- How do I use messages from within the validator
- How can I fix the "Attribute 'short-circuit'" error message
- How do I populate my action properties upon validation failure
Localization
- How do I set a global resource bundle
- How do I decouple XWork LocalizedTextUtil global resource bundle loading from serlvets
- How do I add I18N to a UI tag, like the textfield tag
- Can I add I18N outside the Action's context
- How to support UTF-8 URIEncoding with Tomcat
- How do I enable encoding in my forms
- How to escape special chars in resource bundles
Type Conversion
- How do I change the invalid input error message for a particular field
- Why is the application logging a warning that the Compound Root cannot find a particular Object with a particular property
Value Stack
Tags
- How can I put a String literal in a Javascript call, for instance in an onChange attribute
- Why won't the 'if' tag evaluate a one char string
- Why does FreeMarker complain that there's an error in my user-directive when I used JSP Tag
- Can I have my webwork action tag run another method apart from the default execute method
- Why didn't my action tag get executed when I have validation errors