in adding the Form like so:
request.getSession().setAttribute(myForm, myForm);
The JSP which acts as the view for the action can display attributes
from the form if I refer to them using JSTL tags, but if I refer to the
same attributes through struts tags, e.g.
logic:iterate id
in adding the Form like so:
request.getSession().setAttribute(myForm, myForm);
The JSP which acts as the view for the action can display attributes
from the form if I refer to them using JSTL tags, but if I refer to the
same attributes through struts tags, e.g.
logic:iterate id
Hi Amol,
please see http://struts.apache.org/userGuide/struts-logic.html
especially the section on maps.
logic:iterate id=element name=myhashtable
Next element is bean:write name=element property=value/
with key bean:write name=element property=key/
/logic:iterate
Jurn
At 10:06 PM 18/08/2005
Hello List,
I need to display the results stored in the Hashmap.
How can I achieve it by using logic:iterate
I know the way to do it for List type data.
Can anyone help me in this ?
Thankx n regds,
Amol
Dave wrote :
As a followup, you may want to consider switching to JSTL for
straight-forward tasks such as this: where functionality is duplicated
between the Struts tags and JSTL it's generally recommended to go the
JSTL route. It's a trivial switch to make, and can be done mechanically
in
Stéphane Zuckerman wrote:
What I really dislike with struts tags is that attributes don't always
mean the same thing from tag to tag, which is disturbing. I'm mainly
thinking of the name and property, and .*Name attributes too.
Ah, I'm glad to hear I'm not the only one that is wogged by
Hi,
Currently I have a action class which does
session.setAttribute(recurringTaskSummary,v_recurringTaskSummary),
where v_recurringTaskSummary is a vector of type
SpRecurringTaskSummary which has certain variables such as
EmployeeName, EmployeeRef etc.
I am using logic:iterate as follows
Hi Jay,
session.setAttribute(recurringTaskSummary,v_recurringTaskSummary),
SpRecurringTaskSummary [...] has certain variables such as
EmployeeName, EmployeeRef etc.
I am using logic:iterate as follows:
logic:iterate id = rtSummary name=recurringTaskSummary
bean:write name
Stéphane Zuckerman wrote:
I am using logic:iterate as follows:
logic:iterate id = rtSummary name=recurringTaskSummary
bean:write name=rtSummary/
/logic:iterate
The output is name of objects. However I want to somehow access the
variables employeename, employeeref etc. How do I do
HI,
When i do :
logic:iterate id=rtSummary name=recurringTaskSummary
bean:write name=rtSummary property=employeeName/
/logic:iterate
it says not getter for employeeName in bean rtsummary.
'recurringTaskSummary' is a vector and not a bean.
I tried using the attribute type
Jay Sheth wrote:
HI,
When i do :
logic:iterate id=rtSummary name=recurringTaskSummary
bean:write name=rtSummary property=employeeName/
/logic:iterate
it says not getter for employeeName in bean rtsummary.
'recurringTaskSummary' is a vector and not a bean.
I tried using the attribute
Thanks a lot. Got it. As you said, the naming conventions were
followed, but I made a typo in the property attribute.
Sorry for the trouble.
Jay
On 8/16/05, Dave Newton [EMAIL PROTECTED] wrote:
Jay Sheth wrote:
HI,
When i do :
logic:iterate id=rtSummary name=recurringTaskSummary
in the array will wind up being a table row.
-Original Message-
From: Brian Kremmin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 02, 2005 11:02 AM
To: user@struts.apache.org
Subject: logic:iterate tag and form beans
Hello Everyone,
This is my first post. I've been watching
= (EmployeeForm) form;
//getEmployeesFromDatabase should return a collection of EmployeeBeans
empForm.setEmployees(getEmployeesFromDatabase());
return mapping.findForward(display);
}
JSP:
table
trthName/th
thDept/th
html:form action=xyz method=post
logic:iterate id=emp
Brian Kremmin wrote:
I'm planning to use an ArrayList to store the data and use the
logic:iterate tag to expose the elements of the list... however, I'm
unsure of the proper structure of all these data objects. I think I'm
using struts 1.1 if that makes a difference.
1) I'd tend towards
Brian Kremmin wrote:
I want to get some table data from a database and output it in table
form on a webpage.
I'm planning to use an ArrayList to store the data and use the
logic:iterate tag to expose the elements of the list... however, I'm
unsure of the proper structure of all these data
hi,
I've got:
ArrayList offices
array of office objects.
On jsp page i'm showing this array using logic:iterate. But i would
like to show just only some objects of this array list, which meet
some condition. It is possible?
Best Regards,
p
Sure
logic:iterate name=foo type=OfficeObject id=ob
logic:equal name=ob property=aProperty value=your_condition_value
html render object
/logic::equal
/logic:iterate
-Ursprüngliche Nachricht-
Von: peceka [mailto:[EMAIL PROTECTED]
Gesendet: Samstag, 30. Juli 2005 20:39
://newsletter.JAMMConsulting.com
-Original Message-
From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 20, 2005 10:41 AM
To: 'Struts Users Mailing List'
Subject: Not getting submitted values from textarea in logic:iterate
Hello:
I have a DynaForm with some beans stored
' on the 'feature' bean
defined by the enclosing logic:iterate/. That's not what you want. If you
look at the request when you submit the form I think you'll find that the
values from the text areas are submitted through a request parameter named
'text'.
Try this instead:
html:textarea property=features
Laurie:
I need to get the value of the text field from the feature bean, not
just the feature bean itself.
So, I had the change your code to:
logic:iterate name=admin.editClubForm property=features id=feature
indexId=i
html:textarea property=features[${i}].text value=${feature.text}
rows=3
, the EditClubInit action forwards to user to the
page to
display the form. Here is the JSP code that shows the data:
logic:iterate name=admin.editClubForm property=features
id=feature
br
html:textarea name=feature property=text indexed=true
rows=3 cols=75/
/logic:iterate
Hi All,
Is there any way to break loop of logic:iterate loop based on a condition ?
Thanks in advance,
Anil.
%
break;
%
From: sadineni [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: Issue with logic:iterate
Date: Tue, 12 Jul 2005 20:30:42 +0530
Hi All,
Is there any way to break loop of logic:iterate loop based on a condition
logic:iterate
id=InterfacesOverviewData
name=InterfacesOverviewForm
property=interfacesItems
type=de.Platinion.rr.QuestGen.P200038_26.Presentation.form.InterfacesInputFo
rm
tr
for the data items themselves and a form bean with a
Collection (ArrayList) with the list of all such data items.
Here is the relevant JSP code
...
logic:present name=InterfacesOverviewForm
logic:notEmpty name=InterfacesOverviewForm property=interfacesItems
table
logic:iterate id
logic:iterate id=InterfacesOverviewData
name=InterfacesOverviewForm
property=interfacesItems
type=Presentation.form.InterfacesInputForm
tr
td
!-- put a property of the interfaces item in table cell --
html:text name
Dear list,
I've been fighting this problem for some time now, and can't come up
with a solution. Please advice.
In my jsp page I'm iterating an array of Category objects which resides
in the request scope. This is done with the logic:iterate tag like this:
logic:iterate id=categories name
as an array for editing
form.set ( users, users.toArray ( new UserBean[0] ) );
In editUsers.jsp
logic:iterate id=users name=EditUsersForm property=users
html:text name=users property=name indexed=true
/logic:iterate
In the produced HTML:
input type=text name=users[0].name
:[EMAIL PROTECTED]
Sent: Wednesday, June 08, 2005 6:57 PM
To: user@struts.apache.org
Subject: Problem with logic:iterate Tag
I am populating following simple List in action class and putting that in form
class.
private List getSystemTableList(ConfWizardBean confwizbean, HttpSession
);
}
return outerList;
}
relevant JSP code is as follows
%-- Iterate through the system list --%
bean:define id=systemList name=MyForm property=systemTableList/
logic:present name=systemList
logic:notEmpty name=systemList
logic:iterate id
Hey all,
I get an exception and cannot find any explanation or solution.
An OverviewBody.jsp page intends to list all data items from a database.
It therefore cretaes an appropriate table, the table body is implemented using a
logic:iterate tag, the single table columns/cells are supposed to get
InnerKey22: Value22
I'm trying to nest two logic:iterate tags to print out the keys in the
outer map and the values in the inner Map.
What I'm trying to do is something like this:
logic:iterate id=myOuterMap name=myForm property=myOuterMap
tr
tdbean:write name=myOuterMap property=key
From: [EMAIL PROTECTED]
The data structure I use is a HashMap, whose values are other HashMaps.
I'm trying to nest two logic:iterate tags to print out the keys in the
outer map and the values in the inner Map.
c:forEach var=outerMapEntry items=${outerMap}
c:out value=${outerMapEntry.key
]
Sent: Tuesday, May 24, 2005 11:02 AM
To: Struts Users Mailing List
Subject: Re: logic:iterate multiple collections
From: [EMAIL PROTECTED]
The data structure I use is a HashMap, whose values are other
HashMaps.
I'm trying to nest two logic:iterate tags to print out the keys in the
outer map
See http://struts.apache.org/faqs/struts-el.html. It includes a list
of Struts tags whose functionality is covered by the JSTL.
On 5/24/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Thanks! That worked, and is also much easier to understand.
This is probably a newbie question: How / when
Hi all,
Let's say I have two collections, A, and B. Is there a way to iterate
over multiple collections with something like logic:iterate?
i.e
logic:iterate
${rowA.name}
${rowB.value}
/logic:iterate
--
Titus Barik ([EMAIL PROTECTED])
http://www.barik.net
From: Titus Barik [EMAIL PROTECTED]
Let's say I have two collections, A, and B. Is there a way to iterate
over multiple collections with something like logic:iterate?
If you know they're the same size and in the same order, (should be the case
with List,) how about iterating over one
I'm trying to iterate over a String[] in a LazyValidatorForm using:
logic:iterate name=myForm property=first
...
But I get the following error:
Unable to find a value for first in object of class
org.apache.struts.validator.LazyValidatorForm using operator .
So, does
So, does the logic:iterate tag work with DynaBeans? From the source
code, it uses BeanUtils.getProperty(), which works with DynaBeans.
Any ideas? Thanks.
Please disregard this post. The problem was actually later on when I
attempted to access the DynaBean via JSTL, which doesn't work
From: Durham David R Jr Ctr 805 CSPTS/SCE [EMAIL PROTECTED]
The problem was actually later on when I
attempted to access the DynaBean via JSTL, which doesn't work for
obvious reasons.
LazyValidatorForm has a 'getMap' method, so you _can_ use it with JSTL. I
use LazyDynaBean, which has the
and tags,
I am struggling.
logic:iterate id=result name=ParcelSearchForm property=results
html:link page=/somepage.do name=result scope=page
paramId=parcel bean:write name=result
property=parcel//html:linkbr /
/logic:iterate
I am not sure what I need to use in order to grab the parcel value from
the form
I guess, it would something like this:
logic:iterate id=result name=ParcelSearchForm
property=results type=com.acme.ParcelObj
html:link page=/somepage.do paramId=param1
paramName=result paramProperty=parcel
bean:write name=result property=parcel/
/html:link
Thanks,
That worked. I need to read the documentation!!!
-Original Message-
From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 27, 2005 12:21 PM
To: Struts Users Mailing List
Subject: Re: Dynamically generating parameterized links using
logic:iterate
I guess
Hi,
U can do -
logic:iterate collection=%= vec% id=vecRow
indexId=index
logic:equal ... //do some thing /logic:equal
/logic:iterate
--- Kade Jeevan Kumar [EMAIL PROTECTED] wrote:
Hi
i have
for(int i=0; i vec.size(); i++)
{
if(i=5
Hi all...
I get this exception trying to render options with logic iterate tag...
javax.servlet.jsp.JspException: Cannot create iterator for this collection
My action just get a List form a Srevice layer and store it in session scope
under Globales.AreaPersonal.MODULOS_KEY.
logic:iterate id
action just get a List form a Srevice layer and store it in session scope
under Globales.AreaPersonal.MODULOS_KEY.
logic:iterate id=modulo collection='%=Globales.AreaPersonal.MODULOS_KEY%'
option value='%=((Contenible)modulo).getId()%'
%=((Contenible)modulo).getNombre()+ - + ((Contenible)modulo
I would like to get a null pointer exception or a can not set bean to null
when my list is null...
I use to solve this kind of problem with html:options and
html:optionsCollection but what i have to do in this page is very complex for
this tags...
thanks for your answer Erik
Lucas
Erik
to iterate over string.
How about this:
logic:iterate id=modulo
collection='%=(List)
session.getAttribute(Globales.AreaPersonal.MODULOS_KEY)%'
Michael.
On 4/21/05, Lucas Bern [EMAIL PROTECTED] wrote:
Hi all...
I get this exception trying to render options with logic iterate tag
PROTECTED] wrote:
My action just get a List form a Srevice layer and store it in session scope
under Globales.AreaPersonal.MODULOS_KEY.
logic:iterate id=modulo collection='%=Globales.AreaPersonal.MODULOS_KEY
Great!
it works fine...
thanks Jeff and Erik.
Lucas
Jeff Beal [EMAIL PROTECTED] wrote:
From http://struts.apache.org/userGuide/struts-logic.html#iterate:
collection: A runtime expression that evaluates to a collection
probably evaluates to a String.
What you need is
name=''
On 4/21/05, Lucas
Hi
i have
for(int i=0; i vec.size(); i++)
{
if(i=5)
{
// do some thing
}
}
how can i use the same code in logice:iterate
Help me out with example.
-Thnx in Advance
Jeevan
Hi, I am using a logic:iterate tag throw a Collection. This collection is a
property of my ActionForm.
I set also an offset and length.
So, shown elements work fine, but not shown elements are just null. I would not
like to lose data of the not shown elements of the collection.
I dont know how
Suggestions:
1- Use c:forEach instead of logic:iterate
2- Use a seperate property in your form to store the viewable/changeable stuff,
for example if you have a collection of strings, you can have an array
of strings be
your viewable/editable property. This will cut down
that html:input is a mistake, it should be html:text
-Original Message-
From: Oscar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 20, 2005 5:23 AM
To: user@struts.apache.org
Subject: logic:iterate, with offset and length parameters, lose data
Hi, I am using a logic:iterate tag throw
c:if test=${not displayable}html:hidden
property=collectionProperty value=${item} //c:if
/c:forEach
-Original Message-
From: Oscar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 20, 2005 5:23 AM
To: user@struts.apache.org
Subject: logic:iterate, with offset and length parameters, lose
some attributes with values for later use. One of the
attributes for example is holding a String[].
Now, in the jsp, I have this:
logic:iterate id=element name=showFacilitiesArray
bean:write name=element /br /
/logic:iterate
This works fine so far, but because I'd like to put
indexId will do
http://struts.apache.org/userGuide/struts-logic.html#iterate
select name=...
logic:iterate id=element name=showFacilitiesArray indexId=index
option value=bean:write name=index/bean:write
name=element//option
/logic:iterate
/select
You may also want to look at html:options
indexId will do
http://struts.apache.org/userGuide/struts-logic.html#iterate
select name=...
logic:iterate id=element name=showFacilitiesArray indexId=index
option value=bean:write name=index/bean:write
name=element//option
/logic:iterate
/select
You may also want to look at html:options
Hi Leon
Leon Rosenberg wrote:
indexId will do
http://struts.apache.org/userGuide/struts-logic.html#iterate
Been there, but somehow didn't get what it was about ... closer now.
select name=...
logic:iterate id=element name=showFacilitiesArray indexId=index
option value=bean:write name=index
Thank you Günther, for your help:
Now it works fine!
Jan-Jaap
Günther Wieser wrote:
i think the example in the docs shows you almost everything:
logic:iterate id=element name=myhashtable
Next element is bean:write name=element property=value/
/logic:iterate
all you need to do is drop
Folks,
Thanks in advance for answering this urgent question. I know it's basic, but
I'm stumped...your help is appreciated.
I am trying to update data displayed via a logic:iterate tag with nested
logic:equal tags:
logic:iterate id=bean name=assetReportForm property=report.entries
Hello Guys,
Please help.
I need to access an arraylist property inside the arraylist that I
have just iterated over.
I got this code .
logic:iterate name=%= Konstants.SESSION_USER_KEY %
property
);
pageContext.setAttribute(bar,v,PageContext.PAGE_SCOPE);
then trying to iterate over bar
logic:iterate id=element name=bar
bean:write name=element/
/logic:iterate
__
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100
I think this is what you are looking for
logic:iterate name=myVector id=myProject indexId=i
bean:define id=mydescription name=myProject
property=description /
bean:write name=mydescription/
/logic:iterate
-Eric
[EMAIL PROTECTED] 3/2/2005 12:09:49 PM
hi folks,
I am trying to iterate
created bean of name bar.
Vector v=new Vector();
Project p1=new Project();
p1.setName(project1);
p1.setDescription(des);
pageContext.setAttribute(bar,v,PageContext.PAGE_SCOPE);
then trying to iterate over bar
logic:iterate id=element name=bar
bean:write name=element/
/logic:iterate
thanks I am running into a related problem with radio
buttons:
logic:iterate id=element name=bar
html:radio idName=element value=name
property=pName
/html:radio
/logic:iterate
when rendered it says:
[ServletException in:/calc/ProjectManagerMain.jsp]
Cannot find
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:
logic:iterate id=element name=bar
html:radio idName=element value=name
property=pName
/html:radio
/logic:iterate
when rendered it says
thanks I am running into a related problem with
radio
buttons:
logic:iterate id=element name=bar
html:radio idName=element value=name
property=pName
/html:radio
/logic:iterate
when rendered it says:
[ServletException in:/calc/ProjectManagerMain.jsp
I have been trying to do the following in my layout with out success.
tiles:importAttribute/
html:xhtml/
logic:iterate id=shipment name=pipePurchaseOrderForm
property=pipePurchaseOrderValue.shipments indexId=row
tiles:insert attribute=shipment/
/logic:iterate
I have been trying to do the following in my layout with out success.
tiles:importAttribute/
html:xhtml/
logic:iterate id=shipment name=pipePurchaseOrderForm
property=pipePurchaseOrderValue.shipments indexId=row
tiles:insert attribute=shipment/
/logic:iterate
tiles:insert attribute=shipment/
Are you trying to pass shipment object (which comes from the
logic:iterate) to the tile page (through insert) ? If so try,
tiles:insert definition=abc
put name=shipment value=%=shipment%/
/tiles:insert
@struts.apache.org
Sent: Tuesday, January 04, 2005 9:18 AM
Subject: error with logic:iterate on dynabeans
i get the following error when i run a web application to display the
contents of a table.
HTTP Status 500 -
type
.
Apache Tomcat/5.0.19
below is the code i want to use to display the content of a database table.
the rowSet attribute is a RowSetDynaClass containing the result of the query.
bean:define id=cols name=rowSet property=dynaProperties/
table border=2
tr
logic:iterate id=col
Struts has built in support for DynaBeans.
logic:iterate
id=account
name=editBUForm
property=account
...
/logic:iterate
/robert
--- [EMAIL PROTECTED] wrote:
- struts-config.xml
form-beans
form-bean name=editBUForm
type=org.apache.struts.validator.DynaValidatorForm
Hello all,
I have a problem with the logic:iterate tag. I need to iterate over a
HashMap which stores wrapper objects(which include the actual data).
A wrapper class has for example one attribute velocity. As far
as I know the only way to access such a HashMap is this method:
logic:iterate id
logic:iterate id=element name=hashMap indexId=index
bean:define id = vObj name=element property=value /
bean:write name = vObj property = velocity /
/logic:iterate
Peter Neu wrote:
Hello all,
I have a problem with the logic:iterate tag. I need to iterate over a
HashMap which stores wrapper
();
}
df.set(account, account);
- jsp page
logic:iterate id=account name=editBUForm.map.Account
tr
td align=center style=border-left:1px #8FA8CC solid
bean:write name=account property=accCode scope=page/
/td
td style=border-left:1px #8FA8CC
a solution to create dynamic styleId ... ?
% int itrator=0; %
logic:iterate id=iType property=investorTypeList name=sharePatternBean
html:text name=iType styleId=sp% = itrator % property=sharesPer
readonly=true /
%itrator++;%
/logic:iterate
Regards,
Sachin Hegde,
Software Developer
On Monday 29 November 2004 14:27, Aidas Semezys wrote:
It is not allowed to have just part of attribute value as JSP expression.
Here is the correct solution:
html:text name=iType styleId=%=sp + iterator%
property=sharesPer/
Thanks! That solved a problem I was about to ask ...
--
derek
simply ' styleId=sp% = itrator % ' for all the fields .
can someone provide a solution to create dynamic styleId ... ?
% int itrator=0; %
logic:iterate id=iType property=investorTypeList name=sharePatternBean
html:text name=iType styleId=sp% = itrator % property=sharesPer
readonly=true /
%itrator
Hi,
I am unable to iterate an ArrayList while using
struts1.1 with DynaValidatorForm. Has any one tried
it? I am getting the following error in WSAD 5.1...
[04/11/17 14:31:41:915 IST] 54f64cef WebGroup E
SRVE0026E: [Servlet Error]-[Cannot find bean
ProductLines in any scope]:
Hi,
I have a table in my application that I display through the
logic:iterate Struts tag,
One of the column contents a long text, I would like to add a 'Tooltip'
in order
to view the whole text, is it possible ?
Thanks a lot in advance
Hi,
What I understood was like this:
You have a logic:iterate tag
Inside that you have the text field tag.
Corresponding to the Logic:iterate you must be having a for loop inside
the form population method in your action.
There you will be populating the value from the said bean
(in the bean
have a logic:iterate tag
Inside that you have the text field tag.
Corresponding to the Logic:iterate you must be having a for loop inside
the form population method in your action.
There you will be populating the value from the said bean
(in the bean you will be having list I suppose, from
Hi,
I've an array list called fruits.
And, I want to count the number of fruit.
How can I do it to write out the number?
logic:iterate id=fruit name=fruits indexId=index
%=index%
/logic:iterate
Thanks.
--MM
CONFIDENTIALITY NOTICE: The information in this e-mail
bean:size id=numFruits name=fruits/
Number of fruits: bean:write name=numFruits/
-Bill Siggelkow
Peng, Meimin wrote:
Hi,
I've an array list called fruits.
And, I want to count the number of fruit.
How can I do it to write out the number?
logic:iterate id=fruit name=fruits indexId=index
I miss this tag. Thanks.
--MM
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow
Sent: Wednesday, November 03, 2004 3:45 PM
To: [EMAIL PROTECTED]
Subject: Re: how do I count array in logic:iterate
bean:size id=numFruits name=fruits/
Number of fruits
this?
Thanks
Sebastian Ho
-
logic:iterate id=mymobilephaseloadings name=mobilephaseloadings
scope=session
tr bgcolor=#CC
html:form action=EditLCMSMSGradientStepByIdentifier.do
td
U shouldn't give the value attribute there. The value would be read from
the form
Regards,
Girish
-Original Message-
From: Sebastian Ho [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 12:18 PM
To: Struts Users Mailing List
Subject: html:text in logic:iterate
Hi
I have
-Original Message-
From: Sebastian Ho [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 12:18 PM
To: Struts Users Mailing List
Subject: html:text in logic:iterate
Hi
I have a iterate tag which contains a text box. I wish to display value
in the textbox. But this line
attribute.
It will work
-Original Message-
From: Sebastian Ho [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 12:34 PM
To: Struts Users Mailing List
Subject: RE: html:text in logic:iterate
The user is actually editing some data that is already saved. So I need
the data to be displayed
=percentage/
So, poipulate the form bean at the action . That's it
Dopn't give the value attribute.
It will work
-Original Message-
From: Sebastian Ho [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 12:34 PM
To: Struts Users Mailing List
Subject: RE: html:text in logic:iterate
=bean:write name=mymobilephaseloadings
property=percentage//
Anyone knoww how to get around this?
Thanks
Sebastian Ho
-
logic:iterate id=mymobilephaseloadings name=mobilephaseloadings
scope=session
tr bgcolor=#CC
;
}
My UpdateEmployees.jsp:
jsp:useBean id=listOfEmployees type=java.util.Collection
scope=session/
logic:iterate id=emp name=listOfEmployees
type=com.myCompany.EmployeeDTO
tr
tdhtml:text property=name//td
tdhtml:text property=age//td
td
html:select name=emp property=department
Erik Weber wrote the following on 10/16/2004 10:28 PM:
but I think there's not much the Struts tags do that the JSTL
tags can't do.
Agreed, except the html form and netsted tags are nice and handy. Other
than those I try and use JSTL (although I'm also using logic:present tag
since it provides
List
Subject: Re: logic:iterate and table display
Vijay Vishvas Dharap wrote the following on 10/15/2004 9:41 PM:
Hi all,
I have following scenario..
I have FormBean which has getter and setter for my VO object
In VO I have a list of another VO.
Now on this form I want to display
16, 2004 7:57 PM
To: Struts Users Mailing List
Subject: Re: logic:iterate and table display
Vijay Vishvas Dharap wrote the following on 10/15/2004 9:41 PM:
Hi all,
I have following scenario..
I have FormBean which has getter and setter for my VO object
In VO I have a list of another VO.
Now
Hi all,
I have following scenario..
I have FormBean which has getter and setter for my VO object
In VO I have a list of another VO.
Now on this form I want to display the contents of the list using
logic.iterate tags.
I will make matter simpler saying...
aFormBean has aVO which as list of
logic:iterate name=subQuestions id=question
indexId=subQuestion
bean:write name=question property=text /
logic:match name=question value=SingleChoice
logic:iterate name=question property=possibleChoices
id=option type=dk.procore.model.Option
201 - 300 of 343 matches
Mail list logo