Re: admins, can you add something like [struts] before every subject

2012-01-13 Thread Wendy Smoak
On Fri, Jan 13, 2012 at 7:15 PM, Dave Newton wrote: > This has been brought up many times in the past--I don't see the point any > more; traffic is low for both. I don't think any of the Apache mailing lists have a prefix, at least none of the ones I'm on do, and a random sampling of http://mail-

Re: admins, can you add something like [struts] before every subject

2012-01-13 Thread Alex Choi
Good point. Also someone may accidentally post a Struts 1 question in a Struts 2 user group or vice versa. Or one not being sure, may cross post message to both (or all) Struts user groups. Yup, this could open "a can of worms". There's no guarantee that everyone will post to the correct Struts

Re: admins, can you add something like [struts] before every subject

2012-01-13 Thread Dave Newton
This has been brought up many times in the past--I don't see the point any more; traffic is low for both. Dave On Fri, Jan 13, 2012 at 7:08 PM, Alex Choi wrote: > I'm wondering if the Struts User community would be interested in have > separate mailing lists for Struts 1 and Struts 2 topics? >

Re: admins, can you add something like [struts] before every subject

2012-01-13 Thread Alex Choi
I'm wondering if the Struts User community would be interested in have separate mailing lists for Struts 1 and Struts 2 topics? On 13 January 2012 11:18, Dave Newton wrote: > I think we've given up on that one. > > On Fri, Jan 13, 2012 at 1:51 PM, Gabriel Belingueres > wrote: > > > Harder to fil

Re: Struts 2 Internationalization Tiles 2

2012-01-13 Thread Hernán
Thank you very much, It's very interesting, though I needed something like this to get the current language anyway: jQuery: $.getJSON("/i18nUtil/GetLanguageJSONAction", function(language) { locale = language; } ); Java c

Re: Struts 2 Internationalization Tiles 2

2012-01-13 Thread Jeffrey Black
Have you given this plugin a whirl? http://code.google.com/p/jquery-i18n-properties/ On Fri, Jan 13, 2012 at 1:28 PM, Hernán wrote: > Thank you it worked! > >public String execute() { >String requestLocale = getRequestLocale(); >Map session = getSession(); >session.

Re: Struts 2 Internationalization Tiles 2

2012-01-13 Thread Hernán
Thank you it worked! public String execute() { String requestLocale = getRequestLocale(); Map session = getSession(); session.put("request_locale", requestLocale); //I added the following line of code to ChangeLocaleAction: session.put(DefaultLocaleResol

Re: JSP help

2012-01-13 Thread Jeffrey Black
Eric -- Give the following link a look. http://blogs.oracle.com/Didier/entry/jstl_10_in_jsp_20_pages Best, jb On Fri, Jan 13, 2012 at 1:10 PM, Eric Reed wrote: > 1000 + jsps... all coded like <%=srtcld%>, and I can't use find replace > because java calls in the JSP's start and end with <%java

Re: admins, can you add something like [struts] before every subject

2012-01-13 Thread Dave Newton
I think we've given up on that one. On Fri, Jan 13, 2012 at 1:51 PM, Gabriel Belingueres wrote: > Harder to filter is the Struts 1 vs Struts 2 thing. > > Some time ago was the [S1] and [S2] convention in the subject. > > How to solve that? Splitting the mailing lists seems problematic, though. >

Re: JSP help

2012-01-13 Thread Eric Reed
1000 + jsps... all coded like <%=srtcld%>, and I can't use find replace because java calls in the JSP's start and end with <%java crap%> Very professional stuff I get to deal with. I think I'm just going to write a small program to update them all unless someone has a good solution. >>> Gabri

Re: JSP help

2012-01-13 Thread Gabriel Belingueres
Isn't the variable defined in page scope? A single ${srtcld} EL expression should suffice. Gabriel 2012/1/13 Eric Reed : > Everyone, > > I know this has nothing to do with Struts but maybe someone one this mailing > list has encountered this problem before. > > We have a massive project that I a

JSP help

2012-01-13 Thread Eric Reed
Everyone, I know this has nothing to do with Struts but maybe someone one this mailing list has encountered this problem before. We have a massive project that I am upgrading from 10g to 11G. Going from OAS to weblogic. This project was developed in '04 using '99 - 2001 technologies (Struts 1.

Re: admins, can you add something like [struts] before every subject

2012-01-13 Thread Gabriel Belingueres
Harder to filter is the Struts 1 vs Struts 2 thing. Some time ago was the [S1] and [S2] convention in the subject. How to solve that? Splitting the mailing lists seems problematic, though. 2012/1/13 Wes Wannemacher : > On Fri, Jan 13, 2012 at 11:54 AM, Bogomil Shopov > wrote: >> On 13 January 2

Re: admins, can you add something like [struts] before every subject

2012-01-13 Thread Brian Thompson
My gmail filter for this mailing list is as follows: Matches: to:(user@struts.apache.org) Do this: Skip Inbox, Apply label "struts" Brian On Fri, Jan 13, 2012 at 12:40 PM, Wes Wannemacher wrote: > On Fri, Jan 13, 2012 at 11:54 AM, Bogomil Shopov > wrote: > > On 13 January 2012 17:48, Mauriz

Re: admins, can you add something like [struts] before every subject

2012-01-13 Thread Wes Wannemacher
On Fri, Jan 13, 2012 at 11:54 AM, Bogomil Shopov wrote: > On 13 January 2012 17:48, Maurizio Cucchiara wrote: > >> Can you explain why? >> > > -1. Because now mails look like personal emails. > 0.because it's normal for a discussion list > 1. Because if you are subscribed for more than 10 of them

Re: Mobile Device Support

2012-01-13 Thread Christian Grobmeier
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 d

Re: Struts 2 Internationalization Tiles 2

2012-01-13 Thread Jeffrey Black
Just for kicks try setting the following in your Session map: *public static final String LOCALE_KEY = "org.apache.tiles.LOCALE";* [1] http://tiles.apache.org/framework/tiles-core/xref/org/apache/tiles/locale/impl/DefaultLocaleResolver.html On Fri, Jan 13, 2012 at 11:01 AM, Hernán wrote: > > Ye

Re: Struts 2 Internationalization Tiles 2

2012-01-13 Thread Hernán
Yes I've done that, I have tiles.xml for english, tiles_es.xml for spanish and tiles_pt-xml for portuguese... The thing is that it works with the browser settings, when somebody changes the locale by a link of the web app, it works for struts2 but not tiles2 definition titles, I'm about to try with

Mobile Device Support

2012-01-13 Thread CRANFORD, CHRIS
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

Re: admins, can you add something like [struts] before every subject

2012-01-13 Thread Dave Newton
On Fri, Jan 13, 2012 at 11:54 AM, Bogomil wrote: > 0.because it's normal for a discussion list > Meh--mine seem to be evenly split with a slight edge to lists-that-don't-tag. > 1. Because if you are subscribed for more than 10 of them, you may need > some kind of way to recognize what is this a

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Eric Lentz
> I was working with no issue until a month ago for over a year and suddenly it has stopped working I get that. Best thing to do would be to view the headers from a client that can do so. There are plug-ins in Firefox that will allow that I believe. I think you'll find that something is amiss w

Re: admins, can you add something like [struts] before every subject

2012-01-13 Thread Bogomil Shopov
On 13 January 2012 17:48, Maurizio Cucchiara wrote: > Can you explain why? > -1. Because now mails look like personal emails. 0.because it's normal for a discussion list 1. Because if you are subscribed for more than 10 of them, you may need some kind of way to recognize what is this about > >

Re: Struts 2 Internationalization Tiles 2

2012-01-13 Thread Jeffrey Black
I seem to recall needing a different tiles definition for each locale you wish to support? Does that ring a bell to anyone? I will double-check some documentation when I get a chance. jb On Fri, Jan 13, 2012 at 9:06 AM, Hernán wrote: > Hi there, I'm applying internationalization to a WebApp,

Re: label text align

2012-01-13 Thread Maurizio Cucchiara
You could simply use simple theme and put the label wherever you want. See [1] for further details. [1] http://struts.apache.org/2.2.3.1/docs/simple-theme.html Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin:http://www.linked

Re: admins, can you add something like [struts] before every subject

2012-01-13 Thread Maurizio Cucchiara
Can you explain why? Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin:http://www.linkedin.com/in/mauriziocucchiara Maurizio Cucchiara

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Struts Two
Thank you very much for your reply. Your suggestion worked though in IE the file is opened in a new tab as opposed to save but it works on Firefox. - Original Message - From: Eric Lentz To: Struts Users Mailing List Cc: Sent: Friday, January 13, 2012 11:22:02 AM Subject: Re: File do

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Struts Two
The fact is that I set content disposition programatically in the following line getServletResponse().setHeader("Content-Disposition",                 ("attachment;filename=\"" + attachment.getName().trim().replaceAll(" ", "_") + "\"")); in the action as opposed to configuration. I was working wi

label text align

2012-01-13 Thread fea jabi
I want to align the label to 'right'. How can I do this? Thanks.

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Eric Lentz
> Not setting the Content-disposition is header, makes the firefox to prompt for the download but it uses the action for filename ie Ticket.action. > Has anyone faced a similar issue or can provide a hint on how to fix the issue Yep, saw this problem just this week. I ran the request through s

admins, can you add something like [struts] before every subject

2012-01-13 Thread Bogomil Shopov
Can you add, please something like [struts] before every subject. -- Bogomil "Bogo" Shopov Internet enthusiast in motion http://about.me/bogo #JRebel Community Guy, #OpenWeb Hacker, #Pirate Politician, #Web Programmer and a Father. #Mozilla, #OpenData & #Foss Rebellion. #Bu

File download fails in Firefox and Chrome

2012-01-13 Thread Struts Two
Hi everyone: I have an application in Struts 2.1.8 that has been running for the past two years with no issue. However; recently I have noticed the all file downloads on Firefox and Chrome fails while IE is okay. I know it has something with content-dispositon but  I have not been able to fix i

Struts 2 Internationalization Tiles 2

2012-01-13 Thread Hernán
Hi there, I'm applying internationalization to a WebApp, and so far so good, almost everything is working as expected. When the user accesses the site, depending on its browser configuration he sees the web site in his or her preferred language, if he or she decides to change the language, I change