• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Struts 2: tree tag causing javascript errors

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have an app I'm working on that uses tiles and the tabbedpanels quite a bit. Basically, the main tile jsp has the <sx:head> tag in it as follows:

All other tile jsps extend this one. One of the tile jsps (ProjectTabs.jsp) is set up with the following, all it does is define the tabbed panel and the two tabs:

Looking at the first href, projects-projects-tab.action, the corresponding action in struts.xml is the following (right now the ProjectAction.loadScreen action method just returns SUCCESS):

The contents of Projects.jsp are:

Here's the issue. The tree actually displays, but since the debug flag in the <sx:head> tag is set to true, I get the following line displayed three times at the bottom of my page:

DEBUG: Error running scripts from content: Syntax error

If I take the small <sx:tree> out of the Projects.jsp page, I don't get the error. Also, I can add the tree into ProjectTabs.jsp (the jsp that defines the tabbedpanel), and I don't get the error. For some reason, putting the tree in the page loaded from the action is causing the error.

I really appreciate any and all help I can get. Thanks for your time.

- Jeff
 
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic