History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-20340
Type: New Feature New Feature
Status: Reopened Reopened
Priority: Normal Normal
Assignee: Dmitry Avdeev
Reporter: Sascha Weinreuter
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Recognize links between webapps

Created: 26 Sep 06 18:27   Updated: 22 Aug 07 16:31
Component/s: J2EE.Web
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. completion.png.jpg
(18 kb)

Build: 5,706
Severity: Medium


 Description  « Hide
Say there are two webapps, A and B inside a J2EE application. Webapp A's context root is /a and B' is /b.

In each webapp's index page I've got a link that refers to the other one, i.e. something like <a href="../b/index.jsp">Go to B</a> in A and <a href="../a/index.jsp">Go to A</a> in B.

IDEA currently highlights those links as "Cannot resolve ..." but actually it could know that they refer to another webapp inside the same application.



 All   Comments   Work Log   Change History      Sort Order:
Mike Aizatsky - 29 Jan 07 18:55
You should make them dependent of each other

Sascha Weinreuter - 29 Jan 07 19:00
LOL, no way. They're packaged into the same EAR and don't have anything else in common. Making them dependent just to resolve links doesn't make any sense. Also, last time I checked, cyclic webapp-dependencies were not allowed.

Sascha Weinreuter - 19 Feb 07 21:40
Dmitry, Mike, the proposed solution really doesn't work: IDEA does not allow cyclic dependencies between Web modules which would be necessary to support the described case.

The linking between the webapps really is something IDEA could (and should) know from the fact that the modules are supposed to be packaged into the same application module. Please re-open or explicitly state that you don't intend to implement this.


Sascha Weinreuter - 21 Aug 07 16:17
If you don't consider implementing this, at least turn off the highlighting for paths that go below the root of the web-application. I do not want to see this yellow highlighting that I can not reasonably turn off in these cases for paths which I know that they are perfectly valid.

Dmitry Avdeev - 22 Aug 07 14:56
Please provide the corresponding fragment from your application.xml

Sascha Weinreuter - 22 Aug 07 16:31
<application>
...
  <module id="reporting-gui.iml">
    <web>
      <web-uri>reporting.war</web-uri>
      <context-root>ecs/reporting</context-root>
    </web>
  </module>
  <module id="ecs-monitoring.iml">
    <web>
      <web-uri>monitoring.war</web-uri>
      <context-root>ecs/monitoring</context-root>
    </web>
  </module>
</application>

index.jsp from module ecs-monitoring:

Links:  <a href="../reporting">eCS-Reporting</a> | ...

Also the completion after ../ shows filesystem-based suggestions, which is incorrect for the deployed application: