How do I set value to requestURI by action class in Struts2 or another form. I need to change value of requestURI according to tile.
相关问题
- Java/Struts2: How to get action name from current
- NPE in StrutsTestCase after enabling Tiles
- In Tiles,Struts2 java.lang.NoClassDefFoundError: o
- Validating double field in struts 2
- How to use multiple forms / actions in a single vi
相关文章
- Struts2 file upload max size
- Current URL /web/guest/HTML generates exception: n
- UrlRewrite Struts2 setting parameter variables
- How to Set a HashMap from jsp to Action
- Struts 2 jQuery plugin isSubscribe not working
- How to set the values in session?
- Null values are insering in data base using Struts
- Why do we use struts tags and not the old HTML tag
Option 1: Pass value from action (Better way)
In
yourAction.java
In
jsp
fileIf you want to pass your own parameter in url
Option 2: Pass value from tile (Not Recommanded)
In
tiles.xml
Note: Use proper tiles version and
tiles.xml dtd
to usecascade="true"
.In
welcome.jsp