In Java/Spring, how do you setup the hashmap to append the query string?
in spring-config/applicationContext-mapping.xml:
I have this code fragment:
<bean id="unused-url-quick" class="java.util.HashMap">
<constructor-arg>
<map>
<entry key="/page.html" value="/otherpage.html"/>
...
</map>
I can an add an entry key to redirect from one page to another.
Using this same method how can I pass a querystring parameter to the otherpage.html...
<bean id="unused-url-quick" class="java.util.HashMap">
<constructor-arg>
<map>
<entry ke开发者_如何学Goy="/page.html?qs=1" value="/otherpage.html?qs=1"/>
...
</map>
..where the query string key=value pairs vary?
This is not done at the Spring level.
精彩评论