How can I make to print 3 coluns for line with iterate, the modulos is a ArrayList
populate with myBean (atributes:modulo_nome,modulo_path) objects , the problem is
divide it in 3 coluns for line.Here my source code :
logic:iterate id=listModulos name=modulos indexId=index
% int line
Daniel,
A litle bit more info on what the columns are holding...
becuase can you make them rows...then logic:iterate is easy to use...
-Sam.
Daniel [EMAIL PROTECTED] wrote:
How can I make to print 3 coluns for line with iterate, the modulos is a ArrayList
populate with myBean
decided to explain detailedly and completely of what I did and hope you
nice buddies can help me find the problem
goal: I want to submit an array of Fonbean(java class file listed below) to
an action
strategy: I decide to use html:form and logic:iterate to do this
1.what I have in my
%int rest=3;%
logic:iterate id=listModulos name=modulos indexId=index
% int line = index.intValue() % 3; %
%=linha%
logic:equal name=%=line% value=%=rest%
Printed br
/logic:equal
buddies can help me find the problem
goal: I want to submit an array of Fonbean(java class file listed below) to
an action
strategy: I decide to use html:form and logic:iterate to do this
1.what I have in my configruation xml
form-beans
form-bean name=testBeanForm
type
Hi
I made a select in Hibernate, which comes back me a Collection of two
classes, own Hibernate set up like this for each item of Collection an Array
of Objects to harness the relationship of these classes, now, I wanted to
know as I make the logic: iterate of this Structure?
Object[2]
Hi all,
I have a colletion of items that have a method called price.
I was wandering if I could calculate the total of all prices via struts
Tags rather than using java code...
Anyone has any ideas?
Thanx in advance and regards
marco
Depends how you've done things.
If your items are nested in a form (indexed/mapped proerties) you could
have a total that is calculated there. Thus no need to do it in an
action or a jsp.
On 2 Mar 2004, at 17:18, Marco Mistroni wrote:
Hi all,
I have a colletion of items that have a
Technically this seems to be a business method, logic that would be
better handled in your model code. So for example you have a
ShoppingCart class which has a getItems() method to get your collection
of items and a getTotal() method to add their prices.
Not the answer you're looking for I
I see what you're saying. But at the same time, if you wanted to
develop a shopping cart that you could plug onto any model. Then IMO
calculating in a web tier bean say an action form isn't the most evil
thing in the world.
I agree entirely that the total should be calculated in the model,
Because ctr is an Integer object - not a int primitive.
Niall
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 5:13 PM
Subject: (Fwd) row counts in logic:iterate...
Sorry, my mailer messed up the last one, so here again
colorparam0100,0100,0100/paramnewbie question:
I have a jsp which displays several rows with a logic:iterate, also
using the indexId-tag.
colorparam7F00,,7F00/paramFontFamilyparamCourier
New/paramlogic:iteratecolorparam,,/param
colorparam,7F00,
Rinke:
Your ctr seems to be an *Integer* object and you are using it as an
int. So simply say: ctr.intValue() + 1 and you should be ok.
Geeta
[EMAIL PROTECTED] wrote:
Then why do i get this error?
operator + cannot be applied to java.lang.Integer, int [javac]
out.print( ctr + 1 );
Rinke
materiari?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 11:13 AM
To: [EMAIL PROTECTED]
Subject: (Fwd) row counts in logic:iterate...
Sorry, my mailer messed up the last one, so here again...
newbie question:
I have a jsp
2/26/2004, you wrote:
Sorry, my mailer messed up the last one, so here again...
newbie question:
I have a jsp which displays several rows with a logic:iterate, also
using the indexId-tag.
logic:iterate name=dateForm property=raw id=foo
indexId=ctr
I'd like to display row numbers in my table
First: Please do not send HTML emails to the list.
Now to address your question:
JSTL makes this easy.
c:forEach var=item items=${form.items} varStatus=status
tr
tdc:out value=${status.count}//td
tdc:out value=${item.someValue}//td
/tr
/c:forEach
Using Struts tags:
logic:iterate id=item name
question:
I have a jsp which displays several rows with a logic:iterate, also
using the indexId-tag.
logic:iterate name=dateForm property=raw id=foo
indexId=ctr
I'd like to display row numbers in my table. But the ctr-variable is 0-
based, and I would like to present 1 as the first number to my
users
PROTECTED]
Subject: RE: row counts in logic:iterate...
First: Please do not send HTML emails to the list.
Now to address your question:
JSTL makes this easy.
c:forEach var=item items=${form.items} varStatus=status tr
tdc:out value=${status.count}//td tdc:out
value=${item.someValue}//td /tr
Dohhh! You are correct. I mistyped :)
robert
-Original Message-
From: Paul, R. Chip [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 2:11 PM
To: 'Struts Users Mailing List'
Subject: RE: row counts in logic:iterate...
Shouldn't that be %= index.intValue() + 1
Sorry, my mailer messed up the last one, so here again...
newbie question:
I have a jsp which displays several rows with a logic:iterate, also
using the indexId-tag.
logic:iterate name=dateForm property=raw id=foo
indexId=ctr
I'd like to display row numbers in my table. But the ctr
Inside the logic:iterate the beans returned by your getRaw() method should
be exposed with the name you specify in the iterate's 'id' attribute. So
something along the lines of.
logic:iterate name=dateForm property=raw id=foo
indexId=ctr
tr
tdbean:write name=ctr //td
, but it will work I guess: just put everything, all different
fields, in one long array, in stead of working with the
array[0].fieldname option.
rinke
On 25 Feb 2004, at 10:00, Niall Pemberton wrote:
Inside the logic:iterate the beans returned by your getRaw() method
should be exposed
(,,,);
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 1:11 PM
Subject: Re: error no getter method defined while inside logic:iterate
Hi Niall, List
thanks for you answer. I tried out you suggestion (literary
/
where dateform is the name of my action form, and rawRecord is
the array in which the RawRecord beans reside.
However, as soon as I put this inside a logic:iterate loop, all
goes wrong: I get the following error:
No getter for property time of bean
org.apache.struts.taglib.html.BEAN
of information from each row before
I can delete it.
My kludge is to have the value of the checkboxes be the indexId of the
logic:iterate. Each row has two hidden input fields, with the two required
key values. Something like this:
logic:iterate id=item name=listForm property=txnList type
=Transaction
/
913-390-6951
[EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 8:51 AM
To: [EMAIL PROTECTED]
Subject: logic:iterate, checkboxes, and arrays of selected values...
Hi folks,
I have a problem which I have
pieces of information from each row before
I can delete it.
My kludge is to have the value of the checkboxes be the indexId of the
logic:iterate. Each row has two hidden input fields, with the two required
key values. Something like this:
=Transaction indexId=counter
[input] name=selectedTxns
I have logic that looks like this:
% int n = 0;
String strCat = ( (String[]) parms.get(cboCategory) )[n];
out.println(strCat + strCat + strCat);
%
logic:iterate id=cat indexId=i
name=parms property=cboCategory
logic:greaterThan value=0 name=i, /logic:greaterThan
12:48 PM
:- To: 'Struts Users Mailing List'
:- Subject: Logic:iterate Exception
:-
:-
:- I have logic that looks like this:
:-
:- % int n = 0;
:-String strCat = ( (String[]) parms.get(cboCategory) )[n];
:-out.println(strCat + strCat + strCat);
:- %
:- logic:iterate id=cat indexId=i
I am trying to use logic:iterator tag as follows.Try to give dynamic values for
offset and length attributes.
logic:iterate id =emp name=EmpList offset=index length=length
EmpList,index and length values are set properly in session .
But this throws following exception
I have the following code:
logic:iterate id=users name=userInfo
bean:write name=users property=userName/
/logic:iterate
How can i get the first record ?
Something like bean:define name=userInfo[0] property=userName/
but thats not working, any idea ?
Thanks
Can anybody help me with this problem?
I have two arraylists of beans in my session, I am trying to iterate through
them and when an element in one bean equals an element in the second bean
print it out
logic:iterate id=ElementOne name=currentElementOneValues
logic:iterate id=ElementTwo
I have the following code:
logic:iterate id=users name=userInfo
bean:write name=users property=userName/ /logic:iterate
How can i get the first record ?
JSTL makes this easy:
c:out value=${userInfo[0].userName} /
Or, to write out only the first one while iterating the loop
Try This -
logic:iterate id =emp name=EmpList offset=%= indexVar %
length=%= lengthVar %
Regards,
Janarthan S
Chaminda Fernando [EMAIL PROTECTED] wrote:
I am trying to use
EmpList,index and length values are set properly in session .
But this throws following exception
hello,
i have a question about the logic:iterate tag. My tag iterates over an ArrayList
which contains an amount of beans. However, in the last iteration i want to perform
some special action. My current code looks something like this:
logic:iterate id=foo name=bar scope=session indexId=index
Hello Ben,
you can do this in this way:
logic:iterate id=foo name=bar scope=session indexId=index
...
logic:equal value=%=bar.length-1% name=index
...
/logic:equal
/logic:iterate
Regards,
Frank
-Ursprüngliche Nachricht-
Von: Turner Benjamin [mailto:[EMAIL
Sorry, I mean:
foo.length-1 instead bar.length-1
-Ursprüngliche Nachricht-
Von: Otto, Frank [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 6. Februar 2004 10:41
An: 'Struts Users Mailing List'
Betreff: AW: logic:iterate question
Hello Ben,
you can do this in this way:
logic:iterate id
hi otto,
that solution didnt work - it wouldn't recognise bar as a variable in the %= %.
this solution does work for me:
bean:size id=size name=articles scope=session /
...
logic:iterate id=article name=articles scope=session indexId=index
...
logic:equal value=%= String.valueOf
i have a question about the logic:iterate tag. My tag
iterates over an ArrayList which contains an amount of beans.
However, in the last iteration i want to perform some special
action. My current code looks something like this:
logic:iterate id=foo name=bar scope=session indexId=index
: logic:iterate question
i have a question about the logic:iterate tag. My tag
iterates over an ArrayList which contains an amount of beans.
However, in the last iteration i want to perform some special
action. My current code looks something like this:
logic:iterate id=foo name=bar scope
shouldn't that be?
c:if test=${stat.last}
Yes, it sure should. And the first line should be:
c:forEach items=${foo.bar} var=bar varStat=stat
So the whole thing should look like this:
c:forEach items=${foo.bar} var=bar varStat=stat
c:if test=${stat.last}
do what needs to be
Hi,
How can I iterate over a collection which depends of a request
parameter?
Thank You a lot,
Dragos
From: Dragos Madalin Popa [mailto:[EMAIL PROTECTED]
How can I iterate over a collection which depends of a request
parameter?
JSTL and/or Struts-EL can probably help, but I'm not quite sure what
your question is. Can you give an example?
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU
logic:iterate id=model name=models property=modelList
tr
tdbean:write name=model property=name //td
tdbean:write name=model property=description //td
/tr
/logic:iterate
From: Dragos Madalin Popa [mailto:[EMAIL PROTECTED]
How can I iterate over a collection which depends of a request
of the http request..
logic:iterate id=model name=models property=modelList
tr
tdbean:write name=model property=name //td
tdbean:write name=model property=description //td
/tr
/logic:iterate
I don't think you can pass parameters in JSTL, at least not yet. But
you could, in your
a request parameter to the modelList function;something like
this:
public Collection getModelList(String requestString){}, where
requestString is a parameter of the http request..
logic:iterate id=model name=models property=modelList
tr
tdbean:write name=model property=name //td
to the modelList function;something like
this:
public Collection getModelList(String requestString){}, where
requestString is a parameter of the http request..
logic:iterate id=model name=models property=modelList
tr
tdbean:write name=model property=name //td
I don't think you can pass parameters in JSTL, at least not yet. But
you could, in your action, call getModelList passing the String you got
from the request, and then when you forward to the JSP, iterate over
that Collection.
I am not sure what you meant, Wendy, but, in case you meant that you
property=country
labelProperty=description /
/html:select
font color=redhtml:errors property=country //font
/td
/tr
tr
tdCity/td
td
html:select property=city
html:option value=Select a city.../html:option
logic:iterate id=City name=CityList property
/
/html:select
font color=redhtml:errors property=country //font
/td
/tr
tr
tdCity/td
td
html:select property=city
html:option value=Select a city.../html:option
logic:iterate id=City name=CityList property=list
type=City
html:select property=city
html:option value=Select a
city.../html:option
logic:iterate id=City name=CityList
property=list
type=City
---
--
logic:equal name=City
property=country value
Struts does this for you if the value of the SELECT parameter equals the
OPTION...
Derek
-Original Message-
From: Jino Morgan [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 17:48
To: Struts Users Mailing List
Subject: Re: logic:iterate ... logic:equal question?
SELECTED
html:select property=city
html:option value=Select a
city.../html:option
logic:iterate id=City name=CityList
property=list
type=City
---
--
logic:equal name=City
property=country value
Hi All,
Can any one please tell me, how to assign a values to a string
using logic:iterate
Example:logic:iterate id=maxreqiddetail name=maxreqiddetails
/logic:iterate
In this iterator, i am having values in the name
'maxreqiddetails as primary_skill
Hello,
I hope following will resolve your problem:
logic:iterate id=maxreqiddetail name=maxreqiddetails
%
String s=maxreqiddetail.getPrimary_skill();
%
/logic:iterate
I haven't tested it but i think it will work.
Thanks,
-- Raman
- Original Message -
From: Ramachandran [EMAIL
Use this :
logic:iterate id=maxreqiddetail name=maxreqiddetails
bean:define id=s name=maxreqiddetail property=primary_skill/
...
/logic:iterate
They're is a JSTL way to do this too, but I don't use it so cannot tell you how.
Nico.
- Original Message -
From: Ramachandran
Subject: Re: Regarding : logic:iterate
Use this :
logic:iterate id=maxreqiddetail name=maxreqiddetails
bean:define id=s name=maxreqiddetail property=primary_skill/
...
/logic:iterate
They're is a JSTL way to do this too, but I don't use it so cannot tell you
how.
Nico.
- Original
Dear Friends,
(B
(BI am facing problem in the updating of ActionForm properties from the struts
(Bbased jsp page particularly logic:iterate tag.
(B
(B
(B
(BWhile initial display the values of my Taisho object is getting displayed
(Bproperly using logic:iterate but when I change those
contained in the hashmap
logic:iterate id=element name=batchTaskForm property=tasks
tr class=workscreen
td align=right class=workscreen
// Here I got myObject , and its property 'type'
bean:write name=element property=value.type/
/td
td align=left class=workscreen
a value of true I want to display button A,
while if it is false I want to display button B.
For testing purposes I am now displaying some text...
I tried with following loop, but seems that is not working properly
// Loop thru all the objects contained in the hashmap
logic:iterate id
Hello
Is there an example somewhere of how to correctly use html:radio/ inside
logic:iterate/ in Struts 1.1?
If not, does anyone know how to use it? What are the following attributes used for:
idName
value
property
The tag library docs are very short and hard to understand.
This is my code
I have multiple text boxes that I display on my page. Basically, I must show
n rows (2 text boxes per row). I have no problem displaying them, but I am
unclear on how to get the data back in a concise manner. To display, I use
logic:iterate (see below):
logic:iterate name=custAcctForm id
:
http://www.keyboardmonkey.com/next/index.jsp
hth
Andrew
-Original Message-
From: Anna Yates [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 20 January 2004 12:21
To: [EMAIL PROTECTED]
Subject: Logic:iterate and html:text problem
I have multiple text boxes that I display on my page. Basically
Well,
a) I have not used logic:iterate for these purpose, hence won't be able
to help you out much there. I use the JSTL tags and try to keep away
from the struts tag as much as possible.
b) I would use ArrayList instead of Vectors.
What I would do if I were you would be something like
logic:iterate id=link name=userView property=menuList
html:link page=%= link.getAction() %
bean:write name=link property=label /
/html:link
/logic:iterate
or
c:forEach var=link value=${userView.menuList}
a href=c:url value=${link.action
*/
String getAction();
/**
* Returns the label for the given menu item.
*
* @return
*/
String getLabel();
}
Now, this is what I'd like to do in my jsp (it obviously doesn't work..).
logic:iterate id=link name=userView.menuList
I'm using the logic:iterate tag in my jsp with the following code:
theForm is a dynamic actionform, value(thelist) is a vector containing
the values to be printed. I've checked the Action class, and all values
of the form are properly filled and not null.
logic:iterate id=item name=theForm
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
}/BR
Error Desc: c:out value=${item.error.errorString}/BR
/c:forEach
Using logic:iterate tag:
logic:iterate id=item name=itemList
Item Id= bean:write name=item property=id/BR
bean:define id=error name=item property=error/
Error Code: bean:write name=error property
Hi @ll;
In my Form I define an Array, which contains some message resource keys.
I'm able to print out the values,
but what I want to archive is that it prints out the value from the
application resource properties and also I
wanted to use an logic:iterate to print them out, so it should
Hi,
In my Form I define an Array, which contains some message resource keys.
I'm able to print out the values,
but what I want to archive is that it prints out the value from the
application resource properties and also I
wanted to use an logic:iterate to print them out, so it should
applications;
}
...
[/code]
the following is the code i wrote on the jsp to access this collection and
iterate thru the value objects
logic:iterate id=appList name=incompleteFolderForm
property=applications
tr
tdbean:write name=appList property=firstName//td
tdbean:write name=appList
Hi folks,
I'm trying to add a parameter to a hyperlink, but I don't have direct access to the
value I want to use in the parameter. I don't have direct access because the value is
held within an ArrayList object, and only referenced with a logic:iterate call in a
JSP page.
I have thoroughly
How 'bout adding it as a request parameter instead of appending it?
TABLE
logic:iterate id=concur name=concur !-- concur contains the ArrayList --
TR
TDhtml:link forward=concurrence
paramId=projectName
paramName=concur
paramProperty
=java.util.HashMap/
TABLE
logic:iterate id=concur name=concurs !-- concur contains the
ArrayList --
!-- this value get overwritten with each iteration --
c:set target=${mapOfKeyValues} property=someKey
value=${concur.someProperty}/
TR
TD
html:link forward=concurrence name
I have
logic:iterate id=testers name=testerInfo
.
/logic:iterate
I only have one item in the testerInfo collection.
Why can't i do
bean:define id=testers name=testerInfo/
Or how can i put it to the first item?
Thanks !
, December 19, 2003 6:51 AM
Subject: logic:iterate question
I have
logic:iterate id=testers name=testerInfo
.
/logic:iterate
I only have one item in the testerInfo collection.
Why can't i do
bean:define id=testers name=testerInfo/
Or how can i put it to the first item?
Thanks
How can i have a dynamic value ?
eg:
logic:equal name=element property=weightType value=
should be something like
logic:equal name=element property=weightType value=bean:write name=operator
property=operatorWeightType/
but that is not working.
Any Idea ?
Thanks
Subject: Question dynamic value for a logic:iterate
How can i have a dynamic value ?
eg:
logic:equal name=element property=weightType value=
should be something like
logic:equal name=element property=weightType value=bean:write name=operator
property=operatorWeightType
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 11:12 AM
Subject: Re: Question dynamic value for a logic:iterate
use this :
bean:define id=foo name=operator property=operatorWeightType/
logic:equal name=element property=weightType value=%= foo
]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 11:25 AM
Subject: Re: Question dynamic value for a logic:iterate
Got the following error.
symbol : method setValue (java.lang.Object)
location: class org.apache.struts.taglib.logic.EqualTag
Hi
I'am a Struts newbie, sorry if it is a classic question.
My question is about logic:iterate
I have a vector of documents.
In my application a document is a vector of LabelValueBean. I wish to
write both the label and the value.
I wish to write all my documents so I iterate
logic:iterate id=document name=formName property=documents
logic:iterate id=lv name=document property=labelValueBeans
bean:write name=lv property=label/
bean:write name=lv property=value/
/logic:iterate
/logic:iterate
You should probably use JSTL for this.
c:forEach var=document items
try something similar to this
(of course all the Java code to construct the lists should be in (or called by) a
Struts Action class, so focus on the use of the logic:iterate tag)
--8loop.jsp--
%@ page import=java.util.* %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib
MyObject names, (wity MyObject.id as value)
I have tried to embed the html:select inside a logic:iterate, but my
editor (websphere studio)complaints for following code
html:select property=defaultContainerType multiple=no
logic:iterate collection=%=
(Collection)session.getAttribute
:00 PM
Subject: html:select tag or logic:iterate
Hi all,
I am quite new to struts tag library and I need an advice.
In the HttpSession I have an object of type Collection, which stores
a list of MyObject.
MyOBject has two properties, description and id.
Out of this Collection of MyObject I
Inside the struts-exercise-taglib.war that comes with struts 1.1 you will
find a pratical example to solve your problem...
You should not do a logic:iterate inside html:select, insteat of
logic:iterate use the option:optionsCollection and pass your collection to
it...
look the jsp example
Hi All i am doing the following
logic:iterate id=aciterator name=rsiappForm
property=appCoursesMap
tr
td width=15%div align=center
html:radio property=appCourse(%=aciterator.key%).level
value=regular /
/div/td
td width=15%div align=center
%)
Joe
On Dec 2, 2003, at 3:34 PM, [EMAIL PROTECTED] wrote:
Hi All i am doing the following
logic:iterate id=aciterator name=rsiappForm
property=appCoursesMap
tr
td width=15%div align=center
html:radio property=appCourse(%=aciterator.key%).level
value=regular
or aciterator.getKey()?
appCourse(%=aciterator.key%).level/bean:define and then later %=
foo %)
Joe
On Dec 2, 2003, at 3:34 PM, [EMAIL PROTECTED] wrote:
Hi All i am doing the following
logic:iterate id=aciterator name=rsiappForm
property=appCoursesMap
tr
td width=15%div
Hi All,
I have a loop this way
logic:iterate id=xSome name=KEY_USER property=appCourses
html:text name=xSome property=courseName /
html:text name=xSome property=level /
/logic:iterate
I am iterating thro a list called getAppCourses. Suppose i change these
values will the list also get
If the type is String[], you will get an array of values.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 2:40 PM
To: [EMAIL PROTECTED]
Subject: saving values thro logic:iterate to a list
Hi All,
I have a loop this way
logic:iterate
Hi Guys
The reason i am using the logic:iterate is not to populate the select box
but to create the select box for the number times the length of the
testScoresVector and store the option selected in the select box in each
of the testScoresVector element.
--Mohan
Hi All
I have a Vector called
Hi All
I have tried this
logic:iterate id=tsv collection=testScoresVector
testScoresVector is a vector stored as a session Attribute as
request.getSession().setAttribute(testScoresVector, testScoresVector)
Please let me know what the problem is
--Mohan
Hi Guys
The reason i am using
be referenced from my
JSP.
In my JSP, I have the following to iterate over the list and display the entries:
logic:iterate id=vlist name=vendorList
bean:write name=vlist property=name /
ul
logic:iterate id=plist name=vlist property=products
libean:write name=plist property=title //li
/logic:iterate
perform a findAll() to return a Collection of
ProductVendors, and then call
request.setAttribute(vendorList, vendors); so it
can be referenced from my JSP.
In my JSP, I have the following to iterate over the
list and display the entries:
logic:iterate id=vlist name=vendorList
bean:write
Hi All
I have a Vector called as testScoresVector (Vector of testScores Objects)
stored in the session
I am trying this
logic:iterate id=tsv name=testScoresVector
html:select property=tsv.testName
html:option value=SAT-1SAT-1/html:option
html:option value=SAT-2SAT-2
this
logic:iterate id=tsv name=testScoresVector
html:select property=tsv.testName
html:option value=SAT-1SAT-1/html:option
html:option value=SAT-2SAT-2/html:option
:
:
/html:select
/logic:iterate
The idea is to add the selected value
hi MOhan
Error is coming coz your syntax is not upto the mark. Try with the following
logic:iterate id=tsv name=testScoresVector
html:select property=testName
html:collection name=tsv labelproperty=any property name of the
Vector/
/html:select
/logic:iterate
Cheers
gary
1 - 100 of 861 matches
Mail list logo