Issue Details (XML | Word | Printable)

Key: SPR-5298
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Scott Andrews
Reporter: Scott Andrews
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Spring Framework

JSP tag for building URLs with URI templates

Created: 16/Nov/08 02:36 PM   Updated: 17/Nov/08 09:38 AM   Resolved: 17/Nov/08 09:38 AM
Component/s: SpringWEB
Affects Version/s: None
Fix Version/s: 3.0 M1

Time Tracking:
Not Specified


 Description  « Hide

The JSTL c:url tag does not support URI template variables. The closest option is to apply EL expressions inside the c:url value, however, the template values will not be URL encoded.

We should create a new url tag modeled after JSTL c:url that that supports URI template variables and properly URL encodes them. The new tag should be a drop in replacement for c:url users.



Scott Andrews added a comment - 16/Nov/08 03:05 PM

Created spring:url and spring:param tags that enhance the functionality of the JSTL c:url tag. URI templates are supported in the url value attribute. They are resolved against the params defined inside the url tag body. Params that are unable to be applied as URI template are added to the query string.

Still need to create docs.