Question

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 key="/page.html?qs=1" value="/otherpage.html?qs=1"/>
        ...
    </map>

..where the query string key=value pairs vary?

Was it helpful?

Solution

This is not done at the Spring level.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top