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?

[1496 byte] By [camsuresha] at [2007-11-26 22:52:53]
# 1
You could identify the cause of the problem by viewing the generated jnlp file. That should tell you whether the problem is at the jsp end or the jws end.
JasonChoya at 2007-7-10 12:15:48 > top of Java-index,Desktop,Deploying...