fabiozoroastroPJ 20 de jun. de 2006
Ei Maria, coloca o err aí pra gente tentar resolver
=]
mariaadPJ 20 de jun. de 2006
O seguinte...
meu
web.xml está assim:
<servlet-class> org.apache.struts.tiles.ActionComponentServlet/servlet-class>
(Mas uso Struts 1.1 pelo Netbeans, e nos pacotes do struts.jar não tem esta classe... já tentei outras mas nenhuma funciona...)
etc...
<init-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles-defs.xml</param-value>
</init-param>
Meu tiles-defs.xml está assim:
...
<definition name="hello" path="/paginas/layouts/myLayout.jsp">
<put name="title" value = "Hello World"/>
<put name="header" value="/paginas/tiles/header.jsp"/>
<put name="menu" value="/paginas/tiles/menu.jsp"/>
<put name="body" value=""/>
<put name="footer" value="/paginas/tiles/footer.jsp"/>
</definition>
<definition name="ba" extends="hello">
<put name="body" value="/paginas/tiles/ba.jsp"/>
</definition>
<definition name="bb" extends="hello">
<put name="body" value="/paginas/tiles/bb.jsp"/>
</definition>
</tiles-definitions>
E meu struts-config.xml está assim:
& lt ; action - mappings & gt ;
& lt ; action path = & quot ; / index & quot ; forward = & quot ; / index . jsp & quot ; /& gt ;
& lt ; action path = & quot ; / ba & quot ; type = & quot ; outros . DoFirst & quot ; & gt ;
& lt ; forward name = & quot ; success & quot ; path = & quot ; ba & quot ; /& gt ;
& lt ; / action & gt ;
& lt ; action path = & quot ; / bb & quot ; type = & quot ; outros . DoFirst & quot ; & gt ;
& lt ; forward name = & quot ; success & quot ; path = & quot ; bb & quot ; /& gt ;
& lt ; / action & gt ;
& lt ; / action - mappings & gt ;
e ...
& lt ; plug - in className = & quot ; org . apache . struts . tiles . TilesPlugin & quot ; & gt ;
& lt ; set - property property = & quot ; definitions - config & quot ; value = & quot ; / WEB - INF / tiles - defs . xml & quot ; /& gt ;
& lt ; set - property property = & quot ; moduleAware & quot ; value = & quot ; true & quot ; /& gt ;
& lt ; set - property property = & quot ; definitions - parser - validate & quot ; value = & quot ; true & quot ; /& gt ;
& lt ; / plug - in & gt ;
Tenho a classe DoFirst que extends Action... e tenho os arquivos header/footer/menu/ab/bb/myLayout, todos JSP, mas em pastas separadas.
Por que não funciona? :cry: :roll:
Grata, :wink:
Maria Ane,