Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSP tag for building URLs with URI templates [SPR-5298] #9971

Closed
spring-projects-issues opened this issue Nov 16, 2008 · 1 comment
Closed
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Scott Andrews opened SPR-5298 and commented

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.


Referenced from: commits 912c123

@spring-projects-issues
Copy link
Collaborator Author

Scott Andrews commented

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.

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: web Issues in web modules (web, webmvc, webflux, websocket) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0 M1 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant