Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Store URL parameter for session only

Varun DhondeaApr 9 2018 — edited Apr 17 2018

Hi,

I have 2 URL parameters jwt and lang. I have retrieved the parameter using    

jwt=<something>&lang=fr

    public void prepareSession()      {        

HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();       

String lang = request.getParameter("lang");        

String jwt_token = request.getParameter("jwt");       

FacesContext.getCurrentInstance().getExternalContext().getApplicationMap().put("jwt_token",jwt_token);       

FacesContext.getCurrentInstance().getExternalContext().getApplicationMap().put("lang",lang);    

}

This code is called in

public XXCO000_STG_HISTO_AMImpl() {

prepareSession();

}

My issue is that whenever there are two different users connected, the last user is overriding the values i.e. if language of user1 is US and language of user2 is FR. User 1 gets language FR when user2 is connected.

How to use these values in session?

Jdeveloper version 12.2.1.1

Regards

This post has been answered by Timo Hahn on Apr 9 2018
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 7 2018
Added on Apr 9 2018
1 comment
176 views