Look at responsive CSS frameworks. Actually I would not put anything
for this into struts code if possible, you should make it just a
css/javascript only trick:
http://idesignow.com/css/7-css-grid-layout-frameworks-for-responsive-web-design.html

I am a bootstrap fan, 2.0 is supporting responsive design

Using this you will not even have to differ between two different views.

If this is not possible, you can load css by screen type with
JavaScript. Again, touching Struts application for that is usually not
necessary and it is always a good idea to keep your presentation code
on the presentation side of life

my 2 cents of course other may think different

Cheers
Christian

On Fri, Jan 13, 2012 at 6:00 PM, CRANFORD, CHRIS
<chris.cranf...@setech.com> wrote:
> I have been asked to investigate adding mobile device support to an
> existing Struts2 application.  I was wondering if others could explain
> how you added mobile detection and view support for your Struts2
> applications.
>
> Did you use an interceptor to set a session Boolean value and keyed your
> view from that variable?
> Did your interceptor append/prefix your invocation result with a
> "mobile" value so that different views were rendered?
>
> There are a number of ways to implement it obviously, but wanted to get
> a feel for what others may have tried in the past and the obstacles that
> may have surfaced to point you along a specific path.
>
> Thanks in advance,
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>



-- 
http://www.grobmeier.de
https://www.timeandbill.de

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

Reply via email to