Bug 147098 - Maintain relationship between included JSPs or JSP and JSPF
Summary: Maintain relationship between included JSPs or JSP and JSPF
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 enhancement with 2 votes (vote)
Target Milestone: Future   Edit
Assignee: jst.jsp CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords: helpwanted
: 224117 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-14 14:17 EDT by Glenn Remar CLA
Modified: 2013-06-19 11:14 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Glenn Remar CLA 2006-06-14 14:17:08 EDT
Let me know if this is functionality provided by IBM only for Rational Application Developer but it would be nice to have this functionality built into Eclipse.

We have JSPs that include other JSPs or JSPs that include JSP fragment.  If you change the included JSP or JSP fragment, you need to manually find the JSP that includes it and update it so the page will be refreshed.

Also it would be nice to be in the included JSP or JSPf and launch the enclosing JSP in the editor.

Another issue is that if a taglib is included in the 1 JSP, the tags from that taglib are not recognized in the include JSP or JSPf.
Comment 1 Eric Moffatt CLA 2006-06-14 15:42:14 EDT
This looks like it might for you folks...
Comment 2 David Williams CLA 2006-06-15 01:34:13 EDT
We will be looking to improve this in future releases (some of what you describe should work in WTP 1.5) ... but often I've found some of this issues can be divided up into many many special cases. So, if you have/come up with special cases, do not hesitate to document more detailed uses cases (and some indication of priority for you and yours :) 

Comment 3 Glenn Remar CLA 2006-06-15 09:59:10 EDT
In my case, the architecture is as follows - content is stored in one JSP and code is in an included JSP or JSPF.  Content changes more frequently and these changes are picked up by the server automatically as long as they are not in the included JSP or JSPF.

Functionality that would be helpful:
1.  If included JSP or JSPF is updated, refresh the page on the server.  Right now, we have to find the including JSP in the Navigator view or in Windows Explorer and add a space to it or touch it to get the page to update.  
2.  If in the editor for the included JSP or JSPF, add the ability to launch the including JSP in the editor.
3.  Content Assist in the included JSP or JSPF with tags in custom taglibs.  Right now, content assist for these tags works in the including JSP but not the included JSP/JSPF.  Custom tags in the included JSP/JSPF come up with warnings of IWAK0054E - unknown tag.
Comment 4 Amy Wu CLA 2006-09-15 16:18:33 EDT
Related bugs:
bug 147098
bug 155664
bug 157465
bug 155664
Comment 5 Amy Wu CLA 2008-10-27 04:15:43 EDT
reassigning to inbox
Comment 6 Ian Tewksbury CLA 2010-04-05 15:24:13 EDT
This is indeed a tricky issue, parent pages know which child pages they include but not the other way around.  Providing content assist based on tag-libs in "parent" JSPs in a "child" JSP is an iffy thing because depending on which "parent" JSP it is included in it may have access to different libraries.  Though it is possible some of these situations could be improved, like the server case.
Comment 7 Nitin Dahyabhai CLA 2012-02-19 01:14:53 EST
*** Bug 224117 has been marked as a duplicate of this bug. ***