I admit that I haven't read the whole thread, so flame me if you
covered the answer already, but...

Have you looked at Sitemesh? I would suggest look at creating
different decorators for each of the devices you want to support, then
code your undecorated JSPs so that they can be decorated based on the
device accessing it. Sitemesh has a ton of different ways you can pick
the decorator, so I would imagine you'd be able to find a way to
abstract the decorator picking logic outside of your business logic.
Then, the advantage of the decorator pattern is that you can code your
UI screens and business logic once and just have the screens decorated
differently based on the abstracted decorator picking logic. (As a
bonus, you can add new decorators for new devices without changing
much)

-Wes

-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to