struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Cheng" <>
Subject RE: Modules with Tiles Problem
Date Wed, 17 Dec 2003 07:26:40 GMT
HI All,
I found a way to get it working.

<html:form action="/">

I have to do this for every html:form item. 
This works, but it is ugly. It's even worse since this method is
deprecated in struts1.2.
I'm suspecting there must be a better way round right?
Can someone tell me if this is the way? Or there're smarter ways?

-----Original Message-----
From: Patrick Cheng 
Sent: Wednesday, December 17, 2003 10:12 AM
To: Struts Users Mailing List
Subject: Modules with Tiles Problem

Hi All,

I have a question on Tiles when using Modules(multiple
struts-config.xml's). As far as I know, switching between modules
requires more than providing different URLs. Either we use
ContextRelative forwards or using the struts Swiching Action class. But
in the situation of tiles, if the layout includes two jsp pages and they
are from different modules, say, the top part is a generic search
function, used everywhere for every module, what can I do about this?

Here's my situation.
2 struts configs : struts-config.xml, struts-module1-config.xml
Struts-config.xml has an action called 'layout'. Struts-module1-config
has an action called 'ViewMultiSelect'. So when I go:
I got my ViewMultiSelect working, but in the tile 'layout', I got:

[ServletException in:/layout/Header.jsp] Cannot retrieve mapping for
action /Layout' 

My understanding is, when the current module is in Module1, struts won't
care anything in struts-config.xml, therefore it doesn't know about a
Layout action. How can I get it to work?

Thanks a lot.


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message