RE: Properties lost after input result (S2)

2008-12-28 Thread Martin Gainty
and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Sun, 28 Dec 2008 09:58:11 -0800> From: mars@gmx.de> To: user@struts.apache.org> Subject: Re: Properties

Re: Properties lost after input result (S2)

2008-12-28 Thread Marsman
Felipe Fraga wrote: > > Use hidden fields to also store the properties, this way they are sent > with the request and so repopulated onde the jsp returns from the > validator. > Yes, I know that way. But when I have a page with some lists above of a form? As I know, those objects couldn't be

Re: Properties lost after input result (S2)

2008-12-28 Thread Felipe Fraga
Use hidden fields to also store the properties, this way they are sent with the request and so repopulated onde the jsp returns from the validator. Felipe Fraga On Sun, Dec 28, 2008 at 2:45 PM, Marsman wrote: > > Hi! > > I got an action to provide some properties (simple types and objects) for a

Re: .properties variable from action class

2008-12-16 Thread Oscar Alvarez
if you extend ActionSupport try getText("name.of.your.property") 2008/12/16 elyes sallem > Hello, > i wanna know how get back a property variable defined in ".properties" file > from an exceute method, in the action class > > Regards > Elyes. >

RE: properties at times not found

2007-06-22 Thread stanlick
messages go away. I'm not sure if > those errors are in there for debugging reasons or not. > > -Scott > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 21, 2007 9:53 AM > To: Struts Users Mailing List >

RE: properties at times not found

2007-06-21 Thread Scott Trafton
1, 2007 9:53 AM To: Struts Users Mailing List Subject: Re: properties at times not found Hey Scott -- I am using ModelDriven and Preparable so I can pass an ID along with the requests. I added an id attribute to my baseaction class and things are working with one exception. Since the prepare m

Re: properties at times not found

2007-06-21 Thread Roberto Nunnari
Dave Newton wrote: --- Roberto Nunnari <[EMAIL PROTECTED]> wrote: But what does that mean? I've just been chalking it up to magic. How can I find out what's going on? Do I have to keep the filter mapped? Probably. Are you using SiteMesh? In a nutshell, this No. But I'm using Tiles. fi

Re: properties at times not found

2007-06-21 Thread stanlick
Hey Scott -- I am using ModelDriven and Preparable so I can pass an ID along with the requests. I added an id attribute to my baseaction class and things are working with one exception. Since the prepare method is called before the getModel, when I post a form, and the prepare gets called, I am

Re: properties at times not found

2007-06-21 Thread Dave Newton
--- Roberto Nunnari <[EMAIL PROTECTED]> wrote: > But what does that mean? I've just been chalking it up to magic. > How can I find out what's going on? > Do I have to keep the filter mapped? Probably. Are you using SiteMesh? In a nutshell, this filter tells the dispatcher filter not to clean up

Re: properties at times not found

2007-06-21 Thread Roberto Nunnari
Hello Dave. Yes. That helps! Now the JSP always get good data.. But what does that mean? How can I find out what's going on? Do I have to keep the filter mapped? Dave Newton wrote: One thing I've done when weird things are happening for no apparent reason is include the context cleanup filter

Re: properties at times not found

2007-06-21 Thread Dave Newton
One thing I've done when weird things are happening for no apparent reason is include the context cleanup filter; you can always see if that helps; map it before the struts dispatcher. contextCleanup org.apache.struts2.dispatcher.ActionContextCleanUp d. --- Roberto Nunnari <[EMAIL

Re: properties at times not found

2007-06-21 Thread Roberto Nunnari
Hello list. Going on with investigation on this strange misbehaviour, I found out that when the JSP page gets good data, in the value stack I see: key: com.opensymphony.xwork2.dispatcher.HttpServletRequest value: [EMAIL PROTECTED] while when I get no data I see: key: com.opensymphony.xwork2.

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
Jeff Amiel wrote: On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: humm... If it's truly 'random' like that there are only 4 things that could be happening. 1. Display tag is broken (not likely) don't think so.. the same thing happens also with another action that puts a list (differ

Re: properties at times not found

2007-06-20 Thread Jeff Amiel
On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: humm... If it's truly 'random' like that there are only 4 things that could be happening. 1. Display tag is broken (not likely) 2. You occasionally have another element in some other scope with the same name that is being picked up 'firs

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
Jeff Amiel wrote: On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: Yes. That's it. It happens at random times.. not always. When it happens, all I get instead of the table in the browser is: Nothing found to display. makes no sensesure you don't have a local variable inside the exec

Re: properties at times not found

2007-06-20 Thread Jeff Amiel
On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: Yes. That's it. It happens at random times.. not always. When it happens, all I get instead of the table in the browser is: Nothing found to display. makes no sensesure you don't have a local variable inside the execute method called s

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
Hi Jeff. Jeff Amiel wrote: On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: In the execute method of the action I can verify the list is not empty. But in the jsp view, at times it reports an empty list. Are you saying that 'sometimes' when the search actually brings back results (and

Re: properties at times not found

2007-06-20 Thread Jeff Amiel
On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: In the execute method of the action I can verify the list is not empty. But in the jsp view, at times it reports an empty list. Are you saying that 'sometimes' when the search actually brings back results (and you output it via that for lo

Re: properties at times not found

2007-06-20 Thread Emil.I
Hello, i had a similar problem, u may need a concrete implementation for your property something like: private List stories = new LinkedList(); public List getStories() { return stories; } and make sure to override toString() in your Story class... don't know what else to tell ya. Good Luck.

RE: properties at times not found

2007-06-20 Thread Scott Trafton
Original Message- From: Roberto Nunnari [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 20, 2007 12:49 PM To: Struts Users Mailing List Subject: Re: properties at times not found Hello Scott. ..but.. the list is a property of the action, and it's populated in the execute method.. th

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
Hi again Scott. I tried anyways adding to my struts.xml but it doesn't help.. Any more hints? Roberto Nunnari wrote: Hello Scott. ..but.. the list is a property of the action, and it's populated in the execute method.. the JSP, should be rendered after the execute method has returned, and

Re: properties at times not found

2007-06-20 Thread Roberto Nunnari
Hello Scott. ..but.. the list is a property of the action, and it's populated in the execute method.. the JSP, should be rendered after the execute method has returned, and so at that time it should be safe to get the stories from the action, as by now it should be set and ready. Do I miss anyhi

RE: properties at times not found

2007-06-20 Thread Scott Trafton
If you are trying to load your list by using a parameter passed in.. say and Id from a link or another page, you might need to use the paramsPrepareParamsStack interceptor and implement Preparable in you action. I ran into a similar problem the other day. You would need to put your code to popula

Re: Properties files

2007-06-05 Thread vikas rao
Yeah, create a .properties file, have your key, value pairs in it. Write a simple java program like this at first to see how it works: import java.util.ResourceBundle; public class ConfigRead { public static ResourceBundle confdetails=ResourceBundle.getBundle(" JDomTrial.myconffile"); publi

Re: Properties files

2007-06-05 Thread Frank W. Zammetti
Comes with java itself .. grep java.util.Properties Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of "Practical Ajax Projects With Java Technology" (2006, Apress, ISBN 1-59059-695-1)

RE: properties file

2007-04-04 Thread Syed Ibrahim
Thanks Dave. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 04, 2007 5:12 PM To: Struts Users Mailing List Subject: Re: properties file --- Syed Ibrahim <[EMAIL PROTECTED]> wrote: > Am going through struts2-blank-2.0.6 project, t

Re: properties file

2007-04-04 Thread Dave Newton
--- Syed Ibrahim <[EMAIL PROTECTED]> wrote: > Am going through struts2-blank-2.0.6 project, there > is HelloWorld.jsp file, while executing this file it > searches for package.properties file which is > not defined in the HelloWorld.jsp. > > Can anybody please let me know where it is defined. /W

RE: properties file

2007-04-04 Thread Syed Ibrahim
Thanks lot Victor. Ibrahim -Original Message- From: VictorR [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 04, 2007 4:07 PM To: user@struts.apache.org Subject: Re: properties file Hi Ibrahim, I don't know where defined is, but if you want you can change this behavior settin

Re: properties file

2007-04-04 Thread VictorR
Hi Ibrahim, I don't know where defined is, but if you want you can change this behavior setting the "struts.custom.i18n.resources" property as a constant into the struts.xml file. Note the value must not contains ".properties" sufix!! regards, __Billa__ wrote: > > > Hi All, > > Am goin

Re: .properties file

2006-05-29 Thread Antonio Petrelli
Shervin Asgari ha scritto: Hello, can anyone point me to a tutorial or HowTo on how I can create a .properties file and how I can extract the information from this file within the source code? I don't know if Struts has some automagic stuff that does this. If you mean simple ".properties" f

RE: Properties

2006-04-18 Thread Neil Meyer
enet2.util.sessionmanager.filter.SessionManagerFilter.do Filter(SessionManagerFilter.java:66) Please indicate to me why this is happening? Regards Neil Meyer -Original Message- From: Neil Meyer Sent: 12 April 2006 03:09 PM To: 'Struts Users Mailing List' Subject: RE: Properties Ok, I'

Re: Properties

2006-04-12 Thread Nicolas De Loof
ll my libraries are declared. Is there a place where I can find a list of the differences between the standard and the EL taglibs? Neil -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: 12 April 2006 03:04 PM To: Struts Users Mailing List Subject: Re: Properties

RE: Properties

2006-04-12 Thread Neil Meyer
EMAIL PROTECTED] Sent: 12 April 2006 03:04 PM To: Struts Users Mailing List Subject: Re: Properties I'm using a single "taglibs" JSP that has all taglibs includes headers. I don't use "-el" suffix for EL taglibs as I only use EL tags (not standard ones). <%@ tag

Re: Properties

2006-04-12 Thread Nicolas De Loof
but it did not work so the EL works fine. Thanks for all your help. Regards Neil Meyer -Original Message- From: Kjersti Berg [mailto:[EMAIL PROTECTED] Sent: 12 April 2006 12:54 PM To: Struts Users Mailing List Subject: Re: Properties On 12/04/06, Neil Meyer <[EMAIL PROTECTED]> w

RE: Properties

2006-04-12 Thread Neil Meyer
Thanks Nico, It worked perfectly with the EL tags. Neil -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: 12 April 2006 01:44 PM To: Struts Users Mailing List Subject: Re: Properties Using struts-EL tags : Nico. Kjersti Berg a écrit : > On 12/04

RE: Properties

2006-04-12 Thread Neil Meyer
: Re: Properties On 12/04/06, Neil Meyer <[EMAIL PROTECTED]> wrote: > Hi, > > Would like to know why the following doesn't work can anybody explain it > please. > > I have a text box on a page this text box is readonly when the readonly > property is set to tr

Re: Properties

2006-04-12 Thread Nicolas De Loof
Using struts-EL tags : Nico. Kjersti Berg a écrit : On 12/04/06, Neil Meyer <[EMAIL PROTECTED]> wrote: Hi, Would like to know why the following doesn't work can anybody explain it please. I have a text box on a page this text box is readonly when the readonly property is set to tru

Re: Properties

2006-04-12 Thread Kjersti Berg
On 12/04/06, Neil Meyer <[EMAIL PROTECTED]> wrote: > Hi, > > Would like to know why the following doesn't work can anybody explain it > please. > > I have a text box on a page this text box is readonly when the readonly > property is set to true. > > > readonly=" name='form' property='readOnly'/>

Re: Properties of Properties of Beans

2006-03-22 Thread Rick Reumann
David M Sledge wrote the following on 3/22/2006 11:35 AM: and the object rootBean has the property childBean, and childBean has the property grandChildBean (with the appropriate getters and setters). Is there a way I can access grandChildBean via a jsp tag without setting more attributes? Ass

Re: Properties of Nested Beans

2004-10-08 Thread Chris Stavrianou
I have narrowed the behaviour down somewhat - it appears to be related to using capital letters in properties. If I change the name of the LocationID String in the LocationBean from locationID to LocationID I get the following error: [ServletException in:/WEB-INF/jsp/admin/location/locselect.jsp]

Re: Properties of Nested Beans

2004-10-08 Thread Yves Sy
Try keyboardmonkey.com It has good stuff on nested tags which is what probably need. -Yves- On Fri, 08 Oct 2004 11:39:27 -0400, Bill Siggelkow <[EMAIL PROTECTED]> wrote: > There is no such restriction -- please provide some code so we can help > diagnose your problem. > > -Bill Siggelkow > >

Re: Properties of Nested Beans

2004-10-08 Thread Bill Siggelkow
There is no such restriction -- please provide some code so we can help diagnose your problem. -Bill Siggelkow Chris Stavrianou wrote: HI all, I am having a problem with collections of beans nested within beans. I have found that I can only nested beans and get property names if the property name

RE: Properties Files? (to avoid hardcoding server locations)

2004-09-20 Thread Mick.Knutson
iling List' Subject: RE: Properties Files? (to avoid hardcoding server locations) > Do I need to declare the resource bundle in the > struts-config.xml file the way the messageresources are declared. Only if you want the "html:errors" or "html:messages" tags to be

RE: Properties Files? (to avoid hardcoding server locations)

2004-09-20 Thread Slattery, Tim - BLS
> Do I need to declare the resource bundle in the > struts-config.xml file the way the messageresources are declared. Only if you want the "html:errors" or "html:messages" tags to be able to access it. -- Tim Slattery [EMAIL PROTECTED] --

Re: Properties Files? (to avoid hardcoding server locations)

2004-09-20 Thread Dave
Ahhh Do I need to declare the resource bundle in the struts-config.xml file the way the messageresources are declared. or is that only for the message resouces? On Mon, 20 Sep 2004 16:02:43 -0400, Slattery, Tim - BLS <[EMAIL PROTECTED]> wrote: > > How would I create an ApplicationResources.pr

RE: Properties Files? (to avoid hardcoding server locations)

2004-09-20 Thread Slattery, Tim - BLS
> How would I create an ApplicationResources.properties? > Ideally I'd like to have a properties file that had > > server.1=www.bla.com > server.2=www2.bla.com > etc > > Then read them into an array of appropriate objects, then > loop through the objects, attempting to connect to each one in tu

RE: .properties file --> Again I18n problem

2004-05-25 Thread SMETS Thomas
coding="UTF-8" %> Hope it helps, \T, > -Original Message- > From: Paul McCulloch [mailto:[EMAIL PROTECTED] > Sent: 02 April 2004 17:14 > To: 'Struts Users Mailing List' > Subject: RE: .properties file --> Again I18n problem > > > Check th

RE: .properties file --> Again I18n problem

2004-04-02 Thread Paul McCulloch
> Sent: 02 April 2004 13:02 > To: Struts Users Mailing List > Subject: Re: .properties file --> Again I18n problem > > > Now I am able to receive errors, after I have configured Deployment > Descriptor. > > But unfortunately, when you wright to ApplicationResources

Re: .properties file --> Again I18n problem

2004-04-02 Thread Ramil Mirhasanov
Now I am able to receive errors, after I have configured Deployment Descriptor. But unfortunately, when you wright to ApplicationResources file non-ascii characters, such as ş,ğ, etc. They are not properly displayed from JSP. I tried the following things: - convert special characters with sdk's na

Re: .properties file

2004-04-01 Thread Bryce Fischer
> And in struts-config.xml I got : > > parameter="ca.ulaval.fsa.drdb.struts12.resources. ApplicationResources"/> > > But still I get the same error messge. The file exists in the above > parameter definition. I am puzzled! Well, one thing that always gets me where you actually put th

Re: .properties file

2004-04-01 Thread walkrustin
While debugging this problem it's easy to overlook the fact that struts-config.xml is loaded when the web server boots for the first time. I have come across many cases where the fix is put into struts-config.xml file but the server is not restarted; hence the old result shows up and the user b

Re: .properties file

2004-04-01 Thread Mario St-Gelais
Ramil Mirhasanov wrote: I have chosen the problem like this, after surfing net a little bit, I added : action org.apache.struts.action.ActionServlet application mypackage.ApplicationResources <.../> to web.xml And created mypackage.ApplicationResources.properties file.

Re: .properties file

2004-04-01 Thread Ramil Mirhasanov
s file. - Original Message - From: "Brendan Richards" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, April 01, 2004 5:42 PM Subject: RE: .properties file > This is configured towards the bottom of the struts-config.xml file &

Re: .properties file

2004-04-01 Thread Larry Meadors
ApplicationResources.properties, the defeult location is usually WEB-INF/ApplicationResources.properties, but in your case it may be configured to be elsewhere. >>> [EMAIL PROTECTED] 04/01/04 7:30 AM >>> I am using Jbuilder9 Enterprise and trying to buid my 1. example application with struts. Th

RE: .properties file

2004-04-01 Thread Brendan Richards
This is configured towards the bottom of the struts-config.xml file For Example: maps the default resources file: resources/application.resources -Original Message- From: Ramil Mirhasanov [mailto:[EMAIL PROTECTED] Sent: 01 April 2004 15:31 To: [EMAIL PROTECTED] Subject: .properties