struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Venkat Babu <>
Subject Error when including Javascript file in JSP which has struts tags in it.
Date Sat, 14 Feb 2009 11:25:49 GMT

Hi All,
I am including my JS file in JSP in the following way:
<script type="text/javascript" src="includes/js
/Search.js"> </script>

I have struts tag in the js file like
var key = <bean:write name='KEY' />;

When I run my jsp it is giving syntax error. But when I have
the js code in my JSP itself it is working fine.
Please help me in this issue. Am I doing something wrong in
the code?
Any help would be grateful.

View this message in context:
Sent from the Struts - Dev mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message