JSP or JNLP Problem?
I have created a JNLP, which will work dynamically based on user login.
I have JSP which writes the JSESSIONID as a arugment.
If I use hard coded JSESSIONID in JSP, it is working fine. Java App Making call to Server and Retrieving the Information.
But I use dynamic writing content inside the argument tag it is not working?
Ex:
Working
<argument>418EC0BDE78291DBFDCFE216D6BC2581</argument><!--JSESSIONID-->
Not Working
<% String jsession=null;
Cookie cookies[]=request.getCookies();
String subSite=null;
for (int i=0; i<cookies.length; i++){
if ("JSESSIONID".equals(cookies[i].getName()) && cookies[i].getPath()==null){
jsession=cookies[i].getValue();
break;
}
}%>
<argument><%=jsessionid%></argument><!--JSESSIONID-->
or
<argument><%=session.getValue("jsessionid")%></argument><!--JSESSIONID-->
Both the dynamic arguments are not working
Anybody can help me out this problem?

