You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Sushma Suresh <er...@yahoo.co.in> on 2006/09/13 13:16:34 UTC

problem with httpunit-1.6: Unable to retrieve script included by this response

Hi...Actually I'm not sure...I guess it doesnt look
like java script problem as I'm able to test many jsp
which are using Java script.In case of this JSP also
When I do response.getText() I'm getting all the java
script/HTML response including javascript which are
written in other .js file and called here.
Can any one tell is there anything in this JSP which
can be cause for this error.Sorry as its bit lengthy

following is jsp for which I'm getting error.

<%@include file="/path.include"%>
<%
  String url = 
"login.jsp?companyID=CST&partnerID=CST&userType=CC";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>

<head>
<title>Logon To Start</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script type="text/javascript"
src="<%=_webLoc%>/shared/js/framework/framework.js"></script>
<SCRIPT LANGUAGE="JavaScript">
<!--
function logonToApplication(){
	//left & top are used by I.E, screenX and screenY are
used by Mozilla and Netscape
  	var height = screen.availHeight - 60;
  	var width = screen.availWidth - 10;
  	window.opener = self;
  	window.close();
  
window.open("<%=url%>","_blank","left=0,screenX=0,top=0,screenY=0,height="
+ height + ",width=" + width +
",resizable,scrollbars,status=yes");
  	//window.self.location = "http://intranet";
}

//-->
</SCRIPT>
<link href="<%=_webLoc%>/shared/css/common.css"
rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0" >
<form name="loginForm"
action="<%=_webLoc%>/login/login.jsp?companyID=CST&partnerID=CST&userType=CC"
method="post">
<input type="hidden" name="PROCESS" value="1">

<table width="100%" height="100%" border="0"
align="center" cellpadding="0" cellspacing="0"
class="borderOuter">
	<tr> 
		<td height="80" valign="top"> 
			<table width="100%" border="0" cellspacing="0"
cellpadding="0">
				<tr align="left" valign="top">
					<td width="200" rowspan="2" class="bgWhite"><img
src="<%=_sharedLoc%>/images/logo.gif" width="147"
height="80"></td>
					<td height="60" class="bgWhite">&nbsp;</td>
				</tr>
				<tr align="left" valign="top"> 
					<td class="bgWhite">&nbsp;</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr> 
		<td height="1" valign="top" class="topBlueBand"><img
src="<%=_sharedLoc%>/images/spacer.gif" width="5"
height="1"></td>
	</tr>
	<tr height="26" valign="top" class="topBlue">
		
      <td width="150" align="center" valign = "center"
class="tabBlueBand_left"><a
class="textTabBlueBand">Logon 
        To Start</a></td>
	</tr>
	<tr> 
		<td height="1" valign="top" class="topBlueBand"><img
src="<%=_sharedLoc%>/images/spacer.gif" width="5"
height="1"></td>
	</tr>
	<tr> 
		<td height="1" valign="top" class="redStrip"><img
src="<%=_sharedLoc%>/images/spacer.gif" width="5"
height="2"></td>
	</tr>
	<tr>
		<td align="left" valign="top"><table width="100%"
height="100%" border="0" cellpadding="0"
cellspacing="0">
	<tr class="blueBG">
		<td><table width="100%" height="100%" border="0"
cellpadding="0" cellspacing="0">
	<tr>
		<td width="20%" ><table width="100%" cellspacing="0"
cellpadding="0">
	<tr>
		<td></td></tr>
	<!--tr>
		<td height="8">&nbsp;</td></tr-->
</table>
    <tr class="bgWhite">
		<td height="25" valign="top"
class="yellowBand">&nbsp;</td>
		<td><img src="<%=_sharedLoc%>/images/spacer.gif"
width="15" height="25"></td>
        <td class="textRed">Agent Application </td>
        <td width="10" ><img
src="<%=_sharedLoc%>/images/spacer.gif" width="10"
height="1"></td>
    </tr>
    <tr>
		<td class="greyLeft">&nbsp;</td>
    </tr>
    <tr> 
		<td height = "100%" class="greyLeft">&nbsp;</td>
        <td class="textBold">&nbsp;</td>
        <td align="left" valign="top"
class="textBold"><table width="100%" border="0"
cellspacing="0" cellpadding="2">
	<tr> 
		<td height="30" colspan="2"
class="textHeading">&nbsp;</td>
        <td align="right" class="text">&nbsp;</td>
        <td class="text">&nbsp;</td>
    </tr>

	<tr>
		<td width="100"><span
class=errorMessage></span></td>
	</tr>
	<tr> 
		<td width="100" height="30"
class="textBlackBold">&nbsp;</td>
        <td width="200">&nbsp; </td>
		<td width="10" align="right"
class="text">&nbsp;</td>
        <td class="text">&nbsp;</td>
    </tr>
    <tr> 
		<td height="30" class="textBlackBold">&nbsp;</td>   
            <td>&nbsp;</td>
        <td height="20" align="right"
class="text">&nbsp;</td>
        <td class="text">&nbsp;</td>
    </tr>
    <tr> 
		<td height="20">&nbsp;</td>
        <td>&nbsp;</td>
        <td width="10" align="right"
class="text">&nbsp;</td>
		<td class="text">&nbsp;</td>
    </tr>
    <tr> 
		<td height="20" align="right"
class="text">&nbsp;</td>
        <td class="text"><input name="Submit3"
type="button" class="buttonBlue" value="Logon to
Start"
onClick="javascript:logonToApplication();"></td>
        <td height="20" align="right"
class="text">&nbsp;</td>
		<td class="textBlack">&nbsp;</td>
    </tr>
    <tr> 
		<td height="20" align="right"
class="text">&nbsp;</td>
		<td class="text">&nbsp;</td>
		<td height="20" align="right"
class="text">&nbsp;</td>
        <td class="textBlack">&nbsp;</td>
    </tr>
    <tr> 
		<td height="20" align="right"
class="text">&nbsp;</td>
        <td class="text">&nbsp;</td>
        <td height="20" align="right"
class="text">&nbsp;</td>
        <td class="textBlack">&nbsp;</td>
    </tr>
    <tr> 
		<td height="20" align="right"
class="text">&nbsp;</td>
        <td class="textBlack">&nbsp;</td>
        <td class="textBlack">&nbsp;</td>
        <td class="textBlack">&nbsp;</td>
    </tr>
</table></td>
		<td class="textBold">&nbsp;</td>
    </tr>
    <tr>
		<td height = "100%" class="greyLeft">&nbsp;</td>
        <td class="textBold">&nbsp;</td>
        <td align="left" valign="top"
class="textBold">&nbsp;</td>
        <td class="textBold">&nbsp;</td>
    </tr>
</table></td>
    </tr>
</table> </td>
	</tr>
	<tr> 
		<td width="10" height="1" valign="top"
class="copyrightBand"><img
src="<%=_sharedLoc%>/images/spacer.gif" width="1"
height="1"></td>
	</tr>
	<tr> 
		<!--td height="30" align="center" valign="bottom"
class="bgWhite"><span class="copyrightText">&copy;
1998-2005 :: Wholesale Corporation :: All Right
Reserved</span><br>
        <a href="#"
class="statementpolicyText">Privacy Statement</a> |<a
href="#" class="statementpolicyText"> 
        Investor Relations</a> | <a href="#"
class="statementpolicyText">Employment 
        Opportunities</a></td-->
	</tr>
</table>
</form>
</body>
</html>


		
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/