I tried to do it with your piece of code, but that didn't quite work
I think one solution would be to write a StringWrapper with a
String-Value and the according getter/setter (e.g. getVal, setVal) and
fill the list with this StringWrappers instead of Strings, so name="stringWrapper" value =
The list of strings is actually part of an ActionForm.
On load of display I kinda like to decompose the list to a bunch of
text-fields, that are recomposed to a list of string on submit
I'll try this, maybe the value of the String could be added by value =
${s}, right?
Thank you
Florian Barth wrote:
> Looks very nice, but the textfield accesses the getter and setter of
> the LabelValueBean
> that is returned from the StrinBean. My Bean just returns the the
> String-object that has
> actually no getter and setter for it's value.
Let me get this straight: you're iterating o
I actually found the page you were mentioning before. But that doesn't
resolve my problem:
In "Dynamic Indexes for Indexed Properties" there is an example for
using a text-field
to alter a String value:
Looks very nice, but the textfield accesses the getter and setter of the
LabelValueBean
On 6/13/06, Florian Barth <[EMAIL PROTECTED]> wrote:
Hi folks!
I'm having a little problem with a jsp.
My FormBean has a List of Strings as value.
Now I would like to iterate over the elements of that list, creating a
text-field for every element the list contains.
At the moment I can online writ
Murray,
Many thanks - I had totally missed indexId. This makes it so easy!
Mike
Murray Collingwood wrote:
Hi Mike
Thats easy.
Outer loop needs to specify the "indexId" parameter as in:
type="application.FamilyMember" indexId="memberIndex">
Then you can use whatever inner loop (or loops)
Hi Mike
Thats easy.
Outer loop needs to specify the "indexId" parameter as in:
Then you can use whatever inner loop (or loops) you want.
Inside here you can refer to the 'memberIndex' as in:
HTH
Cheers
mc
On 29 Oct 2005 at 15:29, Mike Manley wrote:
> Thanks for that - but I think I'
Thanks for that - but I think I've not explained my problem properly.
The problem is that the bean containing the data is NOT the one in the
inner loop but the bean iterated through in the outer loop:
I want to be able to access as from within the inner loop.
familymembers[0].surname, family
Hi Mike
Maybe I'm simplifying it somewhat and I'm not sure of your form-bean structure,
however the outer loop should loop through 'familymembers' as it is looping it
should
set a form-bean for the inner loop identifying a 'familymember'. I also like
to add the
type here - helps my inline do
Any guess whats happening wrong here?,
the output is as follows
4thCol 4thCol 4thCol 4thCol
4thCol 4thCol 4thCol 4thCol
But the correct output should be as follows
1stCol 2ndCol 3rdCol 4thCol
1stCol 2ndCol 3rdCol 4thCol
Deepak
-Original Message-
From: Deepak Srivatava [mailto:[EM
pageContext.setAttribute("bar",projects,PageContext.PAGE_SCOPE);
it's an attribute in the page scope, not session, does
it have to be in a session? I am only using it for
the current page...
--- Eric Lemle <[EMAIL PROTECTED]> wrote:
> Is bar in the session?
>
> >>> [EMAIL PROTECTED] 3/2/2005 12
Is bar in the session?
>>> [EMAIL PROTECTED] 3/2/2005 12:45:03 PM >>>
thanks I am running into a related problem with radio
buttons:
when rendered it says:
[ServletException in:/calc/ProjectManagerMain.jsp]
Cannot find bean under name
org.apache.struts.tagli
thanks I am running into a related problem with radio
buttons:
when rendered it says:
[ServletException in:/calc/ProjectManagerMain.jsp]
Cannot find bean under name
org.apache.struts.taglib.html.BEAN'
What's wrong?
thanks
--- Eric Lemle <[EMAIL PROTECTED]>
I think this is what you are looking for
-Eric
>>> [EMAIL PROTECTED] 3/2/2005 12:09:49 PM >>>
hi folks,
I am trying to iterate a through a Vector of object of
class Project where project has getter and setter
getDescription(),setDescription(),etc
In the jsp page I first created bean o
14 matches
Mail list logo