on 03-31-2015 5:15 AM
hi everyone.
I migrated a project sap portal app 7.0 to 7.4 but when I deploy I got a session is null with name “vendorCode” my code below:
IPortalComponentSession compSession = request.getComponentSession();
javax.servlet.http.HttpSession httpSession = null;
httpSession = compSession.getHttpSession();
if(httpSession != null && httpSession.getAttribute("vendorCode") != null)
{
vCode = (String)httpSession.getAttribute("vendorCode").toString();
}
httpSession.getAttribute("vendorCode") has always null
Where we get from “vendorCode” ? is it get from properties iview and we can configure iview properties with nam “vendorCode” ?
Hi Hoang21,
I am also experiencing the exact same issue while upgrading portal from 7.0 to 7.4. Did you find solution to your problem? If yes, can you please share the solution?
Thanks,
Sameer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am not sure what is the "vendorCode" or who puts it on the session.
however, I believe that what you are looking for is the IRJ session meaning instead of using
httpSession = compSession.getHttpSession();
you should use
httpSession = request.getServletRequest().getSession();
Hope this helps,
BR,
Saar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.