Hello Struts Guru;
I am using jdk1.4, struts1.0 and tomcat4.1 for my application. And I wanted
to upgrade my application to jdk1.5.
Struts1.0 had some problem with jdk1.5. I was not able to interpret two
property with the same name, one is indexed and other is not.
E.g. I have one ActionForm
Hello everyone;
I am using jdk1.4, struts1.0 and tomcat4.1 for my application. And I wanted
to upgrade my application to jdk1.5.
Struts1.0 had some problem with jdk1.5. I was not able to interpret two
property with the same name, one is indexed and other is not.
E.g. I have one Acti
hy Barroso [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 25. September 2008 16:06
An: Struts Users Mailing List
Betreff: Re: Struts2: How to access indexed property (map) with dynamic index?
try: #fooMap[#item.fooId]
On Thu, Sep 25, 2008 at 9:45 AM, Keim, Markus <[EMAIL PROTECTED]> wrote:
try: #fooMap[#item.fooId]
On Thu, Sep 25, 2008 at 9:45 AM, Keim, Markus <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> is it possible (and how) to access the values of an indexed property
> (a map) with the Struts2 "property" tag by providing a dynamicaly
> ret
Hello all,
is it possible (and how) to access the values of an indexed property
(a map) with the Struts2 "property" tag by providing a dynamicaly
retrieved/calculated index?
In detail:
Let's assume that "fooMap" is a simple Map that's
provided by a Struts2 actio
tting up the Indexed property on form submit
> in struts 2.x. It would be great if you can provide your valuable inputs to
> rectify this.
It would help if you described what the problem is... Is something not
working, or are you just unsure how to do what you want to? If the
latter, wh
tting up the Indexed property on form submit
> in struts 2.x. It would be great if you can provide your valuable inputs to
> rectify this.
It would help if you described what the problem is... Is something not
working, or are you just unsure how to do what you want to? If the
latter, wh
kukreja sanjeev wrote:
Hi Guys,
I am facing problem related to setting up the Indexed property on form submit
in struts 2.x. It would be great if you can provide your valuable inputs to
rectify this.
It would help if you described what the problem is... Is something not
working, or are
Hi Guys,
I am facing problem related to setting up the Indexed property on form submit
in struts 2.x. It would be great if you can provide your valuable inputs to
rectify this.
Thanks in Advance.
Regards,
Sanjeev
-
Take the Internet to Go: Yahoo!Go
Hello all, I am sorry to subject this list to yet another person who doesn't
understand something, but I can't for the life of me figure out hand
cranking lazy lists.
I am using 1.2.9 with java 1.5.0_06 And I can't get lazy lists to work.
I am trying to use what I found at :
http://wiki.apache.
Struts is getting confused by:
public List getSkills() {
return skills;
}
public void setSkills(Product skill) {
this.skills.add(skill);
}
The getter and setter should be consistent.
-
Hmm... I just looked at the link you sent and it looks l
but this also throws an error saying that indexedProperty[<%=pageConte
is an invalid indexed property.
--
Puneet
Little googling never hurt anybody..
The solution lies here
http://struts.apache.org/1.2.4/faqs/indexedprops.html
--
Puneet
t;%=pageConte
is an invalid indexed property.
--
Puneet
I have an indexed property which is a tipical list of textboxes, I have a
requirement to validate that the user need to at least enter values into one
text box. How can you configure this using Struts "required" validator? Thanks
will call setValue on the bean, and that's all
Hope this helps
-Message d'origine-
De : Carl Smith [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 12 avril 2006 00:21
À : Struts Users Mailing List
Objet : Re: indexed property validation
error:java.lang.reflect.InvocationTarge
ields which are indexed property, I
needs to validate all the text box contains a value other than null or empth
string. When I click on save I got the error (see the bottom). Your helps are
highly appreciated!
jsp:
(1) indexed property - text box
Fields to be validated:
I have a jsp containing three text fields which are indexed property, I needs
to validate all the text box contains a value other than null or empth string.
When I click on save I got the error (see the bottom). Your helps are highly
appreciated!
jsp:
(1) indexed property - text
Your comments make great sense...
I moved the initializing part from the displayAction to the reset method in
the form bean as you suggested and it works as expected.
Thanks.
Laurie Harper <[EMAIL PROTECTED]> wrote:
OK, so when validation fails Struts forwards to displayTesting w
OK, so when validation fails Struts forwards to displayTesting which, in
turn, forwards to /displayAction. In your DisplayAction class, you're
overwriting the values of your form bean property, destroying the
information Struts set there.
You'll need to check if the property has already been i
First of all Thank you Laurie, you are the only one anwering my questions :):
Here are my struts-config.xml entries for the actions and formbean ( I
neglected the path and anything).
Laurie Harper <[EMAIL PROTECTED]> wrote:
We'll need to see
We'll need to see the relevant parts of your struts-config.xml too
(specifically, the form bean and action mapping definitions).
L.
Carl Smith wrote:
I have a jsp containing an indexed test box field, and I need to validate the
user enter a value into all the text boxes when clicking on the s
I have a jsp containing an indexed test box field, and I need to validate the
user enter a value into all the text boxes when clicking on the save button.
Validation is done OK, but there is an issue. Let me give you an example
illustrating the issue: if there are three text boxes, the user ente
quot; validator I wrote:
http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html#twolevels
Niall
- Original Message -
From: "David Gagnon" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
Sent: Wednesday, November 16, 2005 1:07 PM
Subject: Is Struts supports
ginal Message -
From: "David Gagnon" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
Sent: Wednesday, November 16, 2005 1:07 PM
Subject: Is Struts supports indexed property like
itemForSale[1].lineDetail[4].selected ... I searched but haven't found ho
On 11/16/05, David Gagnon <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Sorry for this question that I tought trivial . but I haven't found my
> answer in the list . .so I ask you.
>
> property="itemForSale" id="itemForSale" indexId="ctr" >
>property="lineDetail" id="lineDetai
Hi all,
Sorry for this question that I tought trivial . but I haven't found my
answer in the list . .so I ask you.
property="itemForSale" id="itemForSale" indexId="ctr" >
property="lineDetail" id="lineDetail" indexId="ctr2">
property="
dexed property - not updating
You have named your indexed property in the DynaActionForm "rows" - but
on your jsp you are using a var of "row"
Either change the property defined in the DynaActionForm to "row" or
change your jsp to refer to "rows"...
Author
You have named your indexed property in the DynaActionForm "rows" - but on
your jsp you are using a var of "row"
Either change the property defined in the DynaActionForm to "row" or change
your jsp to refer to "rows"...
Author:
Hi,
I've been trying to get the values in my dynaaction form to update.
I have a "populator" Action that creates my TestRow[] object and adds it
to the form. The dynaaction also has a simple String property which I
also populate.
I then forward to my HTML form that has the row fields indexed.
You want bean utils to convert your proprietary value object into
generic List? Umm, don't see how this is possible.
Michael.
On 6/28/05, Siena, Christina (.) <[EMAIL PROTECTED]> wrote:
> As you can see, the forms implement programList differently which is the
> cause of the problem. In order fo
Hi,
I've encountered an indexed property problem (common in Struts) when
navigating from one page to another if checkboxes are checked in the
page that I'm navigating from:
[6/28/05 12:51:01:354 EDT] 44bb6cd5 WebGroup E SRVE0026E: [Servlet
Error]-[BeanUtil
Just passing you a solution I had got from the user list earlier
Nitesh
- Original Message -
From: "John Fitzpatrick" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Friday, June 03, 2005 6:06 PM
Subject: Re: Problem using indexed properties and validator framework
In the
Hello all,
I have a DynaActionForm with two properties of type String[],
one named priorities and the other named owner
I am having problem in displaying their value in my jsp using
logic:iterate
My JSP is as follows
Hi,
Any one can send me some examples to do the validation of indexed property ??
As I find that JavascriptValidationTag just skip it .
I'm using struts 1.1
Thanks a lot =)
Cliff
Hi all,
could any one send me some best practice about Validating indexed property?
Thanks a lot =)
Best wishes,
Cliff
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I have a problem:
Struts config file has:
On JSP I have:
It generates folowing HTML:
But when I submit the form actual values in a bean are
not updated. They are still the same.
What do I do wrong?
Thanks,
Eugene
__
Do you Yaho
setter and getter methods are
required. Your Collection of emails should be a ordered collection like a
List.
-Original Message-
From: Evgeniy Strokin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 3:38 PM
To: Struts Users Mailing List
Subject: RE: indexed property is not
PROTECTED]
Sent: Wednesday, December 15, 2004 11:42 PM
To: 'Struts Users Mailing List'
Subject: RE: indexed property is not updated after submit
Could be done like this:
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
-Original Mes
CTED]
Sent: Wednesday, December 15, 2004 2:40 PM
To: Struts Users Mailing List
Subject: RE: indexed property is not updated after
submit
Thanks,
I think I'm getting close))
But your example gives me this exception:
---
Invalid argument looking up property
model.currentP
ing getEmailAddress() {
> > return emailAddress;
> > }
> >
> > /**
> > * @param string
> > */
> > public void setEmailAddress(String string) {
> >emailAddress = string;
> > }
> >
> >
> >
>
t;
> /**
> * @param string
> */
> public void setEmailAddress(String string) {
>emailAddress = string;
> }
>
>
>
> -Original Message-
> From: Evgeniy Strokin
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 2:40 PM
> To: Struts Users Mailing List
setEmailAddress(String string) {
emailAddress = string;
}
-Original Message-
From: Evgeniy Strokin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 2:40 PM
To: Struts Users Mailing List
Subject: RE: indexed property is not updated after submit
Thanks,
I think I'm getting
> -Original Message-
> From: Evgeniy Strokin
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 10:04 AM
> To: [EMAIL PROTECTED]
> Subject: indexed property is not updated after
> submit
>
>
> Hi,
> I have a problem:
> Struts config file ha
Evgeniy Strokin wrote:
Thanks,
but the server doesn't respond. Could you sent the pdf
or copy and past the page from pdf.
I'm really stack with this problem and appreciate any
help.
--- Sebastián Gorgo <[EMAIL PROTECTED]> wrote:
Evgeniy Strokin wrote:
Hi,
I have a problem:
Struts config file has:
Could be done like this:
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
-Original Message-
From: Evgeniy Strokin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 10:04 AM
To: [EMAIL PROTECTED]
Subject: indexed property i
Thanks,
but the server doesn't respond. Could you sent the pdf
or copy and past the page from pdf.
I'm really stack with this problem and appreciate any
help.
--- Sebastián Gorgo <[EMAIL PROTECTED]> wrote:
> Evgeniy Strokin wrote:
> > Hi,
> > I have a problem:
> > Struts config file has:
> >
> >
Evgeniy Strokin wrote:
Hi,
I have a problem:
Struts config file has:
On JSP I have:
property="model.currentPerson.contactInfo.emails"
name="form" >
It generates folowing HTML:
But when I submit the form actual values in a bean are
not updated. They are still the same.
This is my Bean:
p
Hi,
I have a problem:
Struts config file has:
On JSP I have:
It generates folowing HTML:
But when I submit the form actual values in a bean are
not updated. They are still the same.
This is my Bean:
package com.mycomp.securityadmin;
public class SecurityAdminModel implements
Serializ
Hi,
I have investigated the indexed properties as follows.
structure of my jsp page:
===
">
ActionForm:
=
public class NestedPropertiesForm extends FWKActionForm{
/**
*
*/
public NestedPropertiesForm() {
super();
}
/**
* Permet
Maybe you should expose your problem with some more details ;o)
RamKumar wrote:
Hi,
Indexed property methods are not getting called if i use expression language in
html:multibox tag. Why is this?. I am using tomcat 5.0.
Any clues,
thanks,
Ramkumar
Hi,
Indexed property methods are not getting called if i use expression language in
html:multibox tag. Why is this?. I am using tomcat 5.0.
Any clues,
thanks,
Ramkumar
tEsami(int index, String value) {
esami[index] = value;
}
In the JSP I have in session *another* object called "esami" that contains a
list of checkboxes:
]"
value=""
id=""/>
this code whant to replicate the
-Messaggio originale-
Da: Phan, Hienthuc T (Rosetta) [mailto:[EMAIL PROTECTED]
Inviato: lunedì 17 maggio 2004 18.59
A: [EMAIL PROTECTED]
Oggetto: Indexed property throws exception - HELP!
Priorità: Alta
Hi,
I encountered an index out of bound exception when using the indexed
property. The pro
Hi,
I encountered an index out of bound exception when using the indexed
property. The problem I'm facing is that I can't debug this. The exception
is not thrown either in the the form or the action. Do you know what cause
this?
<101017>
<[ServletContext(id=4601745,nam
Hi -
I have an arraylist within an arraylist and I am trying to iterate throught it. When
I use indexed on the item; it doesn't seem to be indexing the name. Here is a code
snippet:
When I look at the generated source code I see the following being generated:
Start
ArrayList of LazyDynaBeans.
Niall
- Original Message -
From: "Nathan Ewing" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 21, 2004 10:51 PM
Subject: RE: Creating an indexed property of DynaActionForms
ng List
Cc:
Subject:Re: Creating an indexed property of DynaActionForms
OK, then I repeat my earlier answer - use (or at least look at) the "Lazy"
versions I wrote.
http://www.niallp.pwp.blueyonder.co.uk/
is all it needs.
If you look at the get(String name, int index) method
s.
Niall
- Original Message -
From: "Nathan Ewing" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 21, 2004 10:51 PM
Subject: RE: Creating an indexed property of DynaActionForms
Let me rephrase :)
"its MUCH
the same form).
How could I make this work? Writing regular non-dynbeans would multiply
maintenance incredibly.
Nathan
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 5:08 PM
To: Struts Users Mailing List
Subject: Re: Creating
age -
From: "Nathan Ewing" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 21, 2004 9:44 PM
Subject: RE: Creating an indexed property of DynaActionForms
Lemme give an example, Lets say I have a form for Cars. The main
easier to save these records to the database if everything is
represented as DynaForms.
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 4:27 PM
To: Struts Users Mailing List
Subject: Re: Creating an indexed property of DynaActionForms
I
p
Should populate an ArrayList of LazyDynaBeans containing property1 and
property2
Niall
- Original Message -
From: "Nathan Ewing" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 21, 2004 8:53 PM
Su
, April 21, 2004 7:44 AM
To: Struts Users Mailing List
Subject: RE: Creating an indexed property of DynaActionForms
Use the lazyValidatorActionForm, which allows you to keep things request
scope when using arrays.
http://www.niallp.pwp.blueyonder.co.uk
List
Subject: RE: Creating an indexed property of DynaActionForms
I don't think using the lazy beans is a bad approach and if you look at
the code, there is very little of it.
I got half way to implementing the approach, but the piece I was
building was shut down so I don't know how effec
than Ewing [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 1:48 PM
To: Struts Users Mailing List
Subject: RE: Creating an indexed property of DynaActionForms
I briefly toyed with the idea of trying to fix the flaw myself, but I
looked at the struts source code and the change would not be a t
Subject: RE: Creating an indexed property of DynaActionForms
I couldn't think of one.
sandeep
-Original Message-
From: Nathan Ewing [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 11:00 AM
To: Struts Users Mailing List
Subject: RE: Creating an indexed property of DynaActionForm
I couldn't think of one.
sandeep
-Original Message-
From: Nathan Ewing [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 11:00 AM
To: Struts Users Mailing List
Subject: RE: Creating an indexed property of DynaActionForms
I take it then that there is no way to use n
ndeep
-Original Message-
From: Nathan Ewing [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 20, 2004 5:49 PM
To: [EMAIL PROTECTED]
Subject: Creating an indexed property of DynaActionForms
I'm trying to figure out how to define and use a DynaActionForm which
has an indexed property that
From: Nathan Ewing [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 20, 2004 5:49 PM
To: [EMAIL PROTECTED]
Subject: Creating an indexed property of DynaActionForms
I'm trying to figure out how to define and use a DynaActionForm which
has an indexed property that is another DynaActionForm. I'
I'm trying to figure out how to define and use a DynaActionForm which
has an indexed property that is another DynaActionForm. I'm using
struts 1.1. Here is something like what I mean:
First my sample struts-
70 matches
Mail list logo