As I said, I tried both targets and target. both does not work. moreover, the thing i'm worried about is that I looked into struts-tag.tld in struts2-core-2.0.1.jar in the META-INF package, and I did not find any "targets" attribute declaration... How come ?
Musachy Barroso-2 wrote: > > It is "targets" instead of "target"(can be more than one) > > musachy > > walidito wrote: >> thank you very much, >> when I try the following code, or the equivalent without the s:url stuff, >> I >> get this error : >> >> Attribute target invalid for tag a according to TLD at >> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512) >> at >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) >> at >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) >> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at >> javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at >> >> my code : >> <s:url id="reloadBooks" action="BookAction" namespace="/" /> >> <s:a theme="ajax" href="%{reloadBooks}" >> target="bookdiv"> >> mylink >> </s:a> >> >> that should refer to : >> <s:tabbedPanel id="third_tabbed_Panel" > >> <s:panel id="tab_one_of_third_Panel" tabName="My >> books"> >> <s:div id="bookdiv" >> theme="ajax" href="/BookAction.do" >> delay="1000" updateFreq="60000" loadingText="loading..."> >> >> strange no ?! >> >> >> Hi everybody, >> My new dilema is : >> I have created my "own" ajax widgets by putting <s:div theme="ajax" in a >> struts 2 tabbedPanel. This allows to refresh its content and works fine. >> I want to put links inside this widget (a button for exemple or a " >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-s2-Targeting-a-link-to-open-in-a-%3Cs%3Adiv-theme%3D%22ajax%22-box---tf3040935.html#a8456411 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]