aspose file tools*
The moose likes Struts and the fly likes Struts 2:  tree tag causing javascript errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2:  tree tag causing javascript errors" Watch "Struts 2:  tree tag causing javascript errors" New topic
Author

Struts 2: tree tag causing javascript errors

Jeff Baer
Greenhorn

Joined: Jul 01, 2010
Posts: 3
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
 
subject: Struts 2: tree tag causing javascript errors