Apache Struts 2 Documentation > Home > FAQs |

Apache Struts 2 Documentation
FAQs
Edit Page Browse Space Add Page Add News
Added by lagcisco, last edited by Tom Schneider on Feb 18, 2007 (view change)

| Adding New FAQs Each FAQ should be cross-referenced from a relevant page in one of the guides. (If there is not a relevant page in the guide, then we probably need to create one!) Each question should be a new page. Answers should be concise and focussed. If an answer seems long, or seems like it could relate to more than one section, then the question might be addressing more than one concern. FAQs can also be "mini-HOWTOs". As long as the question and answer are focused on a single concern, length is not an issue.

| For more questions and answers, visit "The Vault".

### Migrating

- See the Migration Guide

### General

- Where do we get the latest version the framework?
- What are some of the framework's best features?
- Can you suggest an elevator pitch?

### HOWTO

- How can we display dynamic or static images that can be provided as an array of bytes?
- How can we test applications?
- How can we test Actions?
- How do we upload files?
- How can we force the Action Mappings (struts.xml) to reload?

### Configuration

- Can we break up a large struts.xml file into smaller pieces?
- Parameters in configuration results

### Accessing Resources

- How do we get access to the session?
- How can we access the HttpServletRequest?
- How can we access the HttpServletResponse?
- How can we access request parameters passed into an Action?
- How do we access static parameters from an Action?
- Can we access an Action's Result?
- How do I obtain security details (JAAS)?

### 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?

### Interceptors

- Why isn't our Prepare interceptor being executed?
- How do we configure an Interceptor to be used with every Action?

### Validation

- Why is my action returning "input" when the form is filled out correctly?
- How do I use messages from within the validator
- How can I fix the "Attribute 'short-circuit'" error message
- How do we repopulate controls when validation fails
- How do I unit test my action's validation logic
- Why does WW ignore my message when its enclosed in CDATA

### Localization

- How do we change locales
- 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

- What are the default variables in the value stack

### Tags

- Why do the form tags put table tags around controls?
- 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 an action tag run another method apart from the default execute method?
- Why didn't my action tag get executed when I have validation errors?
- Why are request parameters appended to our hyperlinks?
- Why doesn't the if tag evaluate test="#parameters.someParam ... " properly
- How do I render a single radio button?

### POJOs

- Should the framework call getModel multiple times as a page renders

### Spring

- How can we create our Action objects from the Spring configuration?
- Why would we want to create Action objects from the Spring configuration?

### Velocity

- I'm trying to run the example in the tutorial on Tomcat, and it can't instantiate the VelocityEngine

### Ajax/Dojo

- IE showing a prompt saying "This page contains both secure and nonsecure items" when using dojo

### Issues in Specific Environments

- Weblogic 8.1

## Extensions

- Does the framework integrate with Hibernate
- Can we use JSTL with the framework
- Can we use JUnit with the framework
- Can we use TestNG with the framework
- How can we schedule Quartz jobs
- Can we use Acegi Security with the framework

### Portlet Support(JSR168)

- Which portal servers are supported
- How to build the portlet WAR for a specific portal server

### Migrating

- Why is my action unavailable?

## Other FAQs

- Apache Struts FAQs

## Next: Cookbook

Children Show Children Hide Children
Why doesn't the if tag evaluate test=" (Apache Struts 2 Documentation)
Can I change theme on a per-page basis (Apache Struts 2 Documentation)
How do we upload files (Apache Struts 2 Documentation)
Why are request parameters appended to our hyperlinks (Apache Struts 2 Documentation)
Why does WW ignore my message when its enclosed in CDATA (Apache Struts 2 Documentation)
How do I unit test my action's validation logic (Apache Struts 2 Documentation)
Does the framework integrate with Hibernate (Apache Struts 2 Documentation)
Should the framework call getModel multiple times as a page renders (Apache Struts 2 Documentation)
How do I use messages from within the validator (Apache Struts 2 Documentation)
How do we get access to the session (Apache Struts 2 Documentation)
Why does FreeMarker complain that there's an error in my user-directive when I used JSP Tag (Apache Struts 2 Documentation)
How can we schedule Quartz jobs (Apache Struts 2 Documentation)
How can we access the HttpServletResponse (Apache Struts 2 Documentation)
Which portal servers are supported (Apache Struts 2 Documentation)
What are some of the framework's best features (Apache Struts 2 Documentation)
Why isn't our Prepare interceptor being executed (Apache Struts 2 Documentation)
Why is the application logging a warning that the Compound Root cannot find a particular Object with a particular property (Apache Struts 2 Documentation)
What are the default variables in the value stack (Apache Struts 2 Documentation)
How do I set a global resource bundle (Apache Struts 2 Documentation)
How can we access request parameters passed into an Action (Apache Struts 2 Documentation)
How do I add I18N to a UI tag, like the textfield tag (Apache Struts 2 Documentation)
What is the ActionContext? (Apache Struts 2 Documentation)
How do I decouple XWork LocalizedTextUtil global resource bundle loading from serlvets (Apache Struts 2 Documentation)
Can you suggest an elevator pitch (Apache Struts 2 Documentation)
Can I change templateDir on a per-page basis (Apache Struts 2 Documentation)
How do I change the invalid input error message for a particular field (Apache Struts 2 Documentation)
Can we use JUnit with the framework (Apache Struts 2 Documentation)
How to escape special chars in resource bundles (Apache Struts 2 Documentation)
Can an action tag run another method apart from the default execute method (Apache Struts 2 Documentation)
Can we use Acegi Security with the framework (Apache Struts 2 Documentation)
How to support UTF-8 URIEncoding with Tomcat (Apache Struts 2 Documentation)
How do we repopulate controls when validation fails (Apache Struts 2 Documentation)
How can we force the Action Mappings (struts.xml) to reload (Apache Struts 2 Documentation)
How can I fix the "Attribute 'short-circuit'" error message (Apache Struts 2 Documentation)
IE showing a prompt saying "This page contains both secure and nonsecure items" when using dojo (Apache Struts 2 Documentation)
Can we break up a large struts.xml file into smaller pieces (Apache Struts 2 Documentation)
Can we use JSTL with the framework (Apache Struts 2 Documentation)
Why is my action unavailable (Apache Struts 2 Documentation)
Where do we get the latest version the framework (Apache Struts 2 Documentation)
How to build the portlet WAR for a specific portal server (Apache Struts 2 Documentation)
How do we change locales (Apache Struts 2 Documentation)
How can I put a String literal in a Javascript call, for instance in an onChange attribute (Apache Struts 2 Documentation)
Can I add I18N outside the Action's context (Apache Struts 2 Documentation)
How can we test applications? (Apache Struts 2 Documentation)
Why didn't my action tag get executed when I have validation errors (Apache Struts 2 Documentation)
Cookbook (Apache Struts 2 Documentation)
I'm trying to run the example in the tutorial on Tomcat, and it can't instantiate the VelocityEngine (Apache Struts 2 Documentation)
How do I obtain security details (JAAS) (Apache Struts 2 Documentation)
Can I change templateSuffix on a per-page basis (Apache Struts 2 Documentation)
How do I enable encoding in my forms (Apache Struts 2 Documentation)
How can we display dynamic or static images that can be provided as an array of bytes (Apache Struts 2 Documentation)
How can we access the HttpServletRequest (Apache Struts 2 Documentation)
Can we access an Action's Result (Apache Struts 2 Documentation)
How do we access static parameters from an Action (Apache Struts 2 Documentation)
Why won't the 'if' tag evaluate a one char string (Apache Struts 2 Documentation)
Why do the form tags put table tags around controls (Apache Struts 2 Documentation)
How does Struts 2 make web applications easier to develop, deploy, and maintain (Apache Struts 2 Documentation)
How do we configure an Interceptor to be used with every Action (Apache Struts 2 Documentation)
Why is my action returning "input" when the form is filled out correctly (Apache Struts 2 Documentation)
How can we create our Action objects from the Spring configuration (Apache Struts 2 Documentation)
Why would we want to create Action objects from the Spring configuration (Apache Struts 2 Documentation)
How can we change which methods are excused from validation (Apache Struts 2 Documentation)
How can we test Actions (Apache Struts 2 Documentation)
Can we use TestNG with the framework (Apache Struts 2 Documentation)
Parameters in configuration results (Apache Struts 2 Documentation)
How do I render a single radio button (Apache Struts 2 Documentation)
Weblogic 8.1 (Apache Struts 2 Documentation)