|
Project
|
IntelliJ IDEA
|
|
Priority
|
Normal |
|
Type
|
Feature |
|
Fix versions
|
No Fix versions |
|
State
|
Fixed |
|
Assignee
|
Dmitry Avdeev |
|
Subsystem
|
J2EE.JSP |
|
Affected versions
|
No Affected versions |
|
Fixed in build
|
108.65 |
What do you think about this request?
Is the inference required too complex to implement?
Should I use another pattern to get maximum effectiveness out of IDEA?
(I think <c:url> is not very readable if it occurs 40 times on a given page)
The problem is very relevant, as the requirement to not hardcode the context name is very common (in my experience).
As to request, it is not very easy to do.
The advantage of uning the <c:set var="ctx" value="${pageContext.request.contextPath}"/> pattern is that it is uniform.
https://jstl-spec-public.dev.java.net/issues/show_bug.cgi?id=21
To my best knowledge, even as of 2007 it's the only workable solution that has the following desirable properties:
Obviously at the moment quite desirable resolving (and features that depend on proper resolving) is missing when using this pattern.
I can't say how widespread usage of this pattern is, but a quick google session finds a number of people recommending it.