Quantcast
Channel: SCN : All Content - SAP Enterprise Portal
Viewing all articles
Browse latest Browse all 3876

get session null in custom portal app

$
0
0

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” ?


Viewing all articles
Browse latest Browse all 3876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>