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).
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:
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 an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
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.
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
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
This RFE is consistent with our strategy and product roadmap and IBM is continuing to evaluate.
This request seems to be a duplicate of RATLC01176077.