Stripes

Parameter in query string do not override clean URL default values

Details

Description

This is best explained by example.

Clean URL binding: /search/show/{p=1}.action

In this case, p is a page number and I want the default page number to be 1. Generated links with no p parameter will generate /search/show/1.action. The following URLs yield the indicated value for p in the ActionBean:

/search/show/1.action ... p=1 because it is specified in the URI
/search/show.action ... p=1 because that is the default value and it is not otherwise specified
/search/show.action?p=2 ... p=1 because that is the default value

In the last case, since p is specified in the query string, p should equal 2. Values in the query string should override clean URL default values.

Activity

Hide
Ben Gunter added a comment - 20/Oct/08 2:46 PM

One more related problem is that parameters submitted as part of a multipart request are not accounted for either. Parameters in both the query string and in the multipart request should override the default value for URI parameters.

Show
Ben Gunter added a comment - 20/Oct/08 2:46 PM One more related problem is that parameters submitted as part of a multipart request are not accounted for either. Parameters in both the query string and in the multipart request should override the default value for URI parameters.
Hide
Ben Gunter added a comment - 21/Oct/08 9:36 AM

Fixed for 1.5.1 and later.

Show
Ben Gunter added a comment - 21/Oct/08 9:36 AM Fixed for 1.5.1 and later.

People

Vote (0)
Watch (0)

Dates

  • Created:
    17/Oct/08 10:31 AM
    Updated:
    04/Jan/11 2:38 PM
    Resolved:
    21/Oct/08 9:36 AM