Skip to Main Content
IBM Z Software


This portal is to open public enhancement requests against IBM Z Software products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Not under consideration
Categories EGL Language
Created by Guest
Created on Oct 17, 2008

Values stored by EGL in request / session / application should be accessible using Java

Values stored in request, session, application scope by EGL handler should be accessible using Java code. Currently this is not possible.

Web applications always use request, session etc to store state-data for a user.

With the fact that EGL relies heavily on Java external types for various features, sharing such request, session values between EGL and Java becomes inevitable.

Idea priority Medium
  • Guest
    Reply
    |
    Sep 14, 2015

    Due to processing by IBM, this request was reassigned to have the following updated attributes:
    Brand - Servers and Systems Software
    Product family - Programming Languages
    Product - Business Developer

    For recording keeping, the previous attributes were:
    Brand - Rational
    Product family - Design & development
    Product - Business Developer

  • Guest
    Reply
    |
    Jan 16, 2009

    This capability is available today for using primitive data types like strings.

    Following is are examples of EGL code and java code accessing the same string in session data:

    Java Code:

    package handlers;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;

    public class SessionAccess {

    /**
    * @param args
    */
    public static void main(String[] args)
    {
    // TODO Auto-generated method stub

    }

    public static ExternalContext getFacesExternalContext()
    {
    FacesContext cxt = FacesContext.getCurrentInstance();
    return cxt.getExternalContext();
    }

    public static void putSessionAttribute( String key, String val )
    {
    getFacesExternalContext().getSessionMap().put( key, val );
    }

    public static String getSessionAttribute( String key )
    {
    return ( String ) getFacesExternalContext().getSessionMap().get( key );
    }

    public static void clearSessionAttribute( String key )
    {
    getFacesExternalContext().getSessionMap().remove( key );
    }
    }

    EGL Code:

    package handlers;
    handler sessionAccessExamplePage type JSFHandler {
    onConstructionFunction = onConstruction,
    onPrerenderFunction = onPrerender,
    view = "SessionPage.jsp"
    }

    inputData string { displayUse=input, displayName = "Input data:" } ;
    outputData string { displayUse=output, displayName = "Output data:" } ;
    showAccessButton string { displayUse = button, displayName = "Process Input", action="showAccess"};

    // Function Declarations
    function onConstruction()
    end

    function onPrerender()
    end

    function showAccess()
    ServletData.putSessionAttribute( "testKey", inputData );
    outputData = j2eeLib.getSessionAttr ( "testKey" ) ;
    end
    end

    ExternalType ServletData type JavaObject {
    javaName = "SessionAccess",
    packageName = "handlers"
    }
    static function getSessionAttribute ( key String in ) returns ( string );
    static function putSessionAttribute ( key String in, val String in );
    static function clearSessionAttribute( key String in );
    end

  • Guest
    Reply
    |
    Jan 15, 2009

    This RFE is consistent with our strategy and product roadmap and IBM is continuing to evaluate.

  • Guest
    Reply
    |
    Oct 24, 2008

    This request seems to be a duplicate of RATLC01176077.