#1 has to be addressed by a custom ShuntFactory.  You can't have
multiple mode attributes, but the value of a mode attribute can be a
composite:

<command name="runQuery">
  <controller class="org.foo.Query"/>
  <view name="success" mode="content:wap"
path="wap/en/queryResults.jsp"/>
  <view name="success" mode="content:wap,lang:fr"
path="wap/fr/queryResults.jsp"/>
  <view name="success" mode="content:wap,lang:de"
path="wap/de/queryResults.jsp"/>
  ... etc
</command>

It's just a question of how smart you want the ShuntFactory to be.  I'm
not sure it's possible to provide a generic tool in the Maverick package
because everyone will likely want to handle the edge cases (in
particular, the defaulting process) differently.

It's super easy to make a ShuntFactory, so I just figure that anyone who
needs something more sophisticated than LanguageShuntFactory can build
their own custom logic.

Jeff Schnitzer
[EMAIL PROTECTED]


> -----Original Message-----
> From: Aapo Laakkonen [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2003 5:16 AM
> To: [EMAIL PROTECTED]
> Subject: [Mav-user] Multiple shunts [1] and more dynamic
> LanguageShuntFactory [2]
> 
> [1]
>
http://www.mail-archive.com/[EMAIL PROTECTED]/msg00584.html
> [2]
>
http://www.mail-archive.com/[EMAIL PROTECTED]/msg00545.html
> 
> Has anyone done anything to these? I could do a patch to
> LanguageShuntFactory [2] to have override capability depending on
> Session language attribute.
> 
> What should we do to case [1]?
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> [INVALID FOOTER]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]

Reply via email to