struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zoran Avtarovski <>
Subject Re: implementation of m. and www.
Date Tue, 13 Sep 2011 10:58:47 GMT
We use a simple interceptor which reads to request URL and sets some base
action flags which we then use use with sitemesh to determine template

The benefit of an interceptor is that you only make any changes centrally.


On 13/09/11 2:00 AM, "Frans Thamura" <> wrote:

>hi all
>i have 3 container,
>1. www using jquery common
>2. m. using jquery mobile
>for 1 and 2, i try to implement a same URI for both
>this is an exanple
>i want if the user access using mobile, and click www from email, will
>be redirect to the m. URL
>and also if we click m. in PC/notebook browser, will redirect to www.
>1. is there implementation that u can share, if we wanna to implement
>under one container (.war) for both.
>2. if we implement 2 containers.
>for the REST API, we dont have problem. esp the security
>implementation, we still want to know the REST implementation with the
>both case no. 1 and no. 2 which we use jquery both, and i am glad if
>we can make JQuery consume JSON from REST API of Struts
>this is the case
>server -> JSON -> jquery for www
>server -> JSON -> jquery mobile for m.
>which the interceptor for redirector
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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

View raw message