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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

struts modules: problems with html:form

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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

I need urgent help...I get crazy
(sorry for my bad englisch)

My Exaple:
I've got a link
<html:link page="/home.htm">Home</html:link>

<action path="/home" forward=""/>

<definition name="" extends="main.layout">
<put name="body" value="/modulA/WEB-INF/tiles/home.jsp"/>
<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
    Bookmark Topic Watch Topic
  • New Topic