Hello, I want to use Javascript in a TabbedPanel. But it does not work, similar to http://markmail.org/message/ir6varn7cq372zdl (unsolved).
if i look into the generated html-file with firebug, i cant find the javascript-block of site2. any idea how to fix this? Thanks in advance. sourcecode: *** site1.jsp *** <%@ taglib prefix="s" uri="/struts-tags" %> <html> <head> <s:head debug="true" theme='ajax' /> </head> <body> <s:tabbedPanel id="test_tab" theme="ajax"> <s:div id="one" label="Tab 1" theme="ajax" executeScripts="true"> some text </s:div> <s:url id='url' action="loadsite2"/> <s:div id="two" label="Remote Tab" theme="ajax" href="%{url}" executeScripts="true"> </s:div> </s:tabbedPanel> </body> </html> *** end site1.jsp *** *** site2.jsp *** <script type="text/javascript"> <!-- function helloworld() { alert("Hello!"); } //--> </script> <a href="#" onclick="javascript:helloworld();">say hello</a> *** end site2.jsp *** *** struts.xml *** [...] <package name="test" namespace='/test' extends="struts-default"> <action name="loadsite2"> <result name="success">site2.jsp</result> </action> </package> [...] *** end struts.xml ***