开发者

In Java/Spring, how do you setup the hashmap to append the query string?

开发者 https://www.devze.com 2022-12-09 17:51 出处:网络
in spring-config/applicationContext-mapping.xml: I have this code fragment: <bean id=\"unused-url-quick\" class=\"java.util.HashMap\">

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号