Re: Multi Devices and Multilanguage

2011-06-29 Thread Zoran Avtarovski
We use a custom sitemesh decorator for each targeted platform and also a custom struts theme for each. This way we use the same core jsp files across the application. By keeping the JSP functionality simple we find it works really well. I hate to be the one who breaks it to you but you'll have to

Re: Multi Devices and Multilanguage

2011-06-29 Thread Frans Thamura
where do u put ur code i am glad to test it f On Jun 30, 2011 1:43 AM, "Miguel" wrote: > Hello, > I did an interceptor that changes the return code based on the user-agent of > the client. > So there are versions for PC and mobile of each jsp. In your configuration > you need to have all the res

Re: Multi Devices and Multilanguage

2011-06-29 Thread Miguel
Hello, I did an interceptor that changes the return code based on the user-agent of the client. So there are versions for PC and mobile of each jsp. In your configuration you need to have all the result codes for all jsp. Example: I change the result code from "browse" to "iPhone.browse" Stuts 2 ca

Re: Multiple matches with single

2011-06-29 Thread Nick Broadhurst
I am using S2. No wonder I didn't remember using the tag recently although it looked familiar. Haven't used S1 in a while. Probably should become versed in JSTL though. On Wed, Jun 29, 2011 at 10:34 AM, Dave Newton wrote: > The Struts 1 documentation specifically recommends using JSTL when > f

Re: Multiple matches with single

2011-06-29 Thread Dave Newton
The Struts 1 documentation specifically recommends using JSTL when functionality overlaps. JSTL didn't exist when the first iterations of S1 tags were developed :) If you're using Struts 2 there's less of an advantage, but the OP is on S1. I've tended to use S2 tags for most stuff in S2 apps. Dav

Re: Multiple matches with single

2011-06-29 Thread Nick Broadhurst
"...antiquated Struts tags..." you're concerning me. That's all I use. On Wed, Jun 29, 2011 at 10:17 AM, Dave Newton wrote: > How about using JSTL? It's the recommended solution when both it and Struts > tags provide equivalent functionality, and it's arguably better than using > the antiquated

Multi Devices and Multilanguage

2011-06-29 Thread Frans Thamura
hi all we want to create a multi devices rendering for our apps, which we use struts2, for mobile, tablet and web common, we use jquery mobile, i like the JQM beta1. and we also want to make web with multi language anyone can share the strategy which we can start to make this F

Re: Multiple matches with single

2011-06-29 Thread Dave Newton
How about using JSTL? It's the recommended solution when both it and Struts tags provide equivalent functionality, and it's arguably better than using the antiquated Struts tags. Dave On Jun 29, 2011 10:03 AM, "sudhakar487248" wrote: > is there any way to test more than one match at a time by us

Multiple matches with single

2011-06-29 Thread sudhakar487248
is there any way to test more than one match at a time by using single struts tag lib i mean i have a string and i want to check that string is having either "ERROR:" or "POPUP:" like as follows String str="example ERROR:" str.contains("ERROR:") || str.contains("POPUP:") -- View this messa