Mike,
What error are you getting
-Sam.
Mu Mike [EMAIL PROTECTED] wrote:
Hi, all, last week, I spent a whole day trying to figure the below problem
out, and you warmhearted guys just came and helped me,but to greatly
disappiont you, I m still at a loss to know where the problem is ,so I
Hi, all, last week, I spent a whole day trying to figure the below problem
out, and you warmhearted guys just came and helped me,but to greatly
disappiont you, I m still at a loss to know where the problem is ,so I
decided to explain detailedly and completely of what I did and hope you
nice
Hien,
Thank you for replying to my message. I will try this way. Since I'm new
on Struts, I thought there would be some other tag other than logic:iterate
tag to do the trick. Btw, I'm running weblogic 7.0 sp4. Do you know if it
supports JSTL?
If you make your Item class returns an Error
I'm very new to struts so please be kindly.
I have two Arraylist call itemList and errorCodeList. The itemList contains list of
Item object. The item object has a property calls errorCode which returns an error
code in int (1-50). I want to display the error description associates to that
If you make your Item class returns an Error object, you can avoid the
errorCodeList, something like this:
public class Item {
private int id=0;
private MyError error;
/**
* @return Returns the error.
*/
public MyError getError() {
Message-
From: Frederic Dernbach [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 8:19 PM
To: Struts Users Mailing List
Subject: Re: [help] nest logic:iterate problem!!
Importance: High
You can look at the struts-layout library that solved this problem in its
layout:collection tag
Dear:
How to processes nested iterate tag?
Im meeting a nest iterate problem.
Ex:
logic:iterate id=list1 name=list type=java.util.ArrayList
tr
logic:iterate id=itemlist name=list1 property=item
type=java.util.ArrayList
td width=14%
You can look at the struts-layout library that solved this problem in
its layout:collection tag. Source code of the library is available at
http://struts.application-servers.com/ .
Fred
Le mar 07/10/2003 13:52, a crit :
Dear:
How to processes nested iterate tag?
Im meeting a nest iterate
Hi All,
I have three String Arrays (wiz firstName and lastName) in my form bean.
Each array contains 3 elements. I want to display them in my jsp in form
of
3 rows and each row shall contain both fields.Something like this:-
row 1 firstName lastName
row 2 firstName
logic:iterate id=lnId indexId=idx
name=view1SubmitForm property=rowids
%
String ln = lastName(ln- + idx + );
String add = address(ad- + idx + );
%
%=ln: + ln%
%=add: + add%
trtdLast Name:/tdtd
logic:present name=view1SubmitForm
property=%=ln%
html:text property=%=ln%/
I include the following tags in my jsp (tacaReport.jsp) :
logic:iterate id=element name=output
type=com.brasfieldgorrie.timetracker.reporting.ReportRow
tr
tdbean:write name=element property=sectionHeader//td
tdbean:write name=element property=empLastName//td
tdbean:write
Thanks vic. i really appreciate.
thanks
From: Vic Cekvenich [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Help on logic:iterate
Date: Fri, 24 May 2002 17:08:06 -0700
Oh, oh.:
And if you use html:text
Hi,
i need help to understand following code. i understand that histLstForm is
the name of form bean. but i don't understand how does bean:write know
that there are multiple vales of question property of histLstForm bean?
How does it perform a loop on all the values of question property of
The iterate tag is tied to the form bean (as you can see). When the
iterate tag ends via a /iterate, it calls next() in the form Bean, which
is implemented (in the base form bean that evey bean extends ) and if it
hasNext it goes to the top of the loop.
The trick is to make your form Beans
Oh, oh.:
And if you use html:text and the same iterator interface: The multi row
updates work and multi row struts validation works, just as if it were a
single row!
Vic Cekvenich wrote:
The iterate tag is tied to the form bean (as you can see). When the
iterate tag ends via a /iterate, it
Think that the answer you're looking for, is that your tags aren't quite
set up properly. There's work around of a work around. The child tags
need to work of the bean that is the current object returned from the
iterate tag, which is why the properties wont work. They also need to
get the
, Switzerland
-Original Message-
From: struts-user-digest-help
[mailto:[EMAIL PROTECTED]]
Sent: Montag, 25. Februar 2002 17:32
To: struts-user
Cc: srinookala
Subject: help with logic:iterate
I have the following snippet of code in my jsp:
logic:iterate id=columnName name
I have the following snippet of code in my jsp:
logic:iterate id=columnName name=ParticipantImportWizardForm
property=columnNameList
table border=1 width=80%
tr
td width=50%h3 align=centerColumn Name/h3
/td
td width=50%h3 align=centerType/h3
/td
/tr
Hi Sri,
try
html:text name=columnName /
instead of
property=columnName
struts will then call the toString() method of your columnName objects.
Often your columnName object would have a method like getName()
and you would specify
html:text name=columnName property=name /
I hope that's right!
html:text name=columnName /
doesn't work since property is a required attribute.
- Original Message -
From: keithBacon [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]; Sriram
Nookala [EMAIL PROTECTED]
Sent: Monday, February 25, 2002 12:19 PM
Subject: Re: help
You're basically using the markup of the nested tags. If you have the
nightly build change your iterate tag to...
nested:iterate property=columnNameList
...and your text tag to
nested:text property=columnName /
...and of course don't forget to close the iterate tag with the
Hello all;
I am sorry to bring this up again but I have looked at the docs and the
archives and I think I am following the instruction found in these but I
still can't get the iterate tag to work correctly. So I wanted to post this
question and see if I understand the methodology and
In the nightly build, the nested tags will make easy work of this for
you, simply swapping the tag header name a little to the following...
nested:iterate property=myStudentListProperty
nested:write property=name /
/nested:iterate
(no, you don't have to mess around with the id's and all that.
: Monday, February 25, 2002 5:59 PM
Subject: Re: help with logic:iterate
You're basically using the markup of the nested tags. If you have the
nightly build change your iterate tag to...
nested:iterate property=columnNameList
...and your text tag to
nested:text property=columnName
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 25, 2002 5:59 PM
Subject: Re: help with logic:iterate
You're basically using the markup of the nested tags. If you have the
nightly build change your iterate tag to...
nested:iterate property=columnNameList
is a completely different
story which includes indexed properties and scriptlets.
Regards,
Klaus Bucka-Lassen
aragost, Switzerland
-Original Message-
From: struts-user-digest-help
[mailto:[EMAIL PROTECTED]]
Sent: Montag, 25. Februar 2002 17:32
To: struts-user
Cc: srinookala
Subject: help
Can someone help me with this logic:iterate question? Thanks.
Struts example command:
logic:iterate id=subscription name=user
property=subscriptions
I read it as:
user is the bean, user.subscriptions is a Collection
(Vector or Array) in that bean, and each element in the
hi
you can go here:
http://jakarta.apache.org/struts/api-1.0/org/apache/struts/taglib/logic/pack
age-summary.html
- Original Message -
From: Sher_A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 31, 2002 3:36 PM
Subject: Need help on logic:iterate
Can someone help
This is only a debugging type suggestion, but you could put your interate inside of a
logic:present name=user property=schedule
SCHEDULE WAS FOUND
your iterate
/logic:present tag and make sure that the collection is being
found.
Brian
05
Fax : 01 48 25 11 47
GSM : 06 20 15 32 61
http://www.1genia.com
- Original Message -
From: Sher_A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 31, 2002 3:36 PM
Subject: Need help on logic:iterate
Can someone help me
on logic:iterate
hi
you can go here:
http://jakarta.apache.org/struts/api-1.0/org/apache/struts/taglib/logic/pack
age-summary.html
- Original Message -
From: Sher_A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 31, 2002 3:36 PM
Subject: Need help on logic:iterate
Can
collection=songs property=stringId
labelProperty=name/
/html:select
- Aparna
-Original Message-
From: Shriver, Ryan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 11:03 AM
To: '[EMAIL PROTECTED]'
Subject: Help with logic:iterate
Hello,
I have a Collection that I'd like
Wow, that's nice!
One minor fix I needed was to put the collection onto the request prior to
html:options..
% Collection songs = SongCache.getInstance().fetchAll(); %
html:select property=id
% pageContext.setAttribute(songs, songs); %
html:options collection=songs property=stringId
Hi,
I am trying to get a handle on the logic:iterate tag.
I have an object in application scope under the key 'storeroomList.'
There is a vector of objects under the property 'storeroomList'. Each one of
the objects in this vector has a property 'name.'
What I am trying to do is go through the
om
From: "Alex Colic" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: "Struts" [EMAIL PROTECTED]
Subject: Need help with logic:iterate :)
Date: Thu, 19 Apr 2001 15:50:44 -0400
I
have attempted the below but the only storeroom name to be printed out to
the screen is the last store
: Thu 4/19/2001 12:50 PM
To: Struts
Cc:
Subject: Need help with logic:iterate :)
Hi,
I am trying to get a handle on the logic:iterate tag.
I have an object in application scope under the key
Hi Alex,
see below
Alex Colic schrieb:
Hi,
I am trying to get a handle on the logic:iterate tag.
I have an object in application scope under the key 'storeroomList.'
There is a vector of objects under the property 'storeroomList'. Each one of
the objects in this vector has a property
37 matches
Mail list logo