THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- If you are a Maven user, you might want to get started using the Maven Archetype.
- Another quick-start entry point is the blank application. Rename and deploy the WAR as a starting point for your own development.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-core</artifactId> <version>2.3.24</version> </dependency> |
...
Code Block | ||||
---|---|---|---|---|
| ||||
mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<repositories> <repository> <id>apache.nexus</id> <name>ASF Nexus Staging</name> <url>https://repository.apache.org/content/groups/staging/</url> </repository> </repositories> |
...
This version moves all excluded parameters from struts-default.xml
into DefaultExcludedPatternsChecker.java
- if you cannot migrate to the latest version it's highly recomendated recommendated to re-define defaultStack
from struts-default.xml
to this one below (or any other which is used in your application and drop excludeParams
parameter):
...
and define the following constant in struts.xml
Code Block | ||
---|---|---|
| ||
<constant name="struts.additional.excludedPatterns" value="^(action|method):.*"/> |
...