IBM Support

JR43404: CMVC 223708 - URLTAG HAS THE REQUIRED ATTRIBUTE "VAR"

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The problems with the wcf:url tag are as follows:
    
    1) If you use the wcf:url tag with no var attribute then your
    page gets the following exception
    pageContext.setAttribute(var, resultingURL, scope);
    java.lang.NullPointerException: Null name
    [7/9/12 20:03:38:611 PDT] 00000876 SystemErr R at org.apache.
    jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java
    :339)
    [7/9/12 20:03:38:611 PDT] 00000876 SystemErr R at
    com.ibm.commerce.
    foundation.internal.client.taglib.UrlTag.doEndTag(UrlTag.java:32
    8)
    
    However, according to documentation of the tag, the var
    attribute is optional. When the var is not provided the tag
    should just print out the URL value to the page.
    
    2) If you use the scope attribute with the proper string value
    (i.e. request, session, page, etc) then an exception will occur.
    
    However, according to documentation of the tag, the scope
    attribute can be used and it should be a string.
    
    http://publib.boulder.ibm.com/infocenter/wchelp/v7r0m0/topic/com
    .ibm.commerce.component-services.doc/refs/rwvwcfurl.htm
    

Local fix

  • Always put a var when using the wcf:url tag and then print it to
    page with EL notation or c:out tag.
    

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce v7 users that may want to use the var and
    scope variables in the wcf:url tag.
    
    PROBLEM ABSTRACT:
    The wcf:url tag is not consistent with its JSTL counterpart
    c:url. In particular, the var and scope attributes do not work
    the same way as c:url does which causes difficulty to people
    that are used to the c:url API.
    
    
    BUSINESS IMPACT:
    N/A
    
    RECOMMENDATION:
    

Problem conclusion

  • Modified the wcf:url tag to work the same as c:url tag when it
    comes to the var and scope attributes.
    -------------------------------------------------------------
    The latest available maintenance information can be obtained
    from the Recommended Fixes for WebSphere Commerce technote:
    http://www.ibm.com/support/docview.wss?rs=3046&uid=swg21261296
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR43404

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-07-11

  • Closed date

    2012-08-21

  • Last modified date

    2012-08-21

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

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

Fix information

  • Fixed component name

    WC BUS EDITION

  • Fixed component ID

    5724I3800

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
21 August 2012