Oops, sorry; I didn't realize this was a struts 1 question.
Rusty Wright wrote:
http://struts.apache.org/2.1.6/docs/ognl-basics.html
senderj wrote:
If I have a text input in my jsp named scoreNdays, I know I should
declare my
variable scoreNdays in the struts formbean with getter and setter
http://struts.apache.org/2.1.6/docs/ognl-basics.html
senderj wrote:
If I have a text input in my jsp named scoreNdays, I know I should declare my
variable scoreNdays in the struts formbean with getter and setter like
getScoreNdays(). Then it will work with the jsp. Now I have an iternation in
m
If I have a text input in my jsp named scoreNdays, I know I should declare my
variable scoreNdays in the struts formbean with getter and setter like
getScoreNdays(). Then it will work with the jsp. Now I have an iternation in
my jsp like
.
Since the two input are indexed, they generate a
First, thanks for your help
I am having problems to build JSP with multiple questions and some radio
buttons for each question.
I am using two logic:iterate, one for questions and anotherone for answer
for each question, like this:
Pawel,
Thank you very much for responding.
I tried the following and it worked.
Thanks again,
Joe
-Original Message-
From: Pawel Wielgus [mailto:poulw...@gmail.com]
Sent: Wednesday, March 11, 2009 6:46 AM
To: Struts Users Mailing List
Subject: Re: logic:iterate
gt; Sent: Tuesday, March 10, 2009 2:28 PM
> To: Struts Users Mailing List
> Subject: logic:iterate issue
>
>
> Sorry forgot to change subject.
>
> -Original Message-
> From: Russo, Joe [mailto:rus...@cadmus.com]
> Sent: Tuesday, March 10, 2009 2:25 PM
> To:
-
From: Russo, Joe [mailto:rus...@cadmus.com]
Sent: Tuesday, March 10, 2009 2:28 PM
To: Struts Users Mailing List
Subject: logic:iterate issue
Sorry forgot to change subject.
-Original Message-
From: Russo, Joe [mailto:rus...@cadmus.com]
Sent: Tuesday, March 10, 2009 2:25 PM
To
Sorry forgot to change subject.
-Original Message-
From: Russo, Joe [mailto:rus...@cadmus.com]
Sent: Tuesday, March 10, 2009 2:25 PM
To: Struts Users Mailing List
Subject: RE: Convention Plugin and Action Chaining
I defined the below code and would like to use the iterate functionality
I think it's wrong... you don't need an "iterated" in order to set a single
simple value. With a setter and getter pair for the property is just enough.
You should be expecting an String with the given value from the user input.
The again I may be wrong... ^^
Happy new year!
Hi,
I need a urgent help. Could someone respond to
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=58&t=015067
regards
Prasanth
--- On Fri, 11/7/08, SanJ.SANJAY wrote:
> [...] I think the reason is that the moment it tries to read
> proper xxxCollection in iterator tag, it throws error
> "bean xxxCollection is not found in any any scope"
Such information is useful; I don't recall you mentioning that before.
> I am confus
newton.dave wrote:
>
> The ">" characters are normally used to differentiate what I said from
> what you said. Prefacing *every* line with ">" somewhat defeats the
> purpose and breaks with tradition.
>
> --- On Fri, 11/7/08, SanJ.SANJAY wrote:
>> I changed to put that in direct request also a
The ">" characters are normally used to differentiate what I said from what you
said. Prefacing *every* line with ">" somewhat defeats the purpose and breaks
with tradition.
--- On Fri, 11/7/08, SanJ.SANJAY wrote:
> I changed to put that in direct request also and did'nt work:
> request.setAttri
newton.dave wrote:
>
> --- On Fri, 11/7/08, SanJ.SANJAY wrote:
>> I am trying to display the collection that I am setting in
>> struts action to the request scope.
>
> The code is putting it in session scope, FWIW:
>
>> request.getSession().setAttribute("xxxCollection", xxxCollection);
>> [..
--- On Fri, 11/7/08, SanJ.SANJAY wrote:
> I am trying to display the collection that I am setting in
> struts action to the request scope.
The code is putting it in session scope, FWIW:
> request.getSession().setAttribute("xxxCollection", xxxCollection);
> [...]
>
>
>
Does it not recognize
I am trying to display the collection that I am setting in struts action to
the request scope.
But when I try to use struts to display the collection,
it says does not find xxxCollection bean in any scope.
In Action class:
for (int i = 0; i < children.length; i++)
{ xxxCollection.add(filenam
one action class say "view_topics_Action"
is getting called which is setting the arraylist for topics say "topic_list"
in request scope.This list is getting displayed using logic:iterate in
view_topic.jsp.No problem till here.Now when user clicks on a particular
topic I want th
class say "view_topics_Action"
is getting called which is setting the arraylist for topics say "topic_list"
in request scope.This list is getting displayed using logic:iterate in
view_topic.jsp.No problem till here.Now when user clicks on a particular
topic I want that all the threads re
Unfortunately your struts-config.xml and JSP code didn't make it through
to the list properly. Make sure you're sending your message as plain text.
A couple of questions:
*) How are you accessing the page? (i.e. what URL are you typing?)
*) Are you sure you are calling the action before the JS
Hello Alexander,
First of all thanx for replying.My code looks very much
unclear here.You can refer this link
http://forums.sun.com/thread.jspa?threadID=5333420.Again topic_list is my
arraylist.I have created it in action class & I have set it in request
scope.Same arraylist I
UITOT schrieb:
Hello all,
I have developed 1 application using struts.I am getting this error in my
JSP.I have used logic:iterate.I have populated an arraylist in action class
which I am using in my JSP.I am able to see the data from the arraylist in
my JSP but I am getting error when I am clicki
Hello all,
I have developed 1 application using struts.I am getting this error in my
JSP.I have used logic:iterate.I have populated an arraylist in action class
which I am using in my JSP.I am able to see the data from the arraylist in
my JSP but I am getting error when I am clicking on the hyperl
Hi to all.
I have a problem with a logic:iterate tag. I'm using Struts 1.3.
I have to populate a select with data read from db (by invoking the first
Action). When a select option is selected in the jsp, I have to invoke a
second Action (on the same jsp page) which has to perform some opera
;
> Reply-To: Struts Users Mailing List
> Date: Wed, 16 Jan 2008 12:41:41 +0100 (CET)
> To:
> Subject: logic:iterate - editable table
>
> Hi,
>
> I have searched the archive but havn't found any
> solution for the following problem:
>
> I have an array of e
gt; html:text tag.
>
> or in complex cases:
>
> id="list" indexId="loop">
>(loop.intValue()) + "].myProperty"%>"/>
>
>
>
> kind regards,
>
> frank
>
> -Ursprüngliche Nachricht-
> Von: Oliver T
hi,
you can use the attribute indexed="true" in html:text tag.
or in complex cases:
"/>
kind regards,
frank
-Ursprüngliche Nachricht-
Von: Oliver Thoms [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 16. Januar 2008 12:42
An: user@struts.apache.org
Betr
Hi,
I have searched the archive but havn't found any
solution for the following problem:
I have an array of entries to display, so I use the
logic:iterate tag.
But due to customer request, the data should not be
just displayed (bean:write) and afterwards edited by
the usual EDIT Button a
please can anybody tell me how to use Download button functionality
(DownloadAction) in logic:iterate of struts 1.2.9
--
View this message in context:
http://www.nabble.com/Download-button-logic%3Aiterate-tf4901761.html#a14041195
Sent from the Struts - User mailing list archive at Nabble.com
The class "Book" must have the getter-function "getTitle()"
Minghui Yu schrieb:
> in Action:
> ...
> Set books=bdao.findAllBooks();
> request.setAttribute("books", books);
> ...
>
>
> In JSP:
>
>
> All Books:
>
>
>
>
>
--
I made this change , still does not work
Next element is
Error:
No getter method for property: "title" of bean: "abook"
I do have getTitle method for Book object
On Nov 25, 2007 7:33 PM, Fitzwilliam. Aaron <[EMAIL PROTECTED]> wrote:
> u sure the collection 'books' is not empty?
>
>
> O
I tried code below, still the same error:
Next element is
Database search does not return any result
On Nov 25, 2007 7:33 PM, Fitzwilliam. Aaron <[EMAIL PROTECTED]> wrote:
> u sure the collection 'books' is not empty?
>
>
> On 11/26/07, Minghui Yu <[EMAIL PRO
u sure the collection 'books' is not empty?
On 11/26/07, Minghui Yu <[EMAIL PROTECTED]> wrote:
>
> in Action:
> ...
> Set books=bdao.findAllBooks();
>request.setAttribute("books", books);
> ...
>
>
> In JSP:
>
>
> All Books:
>
>
>
>
> --
>
> The line ( throws an
> exception:
>
in Action:
...
Set books=bdao.findAllBooks();
request.setAttribute("books", books);
...
In JSP:
All Books:
--
The line ( throws an exception:
Root Cause:
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot
find bean: "book" in any scope
(ther
nfiguration.
apparently your weblogic server isn't properly configured which log to
use with commons-logging adaptor.
On 8/9/07, Mad Shop wrote:
> I have following scenario.
>
> I have getExSummary() method in exForm which returns a arraylist of A object.
> How to use logic:iterate tag t
thod in exForm which returns a arraylist of A
> object. How to use logic:iterate tag to print all the values which methods
> in A object.
> getACount(),getBCount() are methods in A object.
>
> I tried following tag, which is not working. Please suggest
I have following scenario.
I have getExSummary() method in exForm which returns a arraylist of A
object. How to use logic:iterate tag to print all the values which methods in
A object.
getACount(),getBCount() are methods in A object.
I tried following tag, which is not
Guys,i have this error saying that indexed is invalid for my multibox
attribute
this is my JSP
what seems to be the problem?
--
View this message in context:
http://www.nabble.com/Concerning-index-on-validating-under-logic%3Aite
hello..it works properly now.
Ive changed html:text syntax to
" size="25"/>
and declared bitrateTxt in my actionform as
private String[] bitrateTxt = {"","","","",""};
public String[] getBitrateTxt() {
return this.bitrateTxt;
}
public void setBitra
here is the declaration of bitrateTxt in my actionform
private String bitrateTxt;
public String getBitrateTxt() {
return this.bitrateTxt;
}
public void setBitrateTxt(String bitrateTxt) {
this.bitrateTxt = bitrateTxt;
}
hi but I also declares bitrateText in my actionform..
Thank you for your reply..
nuwan chandrasoma-2 wrote:
>
> Hi,
>
> You dont have a getter method for bitrateTxt property in the bean your
> trying to access (item1).
>
> Thanks,
>
> Nuwan
>
> Hiroyuki Suzuki wrote:
>> hello guys..Im Hiroy
Hi,
You dont have a getter method for bitrateTxt property in the bean your
trying to access (item1).
Thanks,
Nuwan
Hiroyuki Suzuki wrote:
hello guys..Im Hiroyuki and im new here..
Hope you could help me with some of my inquiries.
I have this JSP
property="items1">
hello guys..Im Hiroyuki and im new here..
Hope you could help me with some of my inquiries.
I have this JSP
"/>
"/>
"/>
my action form contains:
private String[] bitratebox = {};
private String[] items1 = {"500k","1
regards,
Andreas Hartmann
Chad S. Lauritsen wrote:
> Another way to do it (with a little bit less java) is:
>
>
>
>
>
>
>
>
> [EMAIL PROTECTED] wrote:
>> Hello!
>>
>> I've got a problem to get a value within a logic:iterate con
Another way to do it (with a little bit less java) is:
[EMAIL PROTECTED] wrote:
Hello!
I've got a problem to get a value within a logic:iterate construction
(foo is an ArrayList ):
This does not work.
How must it been written to address the method getRows() in the o
Try following tag...
On 7/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hello!
I've got a problem to get a value within a logic:iterate construction
(foo is an ArrayList ):
This does not work.
How must it been written to address the method getRows() in the object
Hello!
I've got a problem to get a value within a logic:iterate construction
(foo is an ArrayList ):
This does not work.
How must it been written to address the method getRows() in the object,
which has been defined by id in logic:iterate?
Kind regards,
Andreas Hartmann
&
-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
rite on the field "field1"
of each objects in the ArrayList.
Using EL extensions, code would probably like this (i haven't tryed):
The problem i absolutely don't want to add another dependency to my
project, if not strictly necessary, and i have the sensation i
*
- Original Message
From: Laurie Harper <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Thursday, March 8, 2007 5:11:20 PM
Subject: Re: logic:iterate tag!
Swaminathan Subramanian wrote:
All,
I am working on application using Struts 1.0. I am trying to d
I am sorry! It is a typo.
- Original Message
From: Dave Newton <[EMAIL PROTECTED]>
To: Struts Users Mailing List
Sent: Friday, March 9, 2007 2:34:26 PM
Subject: Re: logic:iterate tag!
--- Swaminathan Subramanian wrote:
> ArrayList alAFFFile = new ArrayList();
> alFile.add
--- Swaminathan Subramanian wrote:
> ArrayList alAFFFile = new ArrayList();
> alFile.add(objAFFFiles[i]);
> session.setAttribute("AFFFiles", alAFFFile);
Is the alFile.add a typo?
d.
Finding fabulous fares i
*
- Original Message
From: Laurie Harper <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Thursday, March 8, 2007 5:11:20 PM
Subject: Re: logic:iterate tag!
Swaminathan Subramanian wrote:
> All,
> I am working on application using Struts 1.0. I am trying
Swaminathan Subramanian wrote:
All,
I am working on application using Struts 1.0. I am trying to display an
ArrayList of complex objects using the logic:iterate tag.
Here's some more details -
FileObj
fileName
fileSize
fil
All,
I am working on application using Struts 1.0. I am trying to display an
ArrayList of complex objects using the logic:iterate tag.
Here's some more details -
FileObj
fileName
fileSize
fileType
fileModifiedDate
Action
Hi,
Have a look on struts nested tags.
Regards,
Nuwan
- Original Message -
From: "Oscar Guindzberg" <[EMAIL PROTECTED]>
To:
Sent: Thursday, January 25, 2007 6:29 PM
Subject: Nesting logic:iterate tags and indexed="true"
I have a problem nesting log
I have a problem nesting logic:iterate tags along with using indexed="true"
I have a form that extends ActionForm which has a Car array. Car class
has in turn a type and a Components array. Component has 2 fields:
name and qty.
This is the jsp:
This is the gene
I want to print the value of it in the plain
text format on the page. Using select/options will not help here.
Regards
-Original Message-
From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 20, 2007 4:53 PM
To: Nuwan Chandrasoma; Struts Users Mailing List
Subject: Re:
gt;
To: "Struts Users Mailing List"
Sent: Saturday, January 20, 2007 9:47 PM
Subject: Re: nested:select to logic:iterate or nested:iterate
Hi,
According to the code sample you have given below. i dont think the
ArrayList you are iterating contains strings. it must be having some
and
see.. for eg:-
Thanks,
Nuwan
- Original Message -
From: "Bhanu Valasa" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Saturday, January 20, 2007 4:02 PM
Subject: RE: nested:select to logic:iterate or nested:iterate
Nuwan,
Infact I
logic:iterate or nested:iterate
Thanks,
Nuwan
- Original Message -
From: "Bhanu Valasa" <[EMAIL PROTECTED]>
To:
Sent: Friday, January 19, 2007 7:20 PM
Subject: nested:select to logic:iterate or nested:iterate
Hello gurus
I have struts tag in my jsp, which disp
id="product">
Thanks,
Nuwan
- Original Message -
From: "Bhanu Valasa" <[EMAIL PROTECTED]>
To:
Sent: Friday, January 19, 2007 7:20 PM
Subject: nested:select to logic:iterate or nested:iterate
Hello gurus
I have struts tag in my jsp, whic
Hello gurus
I have struts tag in my jsp, which displays HTML select option box with
selected (a String array in the bean)
Instead HTML Select box I want to print the String array elements in
text format.
Could some one please help me how to use logic:iterate or
gt; From: Kranti Parisa [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 13, 2006 3:23 PM
> To: Struts Users Mailing List
> Subject: Re: logic:iterate for arraylist of beans
>
> Dear Mano,
>
> I need to display the employees from the emp table
> emp table is having
Wednesday, December 13, 2006 3:23 PM
To: Struts Users Mailing List
Subject: Re: logic:iterate for arraylist of beans
Dear Mano,
I need to display the employees from the emp table
emp table is having following columns
1) empid
2) fname
3) lname
4) email
5) mobile ...etc
so when i fire a query i will
Sent: Wednesday, December 13, 2006 3:23 PM
To: Struts Users Mailing List
Subject: Re: logic:iterate for arraylist of beans
Dear Mano,
I need to display the employees from the emp table
emp table is having following columns
1) empid
2) fname
3) lname
4) email
5) mobile ...etc
so when i fire a query i wil
anti Parisa [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 3:06 PM
To: Struts Users Mailing List
Subject: Re: logic:iterate for arraylist of beans
Hi Mano,
In the code you have written
"Emp" should be the name of the ArrayList right?
and in logic:iterate type is there?
uts Users Mailing List
Subject: Re: logic:iterate for arraylist of beans
Hi Mano,
In the code you have written
"Emp" should be the name of the ArrayList right?
and in logic:iterate type is there? i hope you mean to say collection="" ..
and i need to submit the form after se
Hi, i've a questione regarding sum calculation in a table:
The jsp look like this one:
Nr
Hi Mano,
In the code you have written
"Emp" should be the name of the ArrayList right?
and in logic:iterate type is there? i hope you mean to say collection="" ..
and i need to submit the form after selecting what ever checkboxes that i
need to delete and then click on t
List
Subject: logic:iterate for arraylist of beans
hi,
i am facing proble for the following
=
assigning value to check box
say logic:iterate is having arraylist
this arraylist is with beans
means for example employee bean
i want to view all emps in jsp
what we will do is we
hi,
i am facing proble for the following
=
assigning value to check box
say logic:iterate is having arraylist
this arraylist is with beans
means for example employee bean
i want to view all emps in jsp
what we will do is we create a bean for each employee
and add tht
PROTECTED]> wrote:
> >
> > Hello,
> >
> > I've a collection and i iterate using
> logic:iterate,
> > inside the iterate, put a html:select.
> >
> > id="idx"
> > indexId="indexId">
> > ...
> > > onchange
Po Po ha scritto:
But when I run, it's javascript error. When view the
html source see, the ${indexId} is not convert to a
number (just as string).
Do you use a JSP 2.0 compliant app server, such as Tomcat 5.5?
-
To unsubsc
try
onchange='<%= "onchangeGrade(" + indexId.intValue() + ");" %>'
Regards,
Nikhil
On 12/12/06, Po Po <[EMAIL PROTECTED]> wrote:
Hello,
I've a collection and i iterate using logic:iterate,
inside the iterate, put a html:select.
...
Hello,
I've a collection and i iterate using logic:iterate,
inside the iterate, put a html:select.
...
...
In the html:select, I add an javascript onchange
event. the event call onchangeGrade.
I need the indexId is write as parameter in javascript
onchangeGrade.
But when I run,
io boxs to replace the
hidden elements,and only one delete button is enough.
2006/10/26, Gallagher, Jim (RBoS ITD&S Dublin) <[EMAIL PROTECTED]>:
Hi
Apologies if this is a simple issue, but it's driving me insane.
In my web app (using Struts 1.1 on Java 1.4 & Websphere) I have a js
Thanks Chris for the response. I have fixed the bug. It works now the new
code looks like this:
" >
"Chris Pratt" <[EMAIL PROTECTED]>
11/08/2006 11:48 AM
Please respond to
"Struts Users Mailing List"
To
"Struts Users Mailing List"
cc
Subje
Regards,
> >
> > Jim
> >
> >
> > -Original Message-
> > From: Marcello Savino [mailto:[EMAIL PROTECTED]
> > Sent: 26 October 2006 11:32
> > To: Struts Users Mailing List
> > Subject:
value when the button is
> pressed.
>
> Thanks
>
>
>
> Regards,
>
> Jim
>
>
> -Original Message-
> From: Marcello Savino [mailto:[EMAIL PROTECTED]
> Sent: 26 October 2006 11:32
> To: Struts Users Mailing
Regards,
Jim
-Original Message-
From: Marcello Savino [mailto:[EMAIL PROTECTED]
Sent: 26 October 2006 11:32
To: Struts Users Mailing List
Subject: R: Issue: using logic:iterate to display rows and html:button to
distinguish one of them
*** WARNING : This message
hanks
Regards,
Jim
-Original Message-
From: Marcello Savino [mailto:[EMAIL PROTECTED]
Sent: 26 October 2006 11:32
To: Struts Users Mailing List
Subject: R: Issue: using logic:iterate to display rows and html:butt
s Mailing List'
Oggetto: RE: Issue: using logic:iterate to display rows and html:button to
distinguish one of them
Thanks for this - unfortunately I'm required to use a button, not a hyperlink.
Is it possible?
Regards,
uts Users Mailing List
Subject: R: Issue: using logic:iterate to display rows and html:button to
distinguish one of them
*** WARNING : This message originates from the Internet ***
Sorry i forgot something in my code
">Delete
HIH
Ciao, marcello
-Messaggio
Sorry i forgot something in my code
">Delete
HIH
Ciao, marcello
-Messaggio originale-
Da: Gallagher, Jim (RBoS ITD&S Dublin) [mailto:[EMAIL PROTECTED]
Inviato: giovedì 26 ottobre 2006 12.02
A: 'user@struts.apache.org'
Oggetto: Issue: using lo
Use a url instead:
Somethin like that:
HIH
Ciao, marcello
-Messaggio originale-
Da: Gallagher, Jim (RBoS ITD&S Dublin) [mailto:[EMAIL PROTECTED]
Inviato: giovedì 26 ottobre 2006 12.02
A: 'user@struts.apache.org'
Oggetto: Issue: using logic:iterate t
Hi
Apologies if this is a simple issue, but it's driving me insane.
In my web app (using Struts 1.1 on Java 1.4 & Websphere) I have a jsp that
is using logic:iterate to display a sequence of records.
On each row I have a "Delete" button, which should cause the object that r
ashmap.
> > How can I iterate over all the values using
> > logic:iterate.
> >
> > HashMap h1 = new HashMap();
> >
> > String id=1;
> > HashMap h2 = new HashMap();
> > h2.put(id,"123");
> > h2.put("key1","456"
I think you need instead of in the
inner tag. But please correct me if I'm wrong.
-Original Message-
From: Puneet Lakhina [mailto:[EMAIL PROTECTED]
Sent: Friday, October 13, 2006 1:58 PM
To: Struts Users Mailing List
Subject: Re: iterating of collection of HashMapsusing logic:it
On 10/13/06, Vinod Kumar <[EMAIL PROTECTED]> wrote:
Hi All,
I have hashmap with key/value but the value in this
hashmap is another hashmap.
How can I iterate over all the values using
logic:iterate.
HashMap h1 = new HashMap();
String id=1;
HashMap h2 = new HashMap();
h2.put(id,"12
ilto:[EMAIL PROTECTED]
> Sent: Fri 10/13/2006 6:29 AM
> To: user@struts.apache.org
> Subject: iterating of collection of HashMapsusing
> logic:iterate
>
>
>
> Hi All,
> I have hashmap with key/value but the value in this
> hashmap is another hashmap.
> How can I iterate
or
in the inner iterate have both name set to entry and property to value
From: Vinod Kumar [mailto:[EMAIL PROTECTED]
Sent: Fri 10/13/2006 6:29 AM
To: user@struts.apache.org
Subject: iterating of collection of HashMapsusing logic:iterate
Hi All,
I have hashmap
Fri 10/13/2006 6:29 AM
To: user@struts.apache.org
Subject: iterating of collection of HashMapsusing logic:iterate
Hi All,
I have hashmap with key/value but the value in this
hashmap is another hashmap.
How can I iterate over all the values using
logic:iterate.
HashMap h1 = new HashMap();
String
Hi All,
I have hashmap with key/value but the value in this
hashmap is another hashmap.
How can I iterate over all the values using
logic:iterate.
HashMap h1 = new HashMap();
String id=1;
HashMap h2 = new HashMap();
h2.put(id,"123");
h2.put("key1","456");
h2.put(&qu
I haven't actually tried this, but would something like this work?
${map['field2']}
You might need some 's in there depending on your JSP version, but
it's probably a start.
(*Chris*)
On 9/21/06, Venkata Phani Kumar <[EMAIL PROTECTED]> wrote:
Hi,
I have a Vector. Each HashMap holds two
Hih, Marcello
-Messaggio originale-
Da: Venkata Phani Kumar [mailto:[EMAIL PROTECTED]
Inviato: giovedì 21 settembre 2006 9.18
A: Struts Users Mailing List
Oggetto: iterating Vector of HashMap using Logic:iterate
Hi,
I have a Vector. Each HashMap holds two elements as key 'f
Hi,
I have a Vector. Each HashMap holds two elements as key 'field1' and
'filed2'.
Now in jsp page i have to iterate over above vector and have to construt one
combo box as below
field2
could any body help how to display as above using
Regards
Venkata Phanikumar. G
I figured it out and fixed my code.
The options tag is responsible for rendering the selected attribute.
I kind of thought the select tag doEndTag would parse the evaluated
tag body and set the right one as selected. I suppose not as
efficient if you did it that way.
Thanks,
Shawn
On 9/11/06,
I have a html-el:select in a logic loop and the values are not being
retained after submtitting the form and returning with a validation
action error.
The html-el:text fields values are being retained and they are in the
exact same object.
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 =
1 - 100 of 290 matches
Mail list logo