Hello
Can any one find the solution of my problem which is explained below.

Thanx in Advance

Sandeep

-----Original Message-----
From: Sandeep Karnwal, Noida 
Sent: Wednesday, October 30, 2002 9:07 PM
To: [EMAIL PROTECTED]
Subject: jsessionid embedded to javascipt


Hi! All 

I am currently using struts 1.1b with Tomcat.
 I am using  <html:link> like this 

<html:link
href="javascript:popup('abc','RME168',102112,'02',33,66352,29,1,30);">"abc"<
/html:link> 

In javascript popup function I am opening a new window

<script>
function popup(argDivName,argDevCode,argStyleCode,argCategory,argAssetId,
         argColorWayId,argRegionCode,argVersion,argCycleCode){   
         var queryString = "";
     queryString += '?id='+argDivName;
         queryString += '&devCode='+argDevCode;
         queryString += '&styleCode='+argStyleCode;
         queryString += '&category='+argCategory;
         queryString += '&assetId='+argAssetId;
         queryString += '&colorwayId='+argColorWayId;
         queryString += '&region='+argRegionCode;   
         queryString += '&version='+argVersion;
         queryString += '&lifeCycleCode='+argCycleCode;          
         
         temp1 =
'<%=request.getContextPath()%>/PostImageDetailReportAction.action';
         temp1 = temp1 + queryString;
         alert(temp1.length);
  window.open(temp1, '_blank',
'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=7
00,height=450,left=200,top=250');
}
</script>

I noticed that the jsessionid is embedded with javascript. For example,  
<a
href="javascript:popup('abc','RME168',102112,'02',33,66352,29,1,30);;jsessio
nid=37B0F8E0E08995CA12988C133205DB23">abc</a> 

This is causing a browser error. 

When I refresh the screen the jsessionId removes from the javascript part.
and it works fine. how can I remove the jsessionId from the javascript
function.



Regards
Sandeep

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to