开发者

Is there an equivalent to Django's reverse URL lookup in Java Struts framework?

开发者 https://www.devze.com 2023-04-08 11:41 出处:网络
I want to find out whether there is a Struts equivalent to Django\'s reverse URL lookup, where you can associate names to URL patterns and refer to these in your code. This allows you to change the UR

I want to find out whether there is a Struts equivalent to Django's reverse URL lookup, where you can associate names to URL patterns and refer to these in your code. This allows you to change the URLs easily, since all of them are defined at a single location (urls.py)

That is, a way to assign names to URL patterns, and then be able to generate a correct URL from the name and values for the replacement parameters.

https://docs开发者_运维知识库.djangoproject.com/en/1.3/topics/http/urls/#reverse

0

精彩评论

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