title: How to use session attribute value with the where clause in Business component view object query.?
body: <p>In the sessionScoped managed bean(registered managed bean in the bounded task flow and also in the adfc-config.xml file) in ADF fusion web application I had set the attribute in the session as</p>
  
  <pre><code>FacesContext fctx = FacesContext.getCurrentInstance();
  ExternalContext ectx = fctx.getExternalContext();
  HttpSession userSession = (HttpSession) ectx.getSession(false);
  userSession.setAttribute("compID", defaultCompany);
  </code></pre>
  
  <p>the session attribute is working fine in the bean and the value is being displayed in the jsff page of the bounded task flow and also on the jsf page which contains the bounded task flow as region</p>
  
  <p>im getting the session attribute value on the page using the expression</p>
  
  <pre><code>"#{sessionScope.compID}" 
  </code></pre>
  
  <p>inside the output text value property, but not able to get the value in the model project which contains the business components. I want to use the compID session attribute value in the query</p>
  
  <pre><code>Select.........where COMP_ID ='compID';
  </code></pre>
  
  <p>by setting the value in the bind variable value property and passing the newly creted bid variable in the where clause but its not working</p>
  
  <p>so i how to use this dynamic session attribute value in the where clause of the query of the business component view object?</p>