You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Sandeep Karnwal, Noida" <sk...@noida.hcltech.com> on 2002/10/30 16:36:55 UTC
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 += '®ion='+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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>