Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
All of life is a contant education - Eleanor Roosevelt. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic