IBM Support

PM85666: Web 2.3 Struts 1.1 - change to context root refactors path relative jsp hrefs to be more efficient

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as duplicate of another APAR.

Error description

  • Abstract: ...
    When changing the Context Root of a web 2.3 struts 1.1 project
    in RAD 8.0.4.1, it refactors path relative jsp hrefs to be more
    efficient. But the change was not wanted.
    
    Problem:
    
    A Web 2.3 Struts 1.1 project targeting Tomcat 5.0 in RAD v6.0
    was migrated to RAD 8.0.4.1 targeting Tomcat 5.5.
    When changing the Context Root of a web 2.3 struts 1.1 project
    in RAD 8.0.4.1, it refactors path relative jsp hrefs to be more
    efficient. But the change was not wanted.
    
    Relative URLs were changed to more efficient and still correct
    Web References. Style wise, the refactoring should preserve
    links and leave a relative link relative.  Even though,
    references did appear to clean up relative content to make it
    more efficient, the change was unexpected and  not wanted. The
    only expected change was the Context Root name. In a large
    project its difficult to check every jsp for such proposed
    changes in the wizard. Leave absolute path locations unchanged.
    
    Recreate:
    
    1. You have a web 2.3 struts 1.1 project 'devTis'
    2. Right click and go to Properties -? Web Project Settings -?
    Context Root: devTis
    3. Change context root to: accTis
    4. Hit OK and get the refactor dialog showing all changes that
    will occur.
    
    When you hit OK you get the 'Rename Context Root' wizard when
    changing the Context Root (CR) property, that shows a selectable
    checklist of Changes to be performed [No Preview Available]
    , however with a side by side preview/differences view when you
    select web.xml or say a given jsp page:
    [x] Rename context root from 'devTis' to 'accTis'
    [x] Update links
    // which shows a subset checklist of
    ..
    ..[x] web.xml
    ..[x] *.JSP pages   // many JSP pages
    ...
    
    Observation: (Links are made relative in JSP files)
    
    JSP 'page links' are offered to be changed from Document root
    (== WebContent) absolute path locations to  locations relative
    to the current page
    
    Example File Affected:
    ..\WebContent\edu.someschool.this.Wizards.JSP\SomeReport.jsp
    , which is referenced in another JSP in this folder
    
    BEFORE:
    ?div id='pf_caption'?
    ?a
    href='../edu.someschool.this.Wizards.JSP/SomeReport.jsp'?Printer
    Friendly?/a??/div?
    
    AFTER:
    ?div id='pf_caption'?
    ?a href='SomeReport.jsp'?Printer Friendly?/a?
    ?/div?
    
    
    Local fix:
    There is no known workaround at this time, short of de-selecting
    affected jsp pages. This can be problematic for a very large
    project to check every jsp page.
    

Local fix

Problem summary

Problem conclusion

Temporary fix

Comments

  • This APAR is a duplicate of PM79444
    

APAR Information

  • APAR number

    PM85666

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    804

  • Status

    CLOSED DUB

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-03-26

  • Closed date

    2013-10-29

  • Last modified date

    2013-10-29

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.4","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 October 2013