> I'm using struts and got issue with their xml validation framework. I
have
> form with some indexed properties where element is just plain String.
And I
> need make validation for it. I tried to use indexedListProperty for this
> case, but it doesn't work and as I read in
I'm using struts and got issue with their xml validation framework. I have
form with some indexed properties where element is just plain String. And I
need make validation for it. I tried to use indexedListProperty for this
case, but it doesn't work and as I read in 'Struts in A
blic void setFieldMap(MyMap map) {
> > }
> >
> > private Long index = 1L;
> >
> > public Long getIndex() {
> > System.out.println(">> getIndex()");
> > return index;
> > }
> >
> > public void setIndex(Long index) {
> >
t; setIndex(" + index + ")");
> this.index = index;
> }
>
> On my jsp
>
>
>
>
>
>
> Result is
>
> During get
>
> >> getIndex()
> >> getIndex()
> >> getFieldMap()
> my...@1.get(1)
> my...@2.get(1)
&g
getValue()
I think since it implements a map, ".value" get interpreted as get("value");
During set
>> getFieldMap()
my...@1.get(1)
my...@2.get(1)
This I can't work with since setValue() isn't called anywhere.
On Tue, May 20, 2014 at 3:02 PM, Christoph Nenni
> Question:
> According to OGNL (
> http://commons.apache.org/proper/commons-ognl/language-guide.html) under
> heading JavaBeans Indexed Properties and OGNL Object Indexed Properties,
> getFieldWithIndex(int index) should be called, but it isn't, same goes
with
> getFieldW
OGNL Indexed and Object Indexed Properties
Hi,
I'm wondering why this code is not working. I'm using struts 2.3.16.1 and
ognl 3.0.6.
In my action class I have this
public String[] getFieldArray() {
System.out.println(">> getFieldArray()");
return null;
}
public
invalid property when i have a ArrayList in the
>> in the
>> >
>> Any idea?
>> Thanks and your help is appreciated.
>> Silpa
>>
>> hugh11 wrote:
>>>
>>> I've got a problem relating to the validation of indexed properties in
>>> St
gt;
> Any idea?
> Thanks and your help is appreciated.
> Silpa
>
> hugh11 wrote:
>>
>> I've got a problem relating to the validation of indexed properties in
>> Struts 1.1
>> I get the following error message when I try to a
Hey,
I have a similar problem with DynaValidatorActionForm.
It says that invalid property when i have a ArrayList in the in the
> I've got a problem relating to the validation of indexed properties in
> Struts 1.1
> I get the following error message when I try to access a
I've got a problem relating to the validation of indexed properties in Struts
1.1
I get the following error message when I try to access an ArrayList of
students in my DynaValidatorForm
root cause
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
java.util.ArrayList.RangeCheck(Un
t; class BookInfoForm extends ActionForm{
>> >>ArrayList bookLists;
>> >>
>> >>public BookList getBookl(int index){
>> >>return bookLists.get(index);
>> >>}
>> >>public void
Lists.set(index, element);
> >>}
> >>public Book getBook(int index){
> >>
> >>return bookLists.get(?).getBooks().get(index);
> >>}
> >>public void setBook(int index,Book element){
> >>
> >&g
getBook(int index){
>>
>>return bookLists.get(?).getBooks().get(index);
>>}
>>public void setBook(int index,Book element){
>>
>>bookLists.get(?).getBooks().set(index,element);
>>}
>
oks().get(index);
>}
>public void setBook(int index,Book element){
>
>bookLists.get(?).getBooks().set(index,element);
>}
>
>
> }
>
> indexId="i">
>
>
> />
>
>
>
>
>
>
> Thanks in advance,
ltiple-Logic-iterate-tags-and-setting-indexed-properties-tp23031690p23031690.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional
s1 to struts2 and
I am not sure if struts2 supports indexed/mapped value properties.
After reading OGNL docs I see that indexed properties are supported both
with ints and objects. I guess they refer just to "red" de properties, not
to set them in the action... so I am trying:
Where i
Hi there,
I am trying to migrate a form population module from struts1 to struts2 and
I am not sure if struts2 supports indexed/mapped value properties.
After reading OGNL docs I see that indexed properties are supported both
with ints and objects. I guess they refer just to "red" de
Hi,
How can I get a radio button checked by default using indexed properties?
I read in forums to do it in the reset method of the ActionForm, but dont know
exactly how to do it...
In my jsp I render X radio buttons, where X is the number of questions saved
in the request Bean "choice
Anyone can help me, please?
Thanks.
cacodemon79 wrote:
>
> Hi to all.
> I'm using Struts 1.3, Tomcat 6.0 and Eclipse.
>
> I have a problem with Indexed Properties.
> I have a jsp that should save hidden values and pass it to the linked
> Action.
>
> I show
Hi to all.
I'm using Struts 1.3, Tomcat 6.0 and Eclipse.
I have a problem with Indexed Properties.
I have a jsp that should save hidden values and pass it to the linked
Action.
I show you my code.
JSP
0300 - 222(Ext) ll * ( + 91 ) 9731209330ll
>
> Tavant Technologies Inc.,
>
> www.tavant.com
>
> PEOPLE :: PASSION :: EXCELLENCE
>
>
> -Original Message-
> From: YAQ [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 14, 2008 4:05 PM
> To: user@struts.apache.org
:: EXCELLENCE
-Original Message-
From: YAQ [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2008 4:05 PM
To: user@struts.apache.org
Subject: Struts 2 Indexed Properties
Hi,
I'm having problem with Struts2 and indexed properties.
The list in my action is not being updated.
My JSP is some
Hi,
I'm having problem with Struts2 and indexed properties.
The list in my action is not being updated.
My JSP is something like:
].key"
name="questionnaireInputVO.coverTypesList[].key"
value=""
Hi,
I'm having problem with Struts2 and indexed properties.
The list in my action is not being updated.
My JSP is something like:
].key"
name="questionnaireInputVO.coverTypesList[].key"
value=""
sanctioned way for getting at the
KeyParameter information based on existing APIs?
--
View this message in context:
http://www.nabble.com/-S2--Indexed-properties%2C-Type-Conversion-and-Validation-tp14654165p14676430.html
Sent
ion file defined for the action
with the visitor validator defined within it:
true
Has anyone successfully got declarative validation working with indexed
properties? Can anyone suggest what I might be doing wrong here?
--
View this message in cont
In that case, i think you need mapped properties instead of indexed
properties.
read this:
http://struts.apache.org/1.2.9/faqs/indexedprops.html
Mapped properties and javascript need to cooperate together in order to
solve the problem.
Wish this would help.
On 10/20/07, Pavel Sapozhnikov
Hi I have a question so I need to have a form that will be able to create
dynamic text boxes. I heard this can be done using indexed properties in
struts 1. Basically what I need is like a button that will say Add A Person
then when u click on that button two text boxes will come up in one row
You are not the only one that thinks so.
There are some OGNL expression issues involved that are confusing too:
in the s:param:
won't work (the same expression as the textfield)
But s:param evaluates the expression in a different way when placing
it as a child:
referidos[%{#stat
Okay, so I figured out the right syntax for the question I posted
yesterday (subject: List properties in Struts 2).
Let's say I have a List of key-value pairs and I want to render the
entire list to the user as a form. In Struts 1.x, here's the JSP
snippet:
But in S2, I have to
-brainer" list of dependencies. Without it,
your code will be messier and harder to maintain.
> -Original Message-
> From: Francesco Pretto [mailto:[EMAIL PROTECTED]
> Sent: Sunday, March 25, 2007 7:53 AM
> To: user@struts.apache.org
> Subject: Iterate and write indexed proper
Hey, nested tags should be actually cited, at least in the 1.3.5 faqs
at http://struts.apache.org/1.3.5/struts-taglib/indexedprops.html !
However, found a very simple solution that works perfectly!
Thanks with nabble.com and it's powerful search function :-)
Bye,
Francesco
Hi! What i'm trying to obtain is somewhat described in the faqs here,
http://struts.apache.org/1.2.9/faqs/indexedprops.html , using the
struts EL extension.
This is the problem: i have an ArrayList of objects, called "list",
all of type "Type". I want to individually write on the field "field1"
o
behind.
Feel free to write for any doubt..
Raghuveer
-Original Message-
From: nagesh.kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, January 29, 2007 2:57 PM
To: [EMAIL PROTECTED]
Subject: RE: Indexed Properties with nested Tags
Hi raghu,
Iam also using the same issue ..
Ho u r
tribute as "indexedBean" - but if there was
struts could instantiate it and populate the property (sort of how
LazyValidatorForm works).
Paul
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Sat 9/12/2006 3:52 AM
To: Struts Users Mailing L
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Paul,
Strachan, Paul wrote:
>> Have you tried calling yourFormBean.get("yourArrayList") and
>> checking to see what it inside of it?
>
> not sure what you mean - the action method is never called as the
> RequestProcessor cant populate the DynaForm f
2006 3:24 AM
To: Struts Users Mailing List
Subject: Re: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS
on REQUEST scope!" TRUE or NOT TRUE?
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Paul,
Strachan, Paul wrote:
> Chris, In my DynForm I'm actually using a jav
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Paul,
Strachan, Paul wrote:
> Chris, In my DynForm I'm actually using a java.util.ArrayList
> (contains my bean objects).
So, you have type="java.util.ArrayList" in your form bean definition?
Are you sure that Struts knows how to handle that? It migh
there a recommended solution?
From: Strachan, Paul [mailto:[EMAIL PROTECTED]
Sent: Sat 9/12/2006 2:54 AM
To: Struts Users Mailing List
Subject: RE: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS
on REQUEST scope!" TRUE or NOT TRUE?
Ch
variable number of http
request parameters?
Thanks,
Paul
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Sat 9/12/2006 1:27 AM
To: Struts Users Mailing List
Subject: Re: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS
on REQ
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Paul,
Strachan, Paul wrote:
> A request scoped "out of the box" DynaValidatorForm is also unable to
> handle indexed properties e.g. throws IndexOutOfBoundsException in
> DynaActionForm.get(string, int)
I've never used get
Hi,
I've only recently started putting my forms on request scope, and encountered
this issue with DynaValidatorForm.
A request scoped "out of the box" DynaValidatorForm is also unable to handle
indexed properties e.g. throws IndexOutOfBoundsException in
DynaActionForm.get(s
I did'nt see your code in your posting but if you're looking for an example for
using Indexed Properties please reference
http://struts.apache.org/1.x/struts-taglib/indexedprops.html
M-
---
This e-mail message
List'
Onderwerp: Struts1: CHALLENGE "Indexed Properties can not be used with
FORMS on REQUEST scope!" TRUE or NOT TRUE?
Hi folks,
Very low reactions on my posting about indexed properties, form, beanutils and
request scope.
I therefore impose the following CHALLENGE STATEMENT: "Index
TECTED]
Verzonden: donderdag 7 december 2006 14:16
Aan: Struts Users Mailing List
Onderwerp: Re: Struts1: Indexed Properties, BeanUtils populate, Form on
REQUEST scope
On 12/7/06, Urso Wieske <[EMAIL PROTECTED]> wrote:
> Hi Niall,
>
> Thanks for the reply! Apparantly this problem
Guys, Girls,
Help.
-Oorspronkelijk bericht-
Van: Urso Wieske
Verzonden: donderdag 7 december 2006 14:29
Aan: Struts Users Mailing List
Onderwerp: RE: Struts1: Indexed Properties, BeanUtils populate, Form on
REQUEST scope
I completely agree with you about how HTTP handles
-Oorspronkelijk bericht-
Van: Niall Pemberton [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 7 december 2006 14:16
Aan: Struts Users Mailing List
Onderwerp: Re: Struts1: Indexed Properties, BeanUtils populate, Form on
REQUEST scope
On 12/7/06, Urso Wieske <[EMAIL PROTECTED]> wrote:
> Hi
ttp://wiki.apache.org/struts/StrutsCatalogLazyList
Niall
Any hints?
Kind regards,
Urso Wieske
-Oorspronkelijk bericht-
Van: Niall Pemberton [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 7 december 2006 9:40
Aan: Struts Users Mailing List
Onderwerp: Re: Struts1: Indexed Propertie
Hi folks,
Very low reactions on my posting about indexed properties, form, beanutils and
request scope.
I therefore impose the following CHALLENGE STATEMENT: "Indexed Properties can
not be used with FORMS on REQUEST scope!"
I am curious to know who is able to support or reject this
---Oorspronkelijk bericht-
Van: Niall Pemberton [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 7 december 2006 9:40
Aan: Struts Users Mailing List
Onderwerp: Re: Struts1: Indexed Properties, BeanUtils populate, Form on
REQUEST scope
So what BeanUtils exception are you getting?
Your jsp should be
ECTED]> wrote:
Hi folks,
I have problem with the scenario "Indexed Properties, BeanUtils and Form on REQUEST
scope".
When I select a a value from (1 or 2) from the dropdownlist and submit the
form, I get an exception from BeanUtils.populate method about some getter which
can be
Aan: user@struts.apache.org
Onderwerp: Struts1: Indexed Properties, BeanUtils populate, Form on
REQUEST scope
Hi folks,
I have problem with the scenario "Indexed Properties, BeanUtils and Form on
REQUEST scope".
When I select a a value from (1 or 2) from the dropdownlist and submit
Hi folks,
I have problem with the scenario "Indexed Properties, BeanUtils and Form on
REQUEST scope".
When I select a a value from (1 or 2) from the dropdownlist and submit the
form, I get an exception from BeanUtils.populate method about some getter which
can be found!??
IF change
Just think If the struts dosen't set these indexed properties from the lower
bound to the upper bound in a ascending order, an outofbound exception
will occur.
--
Wong Tseng
王曾
I think it's the getResultsPage method that causes your problem. If the
results is none, and the parameter index equels any value that is large than
0, an OutOfBound Exception will occur.
2006/11/18, Adam K <[EMAIL PROTECTED]>:
public Product getResultsPage(int index)
{
if(this
Just thought that I would say that the following will be incredibly helpful
to anyone working on indexed properties in the future:
(It has a complete working example)
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=58&t=009880
thanks to everyone for all of the hel
ceeded.
>
> Nested Tags is the real power of Struts...
>
>
> Regards
> Raghu
>
>
>
>
>
> -Original Message-
> From: Adam K [mailto:[EMAIL PROTECTED]
> Sent: Saturday, November 18, 2006 2:55 AM
> To: Struts Users Mailing List
> Subject: Re: Indexed P
rsday, November 23, 2006 9:47 AM
To: 'Adam K'
Cc: 'Struts Users Mailing List'
Subject: RE: Indexed Properties with nested Tags
I am 100% sure.
I have extensively used these futures and successful.
Using Nested Tags will decrease the Lines of Code,Easy Maintenance..
P
is submitted you will have latest data in arlResults collection in
actionform.
Regards,
Raghu
-Original Message-
From: Adam K [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 22, 2006 10:16 PM
To: [EMAIL PROTECTED]
Cc: Struts Users Mailing List
Subject: Re: Indexed Prope
Alright, I guess I should have thought that. I was worried that my
fundamental understanding for this was wrong. For debugging I am putting my
information into a String which is not being iterated (it for some reason
always works, but those that are iterated over don't for some reason.
I have no
From: Adam K [mailto:[EMAIL PROTECTED]
> What is the purpose of the System.out.println that you have at the end
> of your action ?
Debugging?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
quot; and "lazyList". I've done it with both ActionForm and
> > > DynaActionForm.
> > >
> > > Hubert
> > >
> > > [1] http://struts.apache.org/mail.html
> > >
> > > On 11/17/06, Adam K <[EMAIL PROTECTED]> wr
ystem.out.println("prodSelectionForm="+prodSelectionForm);
Regards
Raghu
-Original Message-
*From:* Adam K [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, November 22, 2006 3:06 AM
*To:* [EMAIL PROTECTED]
*Cc:* Struts Users Mailing List
*Subject:* Re: Indexed Properties
If you might
Regards
Raghu
-Original Message-
From: Adam K [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 22, 2006 3:06 AM
To: [EMAIL PROTECTED]
Cc: Struts Users Mailing List
Subject: Re: Indexed Properties
If you might be able to provide a sample I would be very greatful.
As it stan
ted Tags is the real power of Struts...
Regards
Raghu
-Original Message-
From: Adam K [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 18, 2006 2:55 AM
To: Struts Users Mailing List
Subject: Re: Indexed Properties
Thanks for the suggestion I'll keep trying things and see what I
[mailto:[EMAIL PROTECTED]
Sent: Saturday, November 18, 2006 2:55 AM
To: Struts Users Mailing List
Subject: Re: Indexed Properties
Thanks for the suggestion I'll keep trying things and see what I can get
from it.
On 11/17/06, Hubert Rabago <[EMAIL PROTECTED]> wrote:
>
> Lots of peopl
a valid collection. (Throw in the setResultsPage() that
> > accepts a collection as well.)
> >
> > Hubert
> >
> > On 11/17/06, Adam K <[EMAIL PROTECTED]> wrote:
> > > This has been driving me nuts for the past little bit.
> > > I have a page t
; Try adding a getResultsPage() that doesn't take params and always
> returns a valid collection. (Throw in the setResultsPage() that
> accepts a collection as well.)
>
> Hubert
>
> On 11/17/06, Adam K <[EMAIL PROTECTED]> wrote:
> > This has been driving me nuts f
> I have a page that is populated using indexed properties. The
prepopulation
> works fine, and I get the results as I would expect them, but trying to
> submit the form I get an index out of bounds exception. I know that it
is
> being caused because the page doesn't have
have a page that is populated using indexed properties. The prepopulation
works fine, and I get the results as I would expect them, but trying to
submit the form I get an index out of bounds exception. I know that it is
being caused because the page doesn't have the arrayList to use in the
in
Hi to all i have two questions...
First question... is possible to remove spring dependecies in struts2 or
spring stuff (jars, applicationContext.xml and ContextLoadListener) are
neccesary to run struts2
Second question or advise... i want to give a try to ajax, i want some parts
of me site to
This has been driving me nuts for the past little bit.
I have a page that is populated using indexed properties. The prepopulation
works fine, and I get the results as I would expect them, but trying to
submit the form I get an index out of bounds exception. I know that it is
being caused
Hi all,
I need to display and submit a form with 3 levels of indexed properties. The
3 indexed properties are not constant in size. I have a form with a
MyObject1[] array with getters and setters for indexed properties. MyObject1
object has a List of MyObject2 objects and MyObject2 has a List of
On 11/3/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote:
On 11/3/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
>
> On 11/2/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote:
> > Hi,
> > This is the first time I am trying to use indexed properties with
> > DynaA
On 11/3/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
On 11/2/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote:
> Hi,
> This is the first time I am trying to use indexed properties with
> DynaActionForm. Now the number of fields that I will have is not
certain. So
> d
On 11/2/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote:
Hi,
This is the first time I am trying to use indexed properties with
DynaActionForm. Now the number of fields that I will have is not certain. So
does that mean I cant use DynaActionForm. And i don't have normal strings in
my lis
irst time I am trying to use indexed properties with
DynaActionForm. Now the number of fields that I will have is not certain. So
does that mean I cant use DynaActionForm. And i don't have normal strings in
my list. I have a custom object.
so what i have currently is something like this
Hi,
This is the first time I am trying to use indexed properties with
DynaActionForm. Now the number of fields that I will have is not certain. So
does that mean I cant use DynaActionForm. And i don't have normal strings in
my list. I have a custom object.
so what i have currently is some
EMAIL PROTECTED]> wrote:
Hi,
I have some objects in an Array List which I want to fetch using indexed
properties. So basically in my array list I have objects of type Product,
which has properties like name,number etc. with appropriate getter and
setter methods.
What I am unable to figure
Hi,
I have some objects in an Array List which I want to fetch using indexed
properties. So basically in my array list I have objects of type Product,
which has properties like name,number etc. with appropriate getter and
setter methods.
What I am unable to figure out is the following.
The
Hi Yadav,
have a look at below link u'll find something of ur intrest ...
http://www.developer.com/java/ejb/article.php/2233591
http://www.developer.com/java/ejb/article.php/10931_3321521_1
Thanks & Regards,
Aftab Vhora
Barun Kumar Yadav wrote:
Hi
I'm using Indexed Properti
Hi
I'm using Indexed Properties with Struts and am attempting to over-ride the
getter method of a List while trying to retrieve data.
I have an example where I use the tag to retrieve contents of a
List
And this code effectively calls the Getter function shown below
public O
Hi All,
I'm already familiar with the basic process of using DynaForm with
String properties (to capture the HTTP request params) and then copying
the DynaForm values to a business object.
Now I want to use indexed properties (eg multi-row edit screen). So my
DynaForm looks some
HI friends,
i have form which need indexed properties technique...(by net surfing i
came to know)
i need a full length tutorial on this topic ,or some code snipats
help me please
ur's
Mallik
--
View this message in context:
http://www.nabble.com/Indexed-Properties-in-validation-Fram
nother row I do a submit (no validate) and simply add
an empty object into my List and forward back to the page.
On 9/22/06, Puneet Lakhina [mailto:[EMAIL PROTECTED] wrote:
>
> Could you please give an example of how you manage lists with indexed
> properties, that would reall
On 9/21/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
As you found out there is no way of knowing the order the
browser/client will submit request parameters, so if you want to use
indexed properties in this way you need to "grow" the list to
accomodate the size of the indexe
On 9/21/06, Strachan, Paul <[EMAIL PROTECTED]> wrote:
A List is an ordered collection so it doesnt make sense that the order
changes. Also, depending on which Map implementation you use ordering may
not be guaranteed.
I would basically have the index in case of indexed properties as
A List is an ordered collection so it doesnt make sense that the order changes.
Also, depending on which Map implementation you use ordering may not be
guaranteed. I frequently use indexed properties with List and have not
experienced this problem. You may need to check the generated html
As you found out there is no way of knowing the order the
browser/client will submit request parameters, so if you want to use
indexed properties in this way you need to "grow" the list to
accomodate the size of the indexed property being set.
So you could do something like the
Hi,
I have a no. of fields in a form arranged in a table of rows. I am using
indexed properties for these fields. The number of these fields isn't known
to me at the time of page loading for which I have used some DHTML to
properly add the fields. And all the values are getting submitted.
N
On 8/25/06, krishan rathi <[EMAIL PROTECTED]> wrote:
Hi all
I am getting following exception java.lang.IllegalArgumentException:
No bean specified while using indexed properties in struts.
MyForm Bean is
public class ReportItemForm extends ActionForm {
FormItem [] formIte
Hi all
I am getting following exception java.lang.IllegalArgumentException:
No bean specified while using indexed properties in struts.
MyForm Bean is
public class ReportItemForm extends ActionForm {
FormItem [] formItem=null;
public void setItem(int index, FormItem formItem
Hi all
i am getting following exception java.lang.IllegalArgumentException: No bean
specified while using indexed properties in struts.
MyForm Bean is
public class ReportItemForm extends ActionForm {
FormItem [] formItem=null;
public void setItem(int index
Hello
I have a struts dynaform set up that takes an array of expense beans as a
parameter
When I submit 1 expense bean all works well but when I submit more than 1
expense bean the system returns a BeanUtils.populate error
I am initializing my bean in the action.
Any suggestions out there?
) {
selectedBooks.put(key,value);
}
but which is throwing an illegelargumenttype
exception.
Can anybody suggest how should i use indexed properties to tackle a group of
multi select boxes.
please help.
thanks in advance.
krishan
Hi i am trying to use a multi select box in logic iterate
in this way
in the form bean i have following code.
private Map selectedBooks;
public Object getBookMapped(String index) {
return selectedBooks.get(key);
}
public void setBookMapped(Stri
Thanks, this is very much appreciated. Is this something that is going to make
it into a Struts Base release?
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 22, 2006 11:15 AM
To: Struts Users Mailing List
Subject: Re: newbie question on indexed
You can do this:
http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html
Niall
On 6/15/06, Givler, Eric <[EMAIL PROTECTED]> wrote:
I was following this article (MS Powerpoint presentation by James Turner) here:
http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt
When,
lto:[EMAIL PROTECTED]
Sent: Friday, June 16, 2006 8:32 AM
To: Struts Users Mailing List
Subject: RE: newbie question on indexed properties and validation
I can provide a zip of the workspace I was doing for this if that would help.
I just can't seem to get the multiple errors. Can th
1 - 100 of 275 matches
Mail list logo