• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Browser Error while using Struts tags  RSS feed

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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" %>
 
Bartender
Posts: 9559
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
 
sankey jain
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

 
Ranch Hand
Posts: 122
IntelliJ IDE Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So why dont you just use " to surround the value ... really wont matter right?



 
There's a way to do it better - find it. -Edison. A better tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!