• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts modules: problems with html:form

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic