开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜