Problema com abas do struts2

Bom dia a todos, estou estudando o struts2 e coloquei esse trecho no meu jsp, idêntico ao exemplo do próprio struts:

 <s:tabbedPanel id="test2" theme="simple" cssStyle="width: 500px; height: 300px;" doLayout="true">
   <s:div id="left" label="test1" theme="ajax">I'm a Tab!!!</s:div>
   <s:div id="middle" label="test2" theme="ajax">I'm the other Tab!!!</s:div>
 </s:tabbedPanel>

Só que não ficam as abas quando eu vejo a página, fica mostrando os dois textos(I’m a Tab e I’m the other Tab) um embaixo do outro. Alguém tem alguma dica?
Abraço.

Fala fabio blz ?
Coloque apenas o theme=ajax no head e vai dar certo. O tema já é embutido no Struts2
Eis a solução:

<%@ page contentType=“text/html; charset=UTF-8” %>
<%@ taglib prefix=“s” uri="/struts-tags" %>
<html>
<head>
<title>JM Struts 2 </title>
<link href="<s:url value="/css/styles.css"/>" rel=“stylesheet” type=“text/css” />
<s:head theme=“ajax”/>
</head>

&lt;body&gt;
    &lt;h1&gt;Exemplo de Abas&lt;/h1&gt;
    &lt;s:tabbedPanel id="test2" theme="simple" cssStyle="width: 500px; height: 300px;" doLayout="true"&gt;
        &lt;s:div id="left" label="test1" theme="ajax"&gt;I'm a Tab!!!&lt;/s:div&gt;
        &lt;s:div id="middle" label="test2" theme="ajax"&gt;I'm the other Tab!!!&lt;/s:div&gt;
    &lt;/s:tabbedPanel&gt; 
&lt;/body&gt;

</html>

[]'s

Fala fabio blz ?
Coloque apenas o theme=ajax no head e vai dar certo. O tema já é embutido no Struts2
Eis a solução:

&lt;%@ page contentType=&quot;text/html; charset=UTF-8&quot; %&gt;
&lt;%@ taglib prefix=&quot;s&quot; uri=&quot;/struts-tags&quot; %&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;JM Struts 2 &lt;/title&gt;
        &lt;link href=&quot;&lt;s&#58;url value=&quot;/css/styles.css&quot;/&gt;&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
        &lt;s&#58;head theme=&quot;ajax&quot;/&gt;
    &lt;/head&gt;
    
    &lt;body&gt;
        &lt;h1&gt;Exemplo de Abas&lt;/h1&gt;
        &lt;s&#58;tabbedPanel id=&quot;test2&quot; theme=&quot;simple&quot; cssStyle=&quot;width&#58; 500px; height&#58; 300px;&quot; doLayout=&quot;true&quot;&gt;
            &lt;s&#58;div id=&quot;left&quot; label=&quot;test1&quot; theme=&quot;ajax&quot;&gt;I'm a Tab!!!&lt;/s&#58;div&gt;
            &lt;s&#58;div id=&quot;middle&quot; label=&quot;test2&quot; theme=&quot;ajax&quot;&gt;I'm the other Tab!!!&lt;/s&#58;div&gt;
        &lt;/s&#58;tabbedPanel&gt; 
    &lt;/body&gt;
&lt;/html&gt;

[]'s

Olá JoaoPagotto.
Eu tinha perguntado isso a um tempinho já… rs…
Eu já tinha resolvido na época, mas mesmo assim Valeu!!! :slight_smile: