File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Browser Error while using Struts tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Browser Error while using Struts tags" Watch "Browser Error while using Struts tags" New topic
Author

Browser Error while using Struts tags

sankey jain
Ranch Hand

Joined: Apr 29, 2010
Posts: 58
Hello all,

An error while using struts tags



I get the below error from Firebug in mozilla

missing ; before statement
[Break On This Error] var highlightKeyNew = 'Company Name: Scope Int'l (M) Sdn Bhd <br>';

how can i resolve this ?

i have tried escapeJavaScript=true. but it does not work

gives me an error that the tld defined does not support this

TLD defined is

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8876
    
    8

sankey jain wrote:
missing ; before statement
[Break On This Error] var highlightKeyNew = 'Company Name: Scope Int'l (M) Sdn Bhd <br>';


I would take that error to indicate that the problem occurs before the line you indicate. What comes before this line?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
sankey jain
Ranch Hand

Joined: Apr 29, 2010
Posts: 58
Joe Ess wrote:
sankey jain wrote:
missing ; before statement
[Break On This Error] var highlightKeyNew = 'Company Name: Scope Int'l (M) Sdn Bhd <br>';


I would take that error to indicate that the problem occurs before the line you indicate. What comes before this line?

The following comes before this line

Jesus Mireles
Ranch Hand

Joined: Mar 10, 2010
Posts: 122

So why dont you just use " to surround the value ... really wont matter right?



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Browser Error while using Struts tags