By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,054 Members | 1,635 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,054 IT Pros & Developers. It's quick & easy.

Javascript error- please help!

P: n/a
Hi,
I'm hoping that the wealth of knowledge here can stop me from spinning
my wheels on this syntax error for hours. :)

Below is the code, and the error I am recieving....

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/WEB-INF/tag-lib/struts-html-el.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tag-lib/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tag-lib/struts-logic-el.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tag-lib/c.tld" prefix="c" %>
<html>
<head>
<%@ page
language="java"
contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"
%>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="GENERATOR" content="IBM WebSphere Studio">
<meta http-equiv="Content-Style-Type" content="text/css">
<link href="theme/Master.css" rel="stylesheet" type="text/css">

<!-- ******* from here -->
<link rel="stylesheet" type="text/css" media="print"
href="<html:rewrite page='/theme/print.css' />" />
<link rel="stylesheet" type="text/css" media="screen"
href="<html:rewrite page='/theme/base1.css'/>" />
<link rel="stylesheet" type="text/css" media="screen"
href="<html:rewrite page='/theme/tab_base.css'/>" />
<link rel="stylesheet" type="text/css" media="screen"
href="<html:rewrite page='/theme/green.css'/>" />
<link rel="stylesheet" type="text/css" media="screen"
href="<html:rewrite page='/theme/CAW.css'/>" />
<!-- ****** to here -->

<title>VSAC Forms</title>

<!-- ****** from here -->

<script type="text/javascript" language="Javascript" src="<html:rewrite
page='/javascript/openNewWindow.js'/>"></script>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script type="text/javascript">
_editor_url = './';
_editor_lang = 'en';
</script>
<script type="text/javascript" src="htmlarea.js"></script>
<script type="text/javascript" src="dialog.js"></script>
<script type="text/javascript" src="lang/en.js"></script>
<!-- ****** to here -->

</head>

<!-- ****** from here -->
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" marginwidth="0"
marginheight="0">
<body onunload="javascript:history.go(1)">
<body onload="HTMLArea.replace('txt1')">
<table width="700" border="1" bordercolor="#CCCCCC" cellpadding="0"
cellspacing="0">
<tr><td width="700">

<div id="courtnav" >&nbsp;&nbsp;<NOBR><a
href='http://services.vsac.org/ilwwcm/connect/VSAC/General/About+VSAC/About+Us/Who+we+are/'><bean:message
key="app.aboutUs" /></a>&nbsp;&nbsp;·&nbsp;&nbsp;<a
href='http://services.vsac.org/ilwwcm/connect/VSAC/General/About+VSAC/Site+Help/Site+Help/'><bean:message
key="app.siteHelp" /></a>&nbsp;&nbsp;·&nbsp;&nbsp;
<a
href='http://services.vsac.org/ilwwcm/connect/VSAC/General/About+VSAC/Contact+Us/'><bean:message
key="app.contactUs" /></a>&nbsp; </NOBR>
</div>
<div id="colorfield" >
<div id="logo"><IMG SRC="<html:rewrite
page='/images/logo_green.gif'/>" ALT="" WIDTH="101" HEIGHT="53"
BORDER="0">
</div>
<div id="pagehead">
<FONT color="#ffffff"><b><bean:message key="app.logo1" /><br>
&nbsp;&nbsp;&nbsp;<bean:message key="app.logo1a" /></b></font><br>
<bean:message key="app.logo1b" />
<!-- <h4><bean:message key="app.logo2" /></h4 -->

</div>

</div>

<div id="introfield">
<div id="textcontainer" >
<bean:message key="app.logo2" />
<div align="center">
<c:if test='${requestScope["org.vsac.sso.identity.u"]}'>Welcome: <c:out
value='${requestScope["org.vsac.sso.identity.u"]}'/></c:if>

Welcome:
<c:out value="${sessionScope.name}" />
</div>

</div>
</div>

<div id="maincontent" align="center">
<div id="textcontainer" >

<!-- ****** to here -->
<form action="mytest.php" method="post">
<textarea name="txt1" id="txt1" style="width:100%;height:300px">
<%response.write(request("txt1"))%(this is where the error is)
</textarea>
<input type="submit" value="Post">
</form>
</td></tr>
</table>
<html:errors />
<html:form action="formAuth.do" >
<p>&nbsp;</p>

<p><label>Select ID: </label&nbsp;
<html:select property="personId" >
<c:forEach var="formData" items="${idmTestIdentifiers}">
<html:option value="${formData}">
<c:out value="${formData}"/>
</html:option>
</c:forEach>
</html:select>

&nbsp;&nbsp;&nbsp;<b>Or</b>&nbsp;&nbsp;&nbsp;<label>Enter ID: </label>
<html:text property="personId1" /></p>

<p><html:submit value="Submit"
onclick="document.body.style.cursor='wait'" /></p>

</html:form>
<!-- ****** from here -->
<div>
</div>
<div>
</div>
<p>&nbsp;</P>
<jsp:include page="/bottomMenuBar.jsp" flush="true"/>

<!-- ****** to here -->

</body>
</html>
Error:
Syntax error on token "out", "=," "*=,""/=,""%=," ........ expected.

What am I missing???? I've been looking at this all morning- and am
sure I am overlooking something here...Please help! Thanks!

J

Sep 27 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
JumpingOffPlace said the following on 9/27/2006 10:54 AM:
Hi,
I'm hoping that the wealth of knowledge here can stop me from spinning
my wheels on this syntax error for hours. :)

Below is the code, and the error I am recieving....
Try posting a URL to the HTML code the browser receives instead of the
server side code that generates it. Then, validate that code with the
W3C validator. Then test again.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 27 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.