This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2: tree tag causing javascript errors

 
Jeff Baer
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic