How to create an APEX 4.1 session?

Hi,
I've successfully used the mechanism described by [this thread|https://forums.oracle.com/forums/thread.jspa?threadID=663227] to create an APEX session in release 3.1.
We've recently been forced to move onto Oracle 11g and APEX 4.1. The session routine no longer appears to work:
- after setting up the session a call to the create_collection_from_query results in an error stating 'Invalid parsing schema for current workspace Id';
- the apex_application.g_instance value is changing - post_login changes the value and show loses the value;
Any ideas?

Hi Scott
Bad news. I read several time this thread, but I have not found error in my program ... .
And I can not see what are really doing APIs of APEX.
Time is going - so we have make a decision now.
Probably (as I have no more answers at this forum) - we can not use APEX (as nobody using APEX sessions as I asked),
as we can not manage its sessions programmatically (too risky).
Thanks for your answer.
Andres

Similar Messages

  • How to create an apex collection to store and loop through the values

    I couldn't find any simple example to do this
    Apex 4.2
    I need to create an apex collection. I have a query that returns multiple roles for a user. I need to check to see if one of my item values is within the collection but am not sure how to do so. So far I have:
    begin
    APEX_COLLECTION.CREATE_COLLECTION (
    p_collection_name => 'ALL_ROLES');
    select count(granted_role) into count from dba_role_privs where upper(grantee) = upper(:APP_USER);
    end;
    How would I store the query results in the collection?

    Trying to understand your code and a better suggestion:
    declare
    is_viewable boolean;
    v_count number;
    l_query varchar2(2000);
    i_counter number(10) :=1;
    begin
    --l_query := 'select granted_role from dba_role_privs where upper(grantee) = upper(:APP_USER)';
    --why do you need a collection, this is a simple select count(1) question
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY (
    p_collection_name => 'ALL_ROLES',
    p_query => l_query,
    p_generate_md5 => 'YES');
    -- You create a collection, but where are you using it?
    -- select count(granted_role) into count from dba_role_privs where upper(grantee) = upper(:APP_USER);
    -- discard the above code
    -- If you want to see  how many elements in a collection
    -- determine # of elements in a collection
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_collection.htm#CJAFFEAH
    v_count := APEX_COLLECTION.COLLECTION_MEMBER_COUNT ('ALL_ROLES');
    IF :P32_SUBMISSION_DATE IS NOT NULL THEN
      begin
      select count(granted_role) into v_count
         from dba_role_privs
      where upper(grantee) = upper(:APP_USER) and
        granted_role in ('SURVEY_SUID','SURVEY_JOB_SUID');
      exception
      when no_rows_found then
        v_count := 0;
      end;
      if v_count > 0 then
        is_viewable := true;
      else
        is_viewable := false;
      endif;
    else
      is_viewable := false;
    endif;
    return is_viewable;
    end;Thank you,
    Tony Miller
    Ruckersville, VA

  • How to create an Apex 3.1 a session context programmatically?

    Hi
    I want to do some unit testing on some pl/sql procedures that use apex collections. As I am using PL/SQL Developer and I am not connected to the database via Apex, inevitably they fail with the error "invalid parsing schema for the current workspace ID".
    How can I create programmatically a session in Apex so I can unit test my code? I am sure I have seen code to do it, but cannot find it anywhere.
    Thanks
    Luis

    Scott
    Thanks for the help!
    You say "uncomment the last line if you need to". How do I know if I need to? If the connected user is different from the application parsing schema?
    In any case, the connect user is the same as the app parsing schema, and when I ran it without uncommenting that last line I got the error:
    ORA-20104: create_collection_from_query_b Error:ORA-20001: Invalid parsing schema for current workspace ID
    ORA-06512: at "FLOWS_030100.WWV_FLOW_COLLECTION", line 1223
    Then I uncommented it (I granted execute to the package beforehand) but got the same error.
    As I said, I am connected as the same database user as the application parsing schema, and the application does not require authentication. Where did it go wrong?
    Please see below the code I am using.
    Thanks
    Luis
    declare
      l_workspace_id   number;
      l_application_id number;
      l_user           varchar2(30);
      l_owner          varchar2(30);
      l_cgivar_name    owa.vc_arr;
      l_cgivar_val     owa.vc_arr;
    BEGIN
      htp.init;
      l_cgivar_name(1) := 'REQUEST_PROTOCOL';
      l_cgivar_val(1) := 'HTTP';
      owa.init_cgi_env(num_params => 1, param_name => l_cgivar_name, param_val => l_cgivar_val);
      l_user           := 'ADMIN'; -- authenticated username
      l_application_id := 999; -- application ID
      l_owner          := 'PS'; -- application owner (parsing schema)
      for c1 in (select workspace_id
                 from   apex_applications
                 where  application_id = l_application_id)
      loop
        l_workspace_id := c1.workspace_id;
        dbms_output.put_line('l_workspace_id:' || l_workspace_id);
      end loop;
      wwv_flow_api.set_security_group_id(l_workspace_id);
      apex_application.g_instance     := 1;
      apex_application.g_flow_id      := l_application_id;
      apex_application.g_flow_step_id := 1;
      wwv_flow_custom_auth_std.post_login(p_uname      => l_user,
                                          p_session_id => null,
                                          p_flow_page  => apex_application.g_flow_id || ':' || 1);
      flows_030100.wwv_flow_security.g_parse_as_schema := l_owner;
      -- Call the procedure
      my_pkg.my_proc;    --- ERROR HERE
    end;

  • How to create an apex session in e.g. SQL*Plus?

    I would like to establish an apex session using a tool different from SQL Workshop.
    How can I achieve this using e.g. SQL*Plus or SQL Developer?
    Is there some document on the internet which addresses this question? I couldn't find it yet.

    First and foremost you need to set the Security Group ID (SGID)
    begin
    APEX_UTIL.SET_SECURITY_GROUP_ID(APEX_UTIL.FIND_SECURITY_GROUP_ID('MY_WORKSPACE'));  -- replace MY_WORKSPACE with yours
    end;
    then you might need to set an application_id for certain features to work:
    select application_id
        into apex_application.g_flow_id
        from apex_applications
       where application_name = 'my_app_name';  -- replace my_app_name with yours
    If you need to create a session id, you can get a fresh one with
    DECLARE
      VAL NUMBER;
    BEGIN
      VAL := APEX_CUSTOM_AUTH.GET_NEXT_SESSION_ID;
    END;
    Flavio
    http://oraclequirks.blogspot.com
    http://www.yocoya.com

  • How to create a query in your session facade.

    Please help me
    My code is as follows
    public List<TrpSprojects> getProjectNotAssignedToUser(TrpSemployees employee) {
        List proassignements =  this.findProjectAssingmentForUser(employee);
        System.out.println("Size of project assignment list :"+proassignements.size());
        List projectIdAssigned = new ArrayList();
        String queryText  =  "Select o from Trp_Sprojects o where o.project_id not in (";
        for(Iterator proassign = proassignements.iterator();proassign.hasNext();)
            queryText = queryText+((TrpSprojectAssignment) proassign.next()).getTrpSprojects().getProjectId().toString()+",";
        System.out.println(queryText.substring(0,queryText.length()-1)+");");
       String querytoBeExecuted = queryText.substring(0,queryText.length()-1)+")";
        System.out.println("The query to be executed: "+ queryText);
         Query q = em.createNativeQuery(querytoBeExecuted, TrpSprojects.class);
         return q.getResultList();
        }In my session facade i have to create a query that will return the projects that have not been assigned to the user.
    When i display the queryText it is as follows:
    Select o from Trp_Sprojects o where o.project_id not in (2,1,4,5,12,14,15,16,17,18,20,6,7,8,9,10,11,13,22,19,3,26,21,23)when am executing the query i am getting exception ...
    Can anyone help me please . I have not defined this query in the TrpSprojects Class.
    Part of my exception its too long am only putting a part
    Feb 11, 2008 12:37:07 PM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    javax.ejb.EJBException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00904: "O": invalid identifier
    Error Code: 904
    Call:Select o from Trp_Sprojects o where o.project_id not in (2,1,4,5,12,14,15,16,17,18,20,6,7,8,9,10,11,13,22,19,3,26,21,23)
    Query:ReadAllQuery(org.trp.model.TrpSprojects); nested exception is:
         Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00904: "O": invalid identifier
    Error Code: 904
    Call:Select o from Trp_Sprojects o where o.project_id not in (2,1,4,5,12,14,15,16,17,18,20,6,7,8,9,10,11,13,22,19,3,26,21,23)
    Query:ReadAllQuery(org.trp.model.TrpSprojects); nested exception is: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00904: "O": invalid identifier
    Error Code: 904
    Call:Select o from Trp_Sprojects o where o.project_id not in (2,1,4,5,12,14,15,16,17,18,20,6,7,8,9,10,11,13,22,19,3,26,21,23)
    Query:ReadAllQuery(org.trp.model.TrpSprojects); nested exception is:
         Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00904: "O": invalid identifier
    Error Code: 904
    oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00904: "O": invalid identifier
    Error Code: 904
    Call:Select o from Trp_Sprojects o where o.project_id not in (2,1,4,5,12,14,15,16,17,18,20,6,7,8,9,10,11,13,22,19,3,26,21,23)
    Query:ReadAllQuery(org.trp.model.TrpSprojects)
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at SCTimeReport_RemoteProxy_4p6ko7e.getProjectIdAssignedToUser(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)Regards
    Lutchumaya

    Thanks for your help Frank.
    But when i display my query to be executed by the entityManager it is like that
    Select o from Trp_Sprojects o where o.project_id not in (2,1,4,5,12,14,15,16,17,18,20,6,7,8,9,10,11,13,22,19,3,26,21,23)
    Regards
    Lutchumaya

  • How to create temp Sequence  for multi sessions

    Hi,
    I"m using Global Temp table and I need to insert Identity (or Seq-Number) column into it, but I also have multiple sessions for my sp and each case shold have it's own Seq-Number, starting from 0.
    Is there any kind of "temp sequence" in Oracle ? that works in the same fashion like GTT , so multiple sessions each will get fresh zero anytime they will refer it.
    I also found out that ROWNUM will not work in my case.
    Probably I also can create SEQUENCE in my sp with some unique name let say with SID , something like:
    select sys_context('SID') into tmp_SID from dual ;
    CREAT SEQUENCE 'MYSEQ'||tmp_SID start with 0 .....
    Tx
    Trent

    if several sessions will create sequence with same static name could it be collission ? Should I go with dynamic sequence name instead ?You cannot have the same SEQUENCE (i.e. "static name") created from multiple sessions. A SEQUENCE is a Database Object that is not transient, but permanent (until it is dropped).
    Although you could "generate" dynamic sequence names and use them, you should look for a better implementation than running CREATE and DROP statements like that.
    Furthermore, you would have difficulty in doing a bulk insert of multiple rows unless you add a trigger that fires FOR EACH ROW.
    If you need to assign an increasing value to each row, use a ROWNUM to assign to a new column.
    insert /*+ -- optional APPEND -- */ into target_table
    select s2.*, rownum-0  from (select * source_table s where .....  order by ....) s2on the assumption that target_table as n+1 columns where the last column is for the increasing value. (rownum-0 is to set the first row to 0).
    Hemant K Chitale
    http://hemantoracledba.blogspot.com
    Edited by: Hemant K Chitale on Sep 16, 2010 2:13 PM
    correcteed the SQL statement

  • I must be missing something...is there a video that teaches how to create, save and open a session?

    I just don't seem to get it. Opening an old session seems difficult if you can't remember the specific name. Files in those sessions are not saved it seems unless you save each one individually. (Am I wrong here) Can someone help this early morning radio guy...I must be missing a step but I can't figure it out.
    Ed in Hawaii

    edkanoi wrote:
    Opening an old session seems difficult if you can't remember the specific name.
    I have that problem sometimes, too. Personally I put it down to my age!
    Files in those sessions are not saved it seems unless you save each one individually. (Am I wrong here)
    Audition won't let you close a session with unsaved files without putting up a warning about it - and you get an option to save all of them. By default, files get put in the {session name}_Recorded file with the sesx file (the session information) in the root folder. In there as well you can get Bounced file folders, and also one for mixdowns. When you first create a session, you get to choose the path you use, and everything else just occurs in a structure beneath that, which you can add to if you want. Whenever you need to save things, you get a browse option as well - worth using that first.
    I really don't think it's that difficult, and the new scheme (yes it's not quite like the previous version) seems to work fine. With the best will in the world, Adobe can't compensate for anybody's amnesia though! Since there isn't a particular limit on what name you give your sessions, then the best thing to do if you're likely to forget is to give them longer, more meaningful names - and make sure that the folder they're in has the same name. Also, try to keep a relatively flat folder structure - in other words, don't have them nested several layers deep in a huge tree structure - that never helps.

  • Urgent : How to create a new variable in session context

    Hi all
    I am using JDeveloper 11.1.1.2.0 and am implementing adf security using WLS
    I am loging in using loginame. and I am able to retieve the login_name in VO's using adf.context.securityContext.userName
    My requirement is I want to set id (number datatype) in sessioncontext as userId.
    The id should be taken from the database table according to the login_name and set in sessioncontext.
    I want to populate the VO's in my various pages using this userId in session,since our tables are based on Id not login_name
    Please help,its an urgent requirement
    Susan

    Hi,
    Can u give me the code for getApplicationModuleForDataControl(DataControl dc)?
    What is the '*u*' in u.getPageFlowScopeAttribute("userid"));?oh.. refer my following code.
        public static final ADFLogger LOGGER =
            ADFLogger.createADFLogger(Util.class);
        public ApplicationModule getApplicationModuleForDataControl(String dcName) {
            DCDataControl dcControl =
                getDCBindingContainer().findDataControl(dcName);
            if (dcControl == null) {
                logSevere(String.format("getApplicationModuleForDataControl(String dcName) : DCDataControl [%s] not found",
                                        dcName));
                return null;
            return dcControl.getApplicationModule();
        public BindingContainer getBindingContainer() {
            return getBindingContext().getCurrentBindingsEntry();
        public DCBindingContainer getDCBindingContainer() {
            return (DCBindingContainer)getBindingContainer();
    public String getUserIdFromLoginName(String loginName){
            ApplicationModule am = getApplicationModuleForDataControl("Users_DataControl");
            ViewObject vo = am.findViewObject("Users_VO1");
                    vo.setNamedWhereClauseParam("B_LOGIN_NAME",
                                        loginName);
            vo.executeQuery();
                Row row = vo.first();
                if (row == null) {
                    return null;
                } else {
                return row.getAttribute("UserId")==null ? null : row.getAttribute("UserId").toString();
        private static void logSevere(String msg) {
            LOGGER.log(Level.SEVERE, msg);
    public void setUserIdInSessionForLoginLoginName(String loginName){
      String userId=getUserIdFromLoginName(loginName);
      FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("userid", userId);
    }where as accessing the session in adf bc layer is conserned you can use ADFContext, which will help you to access the session(HttpSession) attributes.
    import oracle.adf.share.ADFContext;
    Object obj = ADFContext.getCurrent().getSessionScope().get("userBean");Regards,
    Santosh

  • How to create a session variable in Apex?

    Hello colleagues,
    Is there someone do know how to create a session variable in Apex?
    How to get them?
    Thanks
    Best Regards

    Hello,
    What do you mean by 'session variable'? You mean something that stores the value int he users session state?
    I really recommend reading the 2-Day Developer guide documentation, there is a complete section on session state -
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/concept.htm#CIHCFHBD
    Hope this helps,
    John
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd

  • Anyone created an apex session in a plsql procedure in 4.1

    Hi all,
    Was wondering if anyone has been able to create a procedure that creates an apex session that allows using collections after upgrading to 4.1
    Our procedure which we used for nightly processing worked fine in 4.0.1 is no longer working after upgrading.
    Thanks for any suggestions or help
    Wayne
    We were using:
    htp.init;
    l_cgivar_name(1) := 'REQUEST_PROTOCOL';
    l_cgivar_val(1) := 'HTTP';
    owa.init_cgi_env(
    num_params => 1,
    param_name => l_cgivar_name,
    param_val => l_cgivar_val );
    for c1 in (select workspace_id from apex_applications where application_id = l_application_id) loop
    l_workspace_id := c1.workspace_id;
    dbms_output.put_line('l_workspace_id:'||l_workspace_id);
    end loop;
    wwv_flow_api.set_security_group_id(l_workspace_id);
    apex_application.g_instance := 1;
    apex_application.g_flow_id := l_application_id;
    apex_application.g_flow_step_id := 999;
    wwv_flow_custom_auth_std.post_login(
    p_uname => l_user,
    p_session_id => null,
    p_flow_page => apex_application.g_flow_id||':'||999);
    wwv_flow.show (
    p_flow_id => apex_application.g_flow_id,
    p_flow_step_id => apex_application.g_flow_step_id,
    p_instance => apex_application.g_instance,
    p_request => 'FSP_SHOW_POPUPLOV'
    execute procedure_XXXX (this procedure contains the code to create an apex collection)

    Not for sure how I did it, but the user handle should have been wcoleku.
    Wayne

  • How to Create a Page LOV Template and a Region LOV Report Template in APEX

    Hi All,
    Thanks in advance ..
    I am new to APEX , Currently working in APEX 3.2
    Can any one please guide me How to Create a Page LOV Template and a Region LOV Report Template in APEX
    So that I can create dynamic Multi column LOV in APEX
    Cheers
    Sachin

    Sachin,
    I think you are en-quiring about 'Custom pop-up page'. See this link. You will get all required info there.
    Regards,
    Hari

  • How to create a fixed-width column within an APEX 4 interactive report?

    This thread is a follow-up to {message:id=9191195}. Thanks fac586.
    Partial success: The following code provided by fac586 limits the column width of the Apex 4 interactive report column as long as the column data contains whitespace within a Firefox 3.6 browser:
    <pre class="jive-pre">
    <style type="text/css">
    th#T_DESCRIPTION {
    width: 300px;
    td[headers="T_DESCRIPTION"] {
    width: 300px;
    word-wrap: break-word;
    </style>
    </pre>
    Notes:
    1. The code above is put into the HTML header section for the page.
    2. T_DESCRIPTION is defined as VARCHAR2(2000).
    3. The code above works within the Firefox 3.6.12 browser but does not work within the Internet Explorer 7.0.5730.13 browser.
    I tried adding "float: left;":
    <pre class="jive-pre">
    <style type="text/css">
    th#T_DESCRIPTION {
    width: 300px;
    td[headers="T_DESCRIPTION"] {
    width: 300px;
    word-wrap: break-word;
    <font color="red"> float: left;</font>
    </style>
    </pre>
    Notes:
    1. "float: left;" does not require whitespace and successfully splits the column between characters in lieu of whitespace.
    2. "float: left;" shrinks the cell height and allows the page background to show through... couldn't determine how to fix this.
    3. The code above works within the Firefox 3.6.12 browser but does not work within the Internet Explorer 7.0.5730.13 browser.
    I've done some more research, but I still haven't discovered how to create a fixed-width column within an APEX 4 interactive report that displays properly within an Internet Explorer 7 browser.
    Any ideas and help will be appreciated.

    Thanks for your help with this!
    <pre class="jive-pre">
    what theme are you using?
    </pre>
    A customized version of theme 15.
    <pre class="jive-pre">
    Floating a table cell makes no sense (to me anyway).
    </pre>
    You are correct. I was just trying a different approach ... trying to think out of the box.
    <pre class="jive-pre">
    Think you'll need to create an example on apex.oracle.com with sample data
    if there are any further problems.
    </pre>
    Great suggestion! The code your provided works in the Firefox 3.6.12 browser, but still doesn't work within my Internet Explorer 7.0.5730.13 browser.
    UPDATE:
    I have recreated the problem at apex.oracle.com, you can use the following information to check it out:
    URL: http://apex.oracle.com/pls/apex/f?p=43543:100::::::
    Workspace: IR_FIXED_WIDTH_COLS
    Username: GUEST
    Password: Thx4help
    Application: 43543 - CM_RANDY_SD
    Note: Table name is TEST_DATA
    The following code provided by fac586 works in both Firefox 3.6 and IE7 using default theme "21. Scarlet" at apex.oracle.com; however, it doesn't work when I use a copy of our customized theme "101. Light Blue":
    <pre class="jive-pre">
    <style type="text/css">
    .apexir_WORKSHEET_DATA {
    th#T_DESCRIPTION {
    width: 300px;
    max-width: 300px;
    td[headers="T_DESCRIPTION"] {
    max-width: 300px;
    word-wrap: break-word;
    </style>
    <!--[if lt IE 8]>
    <style type="text/css">
    /* IE is broken */
    th#T_DESCRIPTION,
    td[headers="T_DESCRIPTION"] {
    width: 300px;
    </style>
    <![endif]-->
    </pre>
    Any idea what in the theme could be causing the fixed width column to be ignored in IE 7?
    Edited by: CM Randy SD on Dec 7, 2010 11:22 AM

  • How to create a new session in JSP file

    Usually a child IE window uses same session with parent window. Dose someone know how to create a new session when creating a new IE window by clicking a URL in parent window? The web page is writen by jsp file.

    I am not sure of your question. Are you wanting to have 2 Session objects (one for the parent window and another for the child)?
    A session is usually created once per client and is stored on the server the session id is carried around in a cookie or a URL rewrite so that everytime the user submits a page you will be able to store/access information.
    // this will create a new session object if one doesn't already exist.
    HttpServletRequest.getSession( true );
    Hope this helps

  • How to Create a Session variable in JSP?

    How to create a session variable and add attributes to it?
    For example i want to create a session variable called "name" and add value "user" to it? if i try to do it with setAttribute(), it is giving error as both is of type string? how to do it? kindly help me

    This is variable what is working in my aplication
    String variable;
    if(user == null){
                   user=new String("");
         }//if you don'y do this you will have null pointer exception
    session.setAttribute("user",user);//put value
              String name=(String)session.getAttribu("user");      //get value;
    I hope this will help

  • How to create a omniportlet for oracle portal with apex

    Hello everyone!
    Is there someone who knows how to create a omniportlet?
    This is for openning an application in apex from oracle portal using single sign on.
    Could you explain me step by step how to do this please?
    Thank you.
    Regards

    Hello Erik,
    Please check if the following can help you - http://www.oracle.com/technology/products/database/application_express/howtos/omniportlet_index.html .
    Regards,
    Arie.

Maybe you are looking for

  • How can I recover from a Botched BATCH DATE CHANGE in iPhoto?

    Botched Batch Date Change iPhoto08 Short Story: Intending to change the date for one photo I managed to change the dates for all 8,525 images in my iPhoto08 library to the SAME DATE!! I found that the original creation dates were saved in the in the

  • Fetching international characters from Clob

    Hi, I am trying to fetch hungarian characters from Clob data. I tried reading the Character Stream returned by Clob.getCharacterStream() in linux and it returns junk characters for those but the same works well with windows. I guess its picking up th

  • Editing a Wait Step in Campaign Canvas

    I have a wait step in Campaign Canvas to wait until a specific date - 5/5/15 at 7am because the email is supposed to go out at that time. If I want to change the send date, can I deactivate the program and then change that wait step to wait until 5/7

  • Movies not showing in shared library on Buffalo NAS

    Hi I have installed a Buffalo NAS with DNLA server active. I can see the shared libary within itunes on my MAC but only music files show in the library, non of the movie files are visible? Buffalo tech support suggest this is an itunes problem. anyon

  • CCMS Auto-React: Operating System Commands

    Hi Gurus, I want to run an operating system command in the event that an alert is raised in my CEN CCMS system. I have set up the operating system command in SCEN (using SM69) and tested it -- no problems. I have used the example given on help.sap.co