This javaworld article might help
http://www.javaworld.com/javaworld/jw-02-2002/jw-0201-strutsxslt.html
HTH
Nitesh
----- Original Message -----
From: "Nitesh" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>;
<[EMAIL PROTECTED]>
Sent: Wednesday, June 22, 2005 4:39 PM
Subject: Re: How to use multiple tiles definitions files for multi channel
Tageting multiple channels is definitely possible with Struts...
Tiles coudl aid you doing this.
But times is not the prime technology involved...
Your UI components need to be XML-based rather than JSP based for this.
You could use plug-ins to fomat your xmls for the channel intended.
There are some plug-ins avaiable for this already... I couldn't find much
abt these...
I stumbled upon this on a search...
http://javatoolbox.com/Toolede6f9ab-1b07-400b-93ff-46dd85038a5f.aspx
HTH
Nitesh
----- Original Message -----
From: "Michael Mattox" <[EMAIL PROTECTED]>
To: "Laurie Harper" <[EMAIL PROTECTED]>
Cc: <user@struts.apache.org>
Sent: Wednesday, June 22, 2005 4:28 PM
Subject: Re: How to use multiple tiles definitions files for multi channel
In the tiles documentation webapp, it's stated:
"A mechanism similar to Java properties files is used for definitions
files : you can have one definition file per key. The appropriate
definition is loaded according to the key."
I'd like to use this to have different tiles for web & wap devices.
Can
someone explain how to do this? I cannot find any information on how
this
works, I've searched everywhere. I see how it's done for the language
based on the Locale, but not for a user defined key in the session.
Struts doesn't provide anything specifically for this. There's all sorts
of ways you could approach it; one possibility would be to map user
agent header strings to local variants and define separate resource
bundles for web vs. wap.
The text I quoted above was from the tiles documentation, which claims
Tiles *is* able to do this. I just can't figure out how. I'm now
wondering if this text is incorrect and tiles does not offer this.
The problem isn't related to resource bundles, the problem is I need
separate JSPs for web & wap. I'd like to have a tiles-defs-web.xml
associated with a session key "device" value "web" and tiles-defs-wap.xml
associated with a session key "device" value "wap". Default would be
"web". Is this possible? It seems like an easy thing to do.
-Michael
--
This E-mail is confidential. It may also be legally privileged. If you
are
not the addressee you may not copy, forward, disclose or use any part of
it.
If you have received this message in error, please delete it and all
copies
from your system and notify the sender immediately by return E-mail.
Internet communications cannot be guaranteed to be timely, secure, error
or
virus-free. The sender does not accept liability for any errors or
omissions.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]