Hi,
I'm try to use
struts modules...but it's a nightmare!
If I have an action, I can use my modul. no problem. But if I have an tiles-include with a form into, than my application forget the modul and I get the default page not the modulpage
How I can define the module in a <html:form> or in <tiles:insert> ???
For img I could use this:
<html:img pageKey="search.gif" altKey="search.Link.alt"
titleKey="tooltip.searchTipps" module="moduleA"/>
But I got only the right picture, not the correct text. I use the default message.properties
I need urgent help...I get crazy
Sandra
(sorry for my bad englisch)
My Exaple:
I've got a link
<html:link page="/home.htm">Home</html:link>
struts-config-modulA.xml:
<action path="/home" forward="home.main.page"/>
tiles-config-modulA.xml
<definition name="home.main.page" extends="main.layout">
<put name="body" value="/modulA/WEB-INF/tiles/home.jsp"/>
</definition>
<definition name="home.searchform" path="/modulA/WEB-INF/tiles/search/search.jsp"/>
--> everything is ok, I got the correct home.jsp.
in the home.jsp I have a <tiles:insert>.
<tiles:insert definition="home.searchform"/>
--> and from here...I'm not longer at modulA I'm in the default one.