开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜