RE: loading Dropdown dynamically from database

2011-03-13 Thread JavaNoobie87
Yes there is a method doing that.Here is the snippet . public void setDtList(List dtList) { this.dtList = dtList; } public List getDtList() { return dtList; } Ive also uploaded the entire action class. http://struts.1045723.n5.nabbl

RE: loading Dropdown dynamically from database

2011-03-13 Thread Jose Luis Martinez Avial
Is there a public List getDtList in the Action? You didn't put it in the code. -Original Message- From: JavaNoobie87 [mailto:vivek...@enzentech.com] Sent: Monday, March 14, 2011 12:57 AM To: user@struts.apache.org Subject: Re: loading Dropdown dynamically from database The jsp correspond

Re: struts 2 internationalization problem

2011-03-13 Thread sumitjain23
Tried with a locale but still not working -- View this message in context: http://struts.1045723.n5.nabble.com/struts-2-internationalization-problem-tp388p3555928.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: struts 2 internationalization problem

2011-03-13 Thread jlmagc
You need to put a Locale, not a String. --Mensaje original-- De: sumitjain23 Para: user@struts.apache.org Responder a: Struts Users Mailing List Asunto: RE: struts 2 internationalization problem Enviado: 14 Mar, 2011 02:11 If you look closely , I am doing the exact same thing i.e. setting

RE: struts 2 internationalization problem

2011-03-13 Thread sumitjain23
If you look closely , I am doing the exact same thing i.e. setting the session parameter "WW_TRANS_I18N_LOCALE" since I18nInterceptor.DEFAULT_SESSION_ATTRIBUTE is equal to "WW_TRANS_I18N_LOCALE". But still it is not working -- View this message in context: http://struts.1045723.n5.nabble.com/st

RE: struts 2 internationalization problem

2011-03-13 Thread Jose Luis Martinez Avial
Sorry, it slipped. It would be something like this // String country = 'FR" String language = 'fr' Locale locale = null; If(country!=null && langauge !=null) locale = new Locale(language ,country ); } else { locale = Locale.US; } sessionAttributes.put(I18nInterceptor.DEFAULT_SESSI

RE: struts 2 internationalization problem

2011-03-13 Thread Jose Luis Martinez Avial
I usually do this Locale locale = new Locale(tokens[0],tokens[1]); } else { if(!queries.isLocaleSupported(locale.toString())){ log.debug("Locale "+locale+" no soportado. Lo sustituimos por US");

Re: loading Dropdown dynamically from database

2011-03-13 Thread JavaNoobie87
The jsp corresponding to the dropdown didnt show up im attaching it to the below file. http://struts.1045723.n5.nabble.com/file/n3555886/jsp_snippet.txt jsp_snippet.txt -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p35558

loading Dropdown dynamically from database

2011-03-13 Thread JavaNoobie87
Hi All, Im developing a Crud example using Struts 2 where im in the need to load values for a dropdown box dynamically from a database . However im just getting a empty dropdown now . The JSP code snippet is as below. The action class and DAO for the same functio

loading Dropdown dynamically from database

2011-03-13 Thread JavaNoobie87
Hi All, Im developing a Crud example using Struts 2 where im in the need to load values for a dropdown box dynamically from a database . However im just getting a empty dropdown now . The JSP code snippet is as below. DomainType

struts 2 internationalization problem

2011-03-13 Thread sumitjain23
I am developing struts 2.2 application. When I pass a request_locale parameter from a web page then it works fine i.e. the locale changes. But when I try to change it programatically by setting the session parameter session.setAttribute("WW_TRANS_I18N_LOCALE", "fr"); it does not work i.e. the loc

RE: Just a stab in the dark

2011-03-13 Thread Martin Gainty
> Subject: Re: Just a stab in the dark > > Oh I see. No problem. > > re scanf vs scanner: scanf takes a pattern, an input string of values in > format > of pattern, and an array of reference variables. It parses the input string > according to the pattern (using all the same types and qualifi

Re: RE: Exclude parameter from URL tag

2011-03-13 Thread Maurizio Cucchiara
Take a look at [1], you could use the exclude params list. IIRC there should be a xwork interceptor suited for this purpose. [1] http://struts.apache.org/2.1.2/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/ParametersInterceptor.html Maurizio Cucchiara Il giorno 14/mar/2011 00.45, "Ily

Re: Just a stab in the dark

2011-03-13 Thread Matt Meola
On 03/12/2011 05:57 AM, Adam Hardy wrote: > Hi List > > this is a bit OT but it's the weekend and I have a question which I am > desperate to answer and my googling skills are no match for it. > > Does anyone know where I can get a Java implementation of scanf? Does java.text.MessageFormat.parse()

RE: Exclude parameter from URL tag

2011-03-13 Thread Dave Newton
Probably an interceptor would be a better choice if it's app-wide. Dave On Mar 13, 2011 7:45 PM, "Ilya Kazakevich" wrote: > Thanks and does there is a way to configure it for all cases? > I want to exclude one param from all places > > -Original Message- > From: Maurizio Cucchiara [mailt

RE: Exclude parameter from URL tag

2011-03-13 Thread Ilya Kazakevich
Thanks and does there is a way to configure it for all cases? I want to exclude one param from all places -Original Message- From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] Sent: Monday, March 14, 2011 2:16 AM To: Struts Users Mailing List Subject: Re: Exclude parameter fr

Re: Exclude parameter from URL tag

2011-03-13 Thread Maurizio Cucchiara
IIRC you could set them to null, something like Maurizio Cucchiara Il giorno 14/mar/2011 00.12, "Ilya Kazakevich" < ilya.kazakev...@jetbrains.com> ha scritto: > Hello, > > I use "s:url" to generate links. I use includeParams="get". > Is there a way to exclude CONCRETE param from it? > > Ilya >

Exclude parameter from URL tag

2011-03-13 Thread Ilya Kazakevich
Hello, I use "s:url" to generate links. I use includeParams="get". Is there a way to exclude CONCRETE param from it? Ilya - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@s

Re: RE: Just a stab in the dark

2011-03-13 Thread Maurizio Cucchiara
I'm sorry Martin if I gave you that kind of impression, but I never thought, and moreover never said, that my idea is better than someone else's. I only said that a scanf implementation would be hard to realize due to immutability matter and so, only for the sake of curiosity, I asked the OP why he

RE: Just a stab in the dark

2011-03-13 Thread Martin Gainty
Maurizio (et al) there is no scanf functionality currently available in any of the Java Libraries Scanner methods comes close to implementing scanf but so does tokenizing an array of String constructors to append to StringBuffer either way *will probably work* Nota Bene: if you're suggesting y

Re: Just a stab in the dark

2011-03-13 Thread Adam Hardy
Oh I see. No problem. re scanf vs scanner: scanf takes a pattern, an input string of values in format of pattern, and an array of reference variables. It parses the input string according to the pattern (using all the same types and qualifications as printf) and puts the resulting values in th

Re: Just a stab in the dark

2011-03-13 Thread Maurizio Cucchiara
I'm sorry, but unfortunately I have any implementation and to be frankly I don't understand why Marting thought so :). Adam, again, why do you prefer scanf to scanner? On 13 March 2011 15:53, Adam Hardy wrote: > I actually hoped I would find it in commons lang already - I was only asking > on th

Re: Just a stab in the dark

2011-03-13 Thread Adam Hardy
I actually hoped I would find it in commons lang already - I was only asking on the struts list because I know the user list here is so much more diverse and would more likely know if it existed already somewhere. Do you Maurizio already have a scanf implementation? Or am I misinterpreting Mar

Re: RE: Just a stab in the dark

2011-03-13 Thread Maurizio Cucchiara
I think that the right place for this kind of questions is apache commons lang ml. Maurizio Cucchiara Il giorno 13/mar/2011 02.26, "Martin Gainty" ha scritto: > > you can use String constructor to construct what you need from any part of a previous String > then use StringBuffer to concat the St