Re: Struts2 and JDBC : How to read jdbc.properties only once , for 100 or 1000 users

2014-01-06 Thread Lukasz Lenart
2014/1/5 Chris : > Hello, > Introducing Interceptors works on Struts2.3.16 > http://struts.apache.org/development/2.x/docs/introducing-interceptors.html > > But I would like to create my own Interceptor > http://struts.apache.org/development/2.x/docs/writing-interceptors.html > > The example with S

Re: Struts2 and JDBC : How to read jdbc.properties only once , for 100 or 1000 users

2014-01-05 Thread Chris
14 15h49, Lukasz Lenart a écrit : You can use Interceptor#init() 2014/1/2 Chris : > Hello, > How to read  the file "jdbc.properties" only once, > > when the web application is for 100 or 1000 users ? > ( in which Action/method ? ) > > Thanks --

Re: Struts2 and JDBC : How to read jdbc.properties only once , for 100 or 1000 users

2014-01-02 Thread Chris
r files ) , Struts 2 Annotations next -> Introducing Interceptors...etc ) Le Jeudi 2 janvier 2014 15h49, Lukasz Lenart a écrit : You can use Interceptor#init() 2014/1/2 Chris : > Hello, > How to read  the file "jdbc.properties" only once, > > when the web applic

Re: Struts2 and JDBC : How to read jdbc.properties only once , for 100 or 1000 users

2014-01-02 Thread Lukasz Lenart
You can use Interceptor#init() 2014/1/2 Chris : > Hello, > How to read the file "jdbc.properties" only once, > > when the web application is for 100 or 1000 users ? > ( in which Action/method ? ) > > Thanks

Struts2 and JDBC : How to read jdbc.properties only once , for 100 or 1000 users

2014-01-02 Thread Chris
Hello, How to read  the file "jdbc.properties" only once, when the web application is for 100 or 1000 users ? ( in which Action/method ? ) Thanks

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-08 Thread Chris
Thanks Leonidas Hi there, webwork used to have a class that would easily read external sources like xml files, but i do not recall the class name now. If you want to read from simple property files you could use something like : String path = ServletActionCo

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Leonidas Papadakis
fr> > Envoyé le : Vendredi 6 septembre 2013 13h45 > Objet : Re: Struts 2.3.15.1 How to read external properties files or conf > files > > > Have you tried http://commons.apache.org/proper/commons-configuration/ > it can read various type of property files > > > On Fri, Sep

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
Thanks  , I 'll try with commons-configuration De : Umesh Awasthi À : Struts Users Mailing List ; Chris Envoyé le : Vendredi 6 septembre 2013 13h45 Objet : Re: Struts 2.3.15.1 How to read external properties files or conf files Have you tried

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Dave Newton
; De : Dave Newton > À : Struts Users Mailing List > Envoyé le : Vendredi 6 septembre 2013 13h17 > Objet : Re: Struts 2.3.15.1 How to read external properties files or conf > files > > > How are you trying to load them? As a resource on the classpath? > > Dave >

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Umesh Awasthi
gards > > > > > > ________ > > De : "umeshawas...@gmail.com" > > À : Struts Users Mailing List ; Chris < > > christal...@yahoo.fr> > > Envoyé le : Vendredi 6 septembre 2013 10h50 > > Objet : Re: Struts 2

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
À : Struts Users Mailing List Envoyé le : Vendredi 6 septembre 2013 13h17 Objet : Re: Struts 2.3.15.1 How to read external properties files or conf files How are you trying to load them? As a resource on the classpath? Dave On Sep 6, 2013 5:51 AM, "Chris" wrote: > Where : ser

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
rs Mailing List Envoyé le : Vendredi 6 septembre 2013 13h15 Objet : Re: Struts 2.3.15.1 How to read external properties files or conf files Without any code it's hard to know what's happening. I do ask you to seriously reconsider refactoring database access out of the action or

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
nvoyé le : Vendredi 6 septembre 2013 13h13 Objet : RE: Struts 2.3.15.1 How to read external properties files or conf files if you did not place log4j.properties on classpath then Set the resource string variable to the value of the log4j.configuration system property. The preferred way to sp

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Dave Newton
perties > or > > java.io.FileNotFoundException : ldapconfiguration.conf > > > Regards > > > > De : "umeshawas...@gmail.com" > À : Struts Users Mailing List ; Chris < > christal...@yahoo.fr> > Envoyé le : Vendredi 6 septembre 2013

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Miguel Almeida
> De : "umeshawas...@gmail.com" > À : Struts Users Mailing List ; Chris > > Envoyé le : Vendredi 6 septembre 2013 10h50 > Objet : Re: Struts 2.3.15.1 How to read external properties files or conf > files > > > Log4j file will be ready by Log4j f

RE: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Martin Gainty
ulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Fri, 6 Sep 2013 09:40:03 +0100 > From: christal...@yahoo.fr > Subject: Struts 2.3.15.1 How to read external properties files or conf files > To: user@struts.apache.org > > Using log4j.pr

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
st ; Chris Envoyé le : Vendredi 6 septembre 2013 10h50 Objet : Re: Struts 2.3.15.1 How to read external properties files or conf files Log4j file will be ready by Log4j framework and not exactly by struts2 Can you define where and how you want to read your property files? Sent from BlackBerry®

Re: Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread umeshawasthi
Users Mailing List" Subject: Struts 2.3.15.1 How to read external properties files or conf files Using log4j.properties instead of log4j.xml is not a problem with Struts 2.3.15.1 ( or should it be ? ) But with my own properties files ( jdbc.properties ) or configuration files ( ldap

Struts 2.3.15.1 How to read external properties files or conf files

2013-09-06 Thread Chris
Using log4j.properties instead of log4j.xml is not a problem with Struts 2.3.15.1 ( or should it be ? ) But with my own properties files ( jdbc.properties ) or configuration files ( ldap.conf ) it doesn't work. Is there any example with external files . Not an upload  file by input forms. .

RE: How to read an XML request from struts

2009-09-21 Thread Indika Maligaspe
@struts.apache.org [mailto:user-return-202452-indika=rezgateway@struts.apache.org] On Behalf Of Indika Maligaspe Sent: Monday, September 21, 2009 7:46 AM To: 'Struts Users Mailing List' Subject: RE: How to read an XML request from struts I would also like to know what Martin has queried, if ther

RE: How to read an XML request from struts

2009-09-20 Thread Indika Maligaspe
: Sunday, September 20, 2009 8:33 PM To: Struts Users Mailing List Subject: RE: How to read an XML request from struts Tommy/Wes is there any way to autodetect which converter to use for jibx? public static final String contentTypeXML = "text/xml; charset=UTF-8; type=jibx";thanks, Mar

RE: How to read an XML request from struts

2009-09-20 Thread Martin Gainty
e pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Sun, 20 Sep 2009 10:56:57 -0400 > Subject: Re: How to read an XML request from struts > From: w...@wantii.com > To: user@struts.apache.org > > A good struts-y way to do it would be to create a converter

Re: How to read an XML request from struts

2009-09-20 Thread Wes Wannemacher
: > - Original Message >> From: indikamaligaspe >> To: user@struts.apache.org >> Sent: Friday, September 18, 2009 10:53:48 AM >> Subject: How to read an XML request from struts >> >> >> Hi, >> >> I have situation where some users will be

Re: How to read an XML request from struts

2009-09-20 Thread Tommy Pham
- Original Message > From: indikamaligaspe > To: user@struts.apache.org > Sent: Friday, September 18, 2009 10:53:48 AM > Subject: How to read an XML request from struts > > > Hi, > > I have situation where some users will be posting an XML message (using a &

How to read an XML request from struts

2009-09-18 Thread indikamaligaspe
can always handle the two requests seperately with my request handlers, the problem is identifying the two requests seperately. Thanks Indi -- View this message in context: http://www.nabble.com/How-to-read-an-XML-request-from-struts-tp25512907p25512907.html Sent from the Struts - User mailing list

Re: how to read the contents of uploaded file

2009-09-10 Thread KIRTI CHOPRA
Thank you so much -kirti -- View this message in context: http://www.nabble.com/how-to-read-the-contents-of-uploaded-file-tp25384149p25395100.html Sent from the Struts - User mailing list archive at Nabble.com. - To

Re: how to read the contents of uploaded file

2009-09-10 Thread Wes Wannemacher
give which path real or absolute > -- > View this message in context: > http://www.nabble.com/how-to-read-the-contents-of-uploaded-file-tp25384149p25384149.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > ---

how to read the contents of uploaded file

2009-09-10 Thread KIRTI CHOPRA
path real or absolute -- View this message in context: http://www.nabble.com/how-to-read-the-contents-of-uploaded-file-tp25384149p25384149.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e

Re: how to read JSON data properties from struts2-ModelDriven?

2009-04-02 Thread Nils-Helge Garli Hegvik
s-H [1] - http://cwiki.apache.org/S2PLUGINS/json-plugin.html 2009/4/2 Junhua gao : > > hello, > who can please tell me how to read JSON properties from struts2-ModelDriven? > > > $.getJSON('LicenseeQueryJsonAction',{licenseeID:licenseeid},function(data){)) > >

how to read JSON data properties from struts2-ModelDriven?

2009-04-02 Thread Junhua gao
hello, who can please tell me how to read JSON properties from struts2-ModelDriven? $.getJSON('LicenseeQueryJsonAction',{licenseeID:licenseeid},function(data){)) data is a BEAN (VO), how to read its

RE: How to read struts2 constants in action class

2008-11-25 Thread Manish Kumar Wadhwa
Great it works. Thanks so much Musachy... :) Manish. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2008 10:51 PM To: Struts Users Mailing List Subject: Re: How to read struts2 constants in action class use "@Inject"

Re: How to read struts2 constants in action class

2008-11-24 Thread Musachy Barroso
use "@Inject". @Inject("custom.myConstant") public void setSomeString(String mystring) {...} Things to note about that: 1. Struts needs to be the one creating your actions (no object factory from an IoC, like Spring, Guice, etc) 2. This is not guaranteed to work in the future, but it is unlikely

How to read struts2 constants in action class

2008-11-24 Thread Manish Kumar Wadhwa
Hi All, Is there a away to get the value of a constant, declared in the struts.xml file, in my action class? Thanks, Manish - DISCLAIMER This email and any files transmitted with it ar

Re: Can I put a "public final static" field in the Action, and How to read the static field in JSP page?

2008-11-04 Thread Nils-Helge Garli Hegvik
Take a look at http://struts.apache.org/2.0.12/docs/ognl-basics.html Nils-H On Wed, Nov 5, 2008 at 8:18 AM, Mead Lai <[EMAIL PROTECTED]> wrote: > my Action is: > public class myAction extends BaseAction { > public final static String BASE_URL = ""; > } > > Should the "BASE_URL " declare as "

Can I put a "public final static" field in the Action, and How to read the static field in JSP page?

2008-11-04 Thread Mead Lai
my Action is: public class myAction extends BaseAction { public final static String BASE_URL = ""; } Should the "BASE_URL " declare as "private" access modifier, and add get() & set() in the Action? How to get the static field in the JSP? Or maybe there is any other way to get "constant" val

Re: How to read selected items from listbox in action??

2008-10-20 Thread Mead Lai
private List checkBoxIds; use bove List in Action; You'll get some String about 'fieldValue' in Tag. On Tue, Oct 21, 2008 at 4:34 AM, A. Lotfi <[EMAIL PROTECTED]> wrote: > Hi, > If you have a listbox and you selct items or all items and submit to an > action, how

How to read selected items from listbox in action??

2008-10-20 Thread A. Lotfi
Hi, If you have a listbox and you selct items or all items and submit to an action, how to read the selected items in the action ? thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: how to read drop down from the properties file

2008-09-16 Thread Lukasz Lenart
Hi, You can make it a I18N resource, read via getText("month") in action, split in to an array and expose vie getter from action to jsp. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] F

how to read drop down from the properties file

2008-09-16 Thread sam thothi
Can any one please let me know how to read a drop down through properties file I have two drop downs. I need to read the drop down values through the properties file . It would appreciate if any one can provide a sample code to do this kind of function. Say for example if i have in the

RE: How to read data from nested list elements

2008-06-27 Thread Reddy, Ramachandra (IS Consultant)
: 'user@struts.apache.org' Subject: How to read data from nested list elements Hi Folks, I have particular requirement where I have nested elements and within that again some elements… So the nesting is up to 3 levels. Top most element is    ModulesList= it has N modules  Module

How to read data from nested list elements

2008-06-26 Thread Reddy, Ramachandra (IS Consultant)
Hi Folks, I have particular requirement where I have nested elements and within that again some elements… So the nesting is up to 3 levels. Top most element is    ModulesList= it has N modules  Module = it has N  Parts Part= it has N Elements Here is the class hieirarchy Parent class that hol

Re: [OT] Re: struts2: how to read the 'potenrial list' from a database

2008-06-13 Thread xianwinwin
.dave wrote: > > No CC. Just list. I don't need two copies of all list traffic. > > > --- On Fri, 6/13/08, Onur Idrisoglu <[EMAIL PROTECTED]> wrote: > >> From: Onur Idrisoglu <[EMAIL PROTECTED]> >> Subject: Re: struts2: how to read the 'potenria

[OT] Re: struts2: how to read the 'potenrial list' from a database

2008-06-13 Thread Dave Newton
No CC. Just list. I don't need two copies of all list traffic. --- On Fri, 6/13/08, Onur Idrisoglu <[EMAIL PROTECTED]> wrote: > From: Onur Idrisoglu <[EMAIL PROTECTED]> > Subject: Re: struts2: how to read the 'potenrial list' from a database > To: "Stru

Re: struts2: how to read the 'potenrial list' from a database

2008-06-13 Thread Onur Idrisoglu
quot;Paris"); > > >> . > > >> . > > >> . > > >> > > >> return SUCCESS; > > >> } > > >> > > >>public List getState(){ > > >> return state; > > >&

Re: struts2: how to read the 'potenrial list' from a database

2008-06-13 Thread Dave Newton
t; . > >> . > >> . > >> > >> return SUCCESS; > >> } > >> > >>public List getState(){ > >> return state; > >> } > >> } > >> > >> as you can see, the autocompliter is based on the &g

Re: struts2: how to read the 'potenrial list' from a database

2008-06-13 Thread srichin
OTECTED]> wrote: > >> From: xianwinwin <[EMAIL PROTECTED]> >> Subject: struts2: how to read the 'potenrial list' from a database >> To: user@struts.apache.org >> Date: Thursday, June 12, 2008, 6:07 PM >> I have a list of 20,000 cities; I

Re: struts2: how to read the 'potenrial list' from a database

2008-06-12 Thread Dave Newton
Search a database of city names? I'm not sure what you're asking. --- On Thu, 6/12/08, xianwinwin <[EMAIL PROTECTED]> wrote: > From: xianwinwin <[EMAIL PROTECTED]> > Subject: struts2: how to read the 'potenrial list' from a database > To: user@struts.a

struts2: how to read the 'potenrial list' from a database

2008-06-12 Thread xianwinwin
Q: How can I invoke an action once the user types a letter (str) and the string gets to the invoked-method (based on the str the method will invoke the appropriate list) thank you!!! -- View this message in context: http://www.nabble.com/struts2%3A-how-to-read-the-%27potenrial-list%27-from-a-dat

Re: how to read login info

2007-05-22 Thread Jeromy Evans
If you simply want to open a personalised page when they return to http://abc:8080/product, just save a cookie the first time they login so you know who they are the next time they come back. If you genuinely want to authenticate the user using their windows login credentials: On the server-si

how to read login info

2007-05-22 Thread Vardan
Dear All , Can we have windows Login credentials like user name or domain name,to make my application single signon. Scenario 1.User login into Windows and hit http://abc:8080/product 2.The request comes to logOn action,so at this point is it possible to fetch user domain name or

Re: [S2] how to read request parameter in windows-1257 encoding

2007-02-26 Thread ros
/aaa.html=Cp1257;/bbb.html=Cp1256; now it's ok. Thank you all for help! -- View this message in context: http://www.nabble.com/how-to-read-request-parameter-in-windows-1257-encoding-tf3284137.html#a9160958 Sent from the Struts - User mailing list archive at Nabble.com.

Re: how to read request parameter in windows-1257 encoding

2007-02-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ros, ros wrote: > I have to read form post in windows-1257 encoding. > The request field AAA should be PAĻIV but it is PA?V > > How I can read special characters like Ļ Ā Ī and others? Where are you seeing the string "PA?V" If you are seeing it in a

how to read request parameter in windows-1257 encoding

2007-02-24 Thread ros
d struts2. Thanks! -- View this message in context: http://www.nabble.com/how-to-read-request-parameter-in-windows-1257-encoding-tf3284137.html#a9135097 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscri

Re: how to read

2006-07-31 Thread Michael Jouravlev
On 7/31/06, temp temp <[EMAIL PROTECTED]> wrote: How to read the following code ? boolean vIsForm = vWorkTypeId.equals(IFormflowWorkTypeIds.FORM); String vWorkForwardName = MessageFormat.format("work={0}", new Object[] {vWorkAlias}); Str

Re: how to read

2006-07-31 Thread Chris Cheshire
7;s more succint than using if/else logic, but a little more obscure. HTH Chris On 7/31/06, temp temp <[EMAIL PROTECTED]> wrote: How to read the following code ? boolean vIsForm = vWorkTypeId.equals(IFormflowWorkTypeIds.FORM); String vWorkForwardName = MessageFormat.for

how to read

2006-07-31 Thread temp temp
How to read the following code ? boolean vIsForm = vWorkTypeId.equals(IFormflowWorkTypeIds.FORM); String vWorkForwardName = MessageFormat.format("work={0}", new Object[] {vWorkAlias}); String vForwardName = (aActionMapping.findForward(vWorkForwardName

How to read application property file in Struts application ?

2006-01-30 Thread digant . k . joshi
How should I read multiple different properties file in struts application, so by name of the property file I can distinguish what type of properties are defined in the property file. For e.g. 1. Messages.properties 2. ApplicationBO.propertis and so forth. Any help is appreciated ! Than

Re: How to read ResourceBundle

2005-07-25 Thread Vincent
I've found Nick Heudecker's tutorial helpful on this subject: http://www.systemmobile.com/articles/strutsMessageResources.html Ashutosh Satyam wrote: > Hi, > In my application I want to set the error key based on whether > the error key is present in resource bundle. The error key is > generat

Re: How to read ResourceBundle

2005-07-25 Thread Laurie Harper
See the Javadoc for Action. To get the resource bundle from your action: http://struts.apache.org/api/org/apache/struts/action/Action.html#getResources(javax.servlet.http.HttpServletRequest) You then have various options for retrieving specific messages: http://struts.apache.org/api/org/apache/

How to read ResourceBundle

2005-07-25 Thread Ashutosh Satyam
Hi, In my application I want to set the error key based on whether the error key is present in resource bundle. The error key is generated in the system and the top most layer 'Action class' is supposed to set the keys based on the error key availability. - - - - - - - - - - - - - - - - - - -

Re: Newbie, How to read values from a to a ActionForm?

2005-07-19 Thread Laurie Harper
1) you have a mix of assume you're showing a combination of what's in your JSP and what gets generated client-side by JavaScript? That shouldn't be a problem, but note that using without an enclosing isn't valid. 2) if I understand you correctly, you're saying that in the action the form is

Newbie, How to read values from a to a ActionForm?

2005-07-19 Thread Thomas Sundberg
Hi! I want to read values from a jsp page that contains something like this: role1 role2 role3 I want the values to appear in an ActionForm so I can store them in a database in a corresponding Action. My action-mapping looks some

Re: How to read MessageResources.

2004-10-14 Thread Alan Pocklington
Bill, Thanks for the pointer. I have already downloaded the source and have extended Struts successfully many times. The MessageResources thing was something I couldn't quite get my head around, so I figured I'd ask the experts. Now I have the code, it didn't seem so complicated after all.

Re: How to read MessageResources.

2004-10-13 Thread Bill Siggelkow
Alan -- I strongly encourage you (if you haven't already) to download the Struts source and use it as you develop. You will be amazed at how much quicker you can grok Struts. -Bill Siggelkow Alan Pocklington wrote: Oh okay, I'll look into that. Thanks for your help. Hubert Rabago <[EMAIL PROT

Re: How to read MessageResources.

2004-10-13 Thread Justy
getLocale(::HttpServletRequest) will get locale from session instead of request. On Wed, 13 Oct 2004 15:54:02 + (UTC), Alan Pocklington <[EMAIL PROTECTED]> wrote: > Cheers for pointing that out. As of yet I don't need message arguments > so that'll be fine. > > Was there any reason for havi

Re: How to read MessageResources.

2004-10-13 Thread Alan Pocklington
Oh okay, I'll look into that. Thanks for your help. Hubert Rabago <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Struts has some special treatment for locales. You'd wanna abide by > that for consistency with what its internal engine uses for the > resource files. > > > On Wed, 13 Oc

Re: How to read MessageResources.

2004-10-13 Thread Hubert Rabago
Struts has some special treatment for locales. You'd wanna abide by that for consistency with what its internal engine uses for the resource files. On Wed, 13 Oct 2004 15:54:02 + (UTC), Alan Pocklington <[EMAIL PROTECTED]> wrote: > Cheers for pointing that out. As of yet I don't need messag

Re: How to read MessageResources.

2004-10-13 Thread Hubert Rabago
Yup, right here: /** * Get the locale that will be used for a conversion operation. */ protected Locale getLocale(HttpServletRequest request) { Locale locale = null; // see if there's a locale present among the session attributes HttpSession session = req

Re: How to read MessageResources.

2004-10-13 Thread Alan Pocklington
Cheers for pointing that out. As of yet I don't need message arguments so that'll be fine. Was there any reason for having a getLocale(request) method? I'm guessing the implementation was different from just request.getLocale(). Hubert Rabago <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED

Re: How to read MessageResources.

2004-10-13 Thread Hubert Rabago
On Wed, 13 Oct 2004 10:38:09 -0500, Hubert Rabago <[EMAIL PROTECTED]> wrote: > Yup, copy/paste from existing code works fast. :) It's also not foolproof. This excerpt was specific to the needs of the class I took it from. Check the getMessage() method -- it can actually accept message arguments

Re: How to read MessageResources.

2004-10-13 Thread Alan Pocklington
In that case, do you have the existing code for the method getLocale(request)? I haven't got my head around locales yet. Hubert Rabago <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Yup, copy/paste from existing code works fast. :) > > > On Wed, 13 Oct 2004 15:35:24 + (UTC), Al

Re: How to read MessageResources.

2004-10-13 Thread Hubert Rabago
Yup, copy/paste from existing code works fast. :) On Wed, 13 Oct 2004 15:35:24 + (UTC), Alan Pocklington <[EMAIL PROTECTED]> wrote: > Wow, thanks for the quick reply. Will do! > > Hubert Rabago <[EMAIL PROTECTED]> wrote in > news:[EMAIL PROTECTED]: > > > > > Put this in a util class and

Re: How to read MessageResources.

2004-10-13 Thread Alan Pocklington
Wow, thanks for the quick reply. Will do! Hubert Rabago <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Put this in a util class and call evaluateMessage(): > > /** > * Evaluate the given message resource key. > * > * @param messageKey the name of the resource entry t

Re: How to read MessageResources.

2004-10-13 Thread Hubert Rabago
Put this in a util class and call evaluateMessage(): /** * Evaluate the given message resource key. * * @param messageKey the name of the resource entry to retrieve * @param bundle The key specified in the * element for the * resource bundle

How to read MessageResources.

2004-10-13 Thread Alan Pocklington
Hi, I want my action to read a property from the MessageResources.properties file in the same way that ActionMessages does. What's the simplest code I can use to retreive a particular property's value? Thanks in advance, -

RE: How to read from web.xml?

2004-07-16 Thread Ivan Vasquez
M To: Struts Users Mailing List Subject: Re: How to read from web.xml? Ivan Vasquez wrote: >Hi, > >How can I read from web.xml, say, the application's display name? I've >tried several things, but no luck. This isn't really Struts-specific, >but I'm sure this is

Re: How to read from web.xml?

2004-07-12 Thread Jason Lea
Ivan Vasquez wrote: Hi, How can I read from web.xml, say, the application's display name? I've tried several things, but no luck. This isn't really Struts-specific, but I'm sure this is an easy one for many of you. Thanks, Ivan. in an struts action you should be able to use: getServlet().getServ

Re: How to read from web.xml?

2004-07-12 Thread Craig McClanahan
Ivan Vasquez wrote: Hi, How can I read from web.xml, say, the application's display name? I've tried several things, but no luck. This isn't really Struts-specific, but I'm sure this is an easy one for many of you. Thanks, Ivan. The web.xml file is available as a resource that can be accessed vi

How to read from web.xml?

2004-07-12 Thread Ivan Vasquez
Hi, How can I read from web.xml, say, the application's display name? I've tried several things, but no luck. This isn't really Struts-specific, but I'm sure this is an easy one for many of you. Thanks, Ivan.

RE: How to read a large XML file in the ActionServlet

2004-06-23 Thread manoj JC
Thank you very much for your suggestions, Frank. That was really helpful. From: "Frank Zammetti" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: RE: How to read a large XML file in the ActionServlet Date:

RE: How to read a large XML file in the ActionServlet

2004-06-23 Thread Frank Zammetti
performance-wise. Do the parsing from a Struts plug-in, store it in a HashMap or whatever you need it to be in that class as a static member, and your problem will probably go away. Frank From: "manoj JC" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PR

How to read a large XML file in the ActionServlet

2004-06-23 Thread manoj JC
Hi I want to read a a large XML file for each request that comes to the ActionServlet. This is for a reporting application. What I did was I created seperate XML file where I have specified the action elements and its related subelements. So when I get the request I get the corresponding XML nod

RE: How to read a parameter in web.xml from Action class

2004-05-20 Thread Venkat Maddipati
bject: How to read a parameter in web.xml from Action class Hi, >From an Action class, I want to read a parameter specified in the web.xml file. I thought I could place it in an block, within the action element, like this: myParamName myParamValue and then read it with

RE: How to read a parameter in web.xml from Action class

2004-05-20 Thread Joe Hertz
--Original Message- > From: Iván Rodríguez [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 20, 2004 6:02 AM > To: Struts Users Mailing List > Subject: Re: How to read a parameter in web.xml from Action class > > > Why don t you use JNDI ? > > - Original Message -

Re: How to read a parameter in web.xml from Action class

2004-05-20 Thread Iván Rodríguez
Why don t you use JNDI ? - Original Message - From: "Frank Burns" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, May 20, 2004 11:47 AM Subject: Re: How to read a parameter in web.xml from Action class

Re: How to read a parameter in web.xml from Action class

2004-05-20 Thread Frank Burns
Excellent. Thank you Ashutosh. - Original Message - From: "Ashutosh Satyam" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, May 20, 2004 6:40 AM Subject: RE: How to read a parameter in web.xml from Action class One

RE: How to read a parameter in web.xml from Action class

2004-05-19 Thread Ashutosh Satyam
From: Ashutosh Satyam Sent: Thursday, May 20, 2004 10:45 AM To: Struts Users Mailing List Subject: RE: How to read a parameter in web.xml from Action class Try using the below mentioned code to read intialization parameter defined in the Web descriptor file. String sname = servle

RE: How to read a parameter in web.xml from Action class

2004-05-19 Thread Ashutosh Satyam
[mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 8:59 AM To: Struts Users Mailing List Subject: Re: How to read a parameter in web.xml from Action class Sorry, see my CORRECTION below: - Original Message - From: "Frank Burns" <[EMAIL PROTECTED]> To: "Struts Use

Re: How to read a parameter in web.xml from Action class

2004-05-19 Thread Frank Burns
Sorry, see my CORRECTION below: - Original Message - From: "Frank Burns" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, May 20, 2004 4:19 AM Subject: How to read a parameter in web.xml from Action class > Hi,

How to read a parameter in web.xml from Action class

2004-05-19 Thread Frank Burns
Hi, >From an Action class, I want to read a parameter specified in the web.xml file. I thought I could place it in an block, within the action element, like this: myParamName myParamValue and then read it within the Action class using: String paramValue = request.getS

Re: how to read ApplicationResources.properties from a servlet

2004-05-11 Thread Riyad Kalla
You could subclass the ActionServlet with your own instance that in its init method reads the properties file... I think this should do the trick, please fix the path when necessary: Properties properties = new Properties().load(MyActionServlet.getClass().getResourceAsStream("ApplicationResource

how to read ApplicationResources.properties from a servlet

2004-05-11 Thread Julio Cesar De Salvo
Hi, I was wondering if there's a chance to read the ApplicationResources.propoerties file outside the struts frame work (a servlet) and what the best way to do so. Thanks

Re: How to read a collection or a Array ?

2004-05-04 Thread Daniel H A Lima
Try this (i think you can remove "logic:notEmpty") : Be sure that you forward is a true forward (not a redirect) or you will lose the attributes in your request, ok ? --- cacau_braga <[EMAIL PROTECTED]> escreveu: > Hi All, > > This is my first message

How to read a collection or a Array ?

2004-05-04 Thread cacau_braga
Hi All, This is my first message in that list. I have a class action that I set in request an Array of my specific object (UfDataTransfer[ ], it´s a simple bean with get and set methods), I want to know as I make to call that array with tag iterate, because i need to build my view. In my Act