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
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
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
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.
>
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
>
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
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
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
--- 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
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
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
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.
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
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
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
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
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
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
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.
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
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
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
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
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
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)
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
--- 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
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
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
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
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'
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
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
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
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
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
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
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'/>
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
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]
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
>
>
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
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
> 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]
--
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
> 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
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
> 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
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
> 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
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
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.
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
&
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
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
55 matches
Mail list logo