?
Regards.
>-Original Message-
>From: albert kao
>Sent: Saturday, October 5, 2019 7:26 PM
>To: Struts Users Mailing List
>Subject: How to pass parameters to s:component inside s:iterator?
>
>How to pass parameters to s:component inside s:iterator?
>e.g. These simpil
How to pass parameters to s:component inside s:iterator?
e.g. These simpilied codes pass the parameter "John" to items.jsp.
However, the browser displays an empty string.
items.jsp:
/>
Hi Albert,
I found following at [1].
"Note: Any additional params supplied to the included page are not
accessible within the rendered page through the tag since
no valuestack will be created. You can, however, access them in a
servlet via the HttpServletRequest object or from a JSP page via a
s
This display properly:
I refactor to the following two files, which display nothing.
I have other codes in items.jsp which confirms that items.jsp is being used
in showitems.jsp.
Please help.
Thanks.
items.jsp:
showitems.jsp:
Hi John,
You have to use var instead of id in the s:iterator tag.
Antonios
On 19 November 2013 07:06, Lukasz Lenart wrote:
> Have you tried to use tag?
>
> 2013/11/19 john lee :
> >
> >
> > from the following output,
> >we can tell sell_price=3
Have you tried to use tag?
2013/11/19 john lee :
>
>
> from the following output,
>we can tell sell_price=36.97, display_price=1
>
> why
>none of test statement works ?
>
>
> please advise, thanks in advance
>
> john
>
>
>
> Class Part {
> float sell_price;
>
from the following output,
we can tell sell_price=36.97, display_price=1
why
none of test statement works ?
please advise, thanks in advance
john
Class Part {
float sell_price;
int display_price;
./*..get set here */
Act
2013/7/3 john lee :
> I use Lucas's suggestion, but still can not get value out
>
> please advise how to get list member of an class from stack.
>
> thanks in advance
>
> john
>
>
>
>
The problem can be with the name of property, try to rename it to
xrefTypeCo
Subject: Re: class has set member, how s:iterator to access it?
I use Lucas's suggestion, but still can not get value out
please advise how to get list member of an class from stack.
thanks in advance
john
From:
15 PM
Subject: class has set member, how s:iterator to access it?
i have an the following 2 class
Part is just parts itself
Partxref is the accesary(component) of part.
class Part {
String manufacture;
String pid;
private Set part
2013/6/29 john lee :
> but, i try to access partxref {component(subset) } of parts, failed.
>
>
>
>
>
>
>value="#partxref.xref_type_code"/>
>
>
>
i have an the following 2 class
Part is just parts itself
Partxref is the accesary(component) of part.
class Part {
String manufacture;
String pid;
private Set partxrefs=new HashSet();
/* set, get .here */
i have an the following 2 class
Part is just parts itself
Partxref is the accesary(component) of part.
class Part {
String manufacture;
String pid;
private Set partxrefs=new HashSet();
/* set, get .here */
: s:checkbox inside s:iterator in struts2.3.1.2
2012/9/24 Omar Ngarigari :
> Hello,
>
> I changed my JSP page as per the documentation recommendation:
>
>
>
>
>
>
And works ?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
"setAge" failed for object
From: Lukasz Lenart
To: Struts Users Mailing List ; Omar Ngarigari
Sent: Monday, September 24, 2012 12:50 AM
Subject: Re: s:checkbox inside s:iterator in struts2.3.1.2
2012/9/24 Omar Ngarigari :
> Hello,
>
> Please
2012/9/24 Omar Ngarigari :
> Hello,
>
> I changed my JSP page as per the documentation recommendation:
>
>
>
>
>
>
And works ?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
-
To unsubscribe, e-mail: user-un
Hello,
I changed my JSP page as per the documentation recommendation:
From: Lukasz Lenart
To: Struts Users Mailing List ; Omar Ngarigari
Sent: Monday, September 24, 2012 12:50 AM
Subject: Re: s:checkbox inside s:iterator in struts2.3.1.2
2012/9/24
2012/9/24 Omar Ngarigari :
> Hello,
>
> Please help, I am having problem that I cannot figure out how to solve it.
> The problem is as follow:
>
> 1. JSP page:
>
>
>
>
>
>
> 2. Action Class
> public class ExampleAction extends ActionSupport {
> private List myList = new ArrayList();
> private
Hello,
Please help, I am having problem that I cannot figure out how to solve it. The
problem is as follow:
1. JSP page:
2. Action Class
public class ExampleAction extends ActionSupport {
private List myList = new ArrayList();
private List stringList = new ArrayList();
private int age;
get
Burton Rhodes wrote:
fieldValue="%{notificationID}"
onclick="%{'javascript:markNotification('+#stat.index+');'}"/>
-Dale
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h.
Does %{#stat.index} not work?
On 4/12/10, lucas owen wrote:
> Hi Struts users:
>
> I'm wondering if it would be possible to pass status.index attribute of
> s:iterator to a javascript function.
> Something like this:
>
>
>
>
>
>
Hi Struts users:
I'm wondering if it would be possible to pass status.index attribute of
s:iterator to a javascript function.
Something like this:
Thanks in advance!
I have a problem of running the example:
http://www.vaannila.com/struts-2/struts-2-example/struts-2-iterator-tag-example1.html
JSP is:
Title Genre
true">oddeven">
View sources, only see:
Title
Genre
Codes under itera
Good morning,
I have a problem of running the example:
http://www.vaannila.com/struts-2/struts-2-example/struts-2-iterator-tag-example1.html
JSP is:
Title Genre
true">oddeven">
View sources, only see:
Title
Genre
Codes u
>
> Am 04.02.2009 16:04, schrieb Ignacio de Córdoba:
>>
>> Hi there,
>> I've checked struts2 docs and this forum and have found no inside syntax
>> for
>> s:iterator tag to do:
>>
>>
>> Examples in docs just show how to count from 1 to 5
With 2.1.8, you can use
...
But it still has a bug: see http://issues.apache.org/struts/browse/WW-3314
Regards
Volker
Am 04.02.2009 16:04, schrieb Ignacio de Córdoba:
Hi there,
I've checked struts2 docs and this forum and have found no inside syntax for
s:iterator tag to do:
Exa
Thanks a lot for reply. It works OK that way. I had to make a getter for the
Category objects as a List and maintain the setter for the categoryId
Integer array. It would be great if s:checkbox could also check when to
pre-check the checkbox in the same way as s:checkboxlist does (I think I
used s
you need to specify the "value" attribute, which is the one that will
make it checked or not, for example, assume "possibleValues" is the
list of possible values, and "selectedValues" is the list of currently
selected values, and both lists contain objects that have an int "id"
field (same type of
Hello,
I've browsed nabble, google, ... but can't find a simple example on how to
do something very simple.
I need to iterate through, let's say, a picture category list, showing each
category as a s:checkbox. The picture belongs to some of these categories
(and user can changed that, or course,
Rene Gielen wrote:
http://struts.apache.org/2.1.6/docs/tabular-inputs.html
In addition (it's on my infinite list of things I have no time for)
AFAIK if there are multiple parameters with the same name and a
collection property (like a List) they'll be marshalled into the list
automagically w
http://struts.apache.org/2.1.6/docs/tabular-inputs.html
cm132005 schrieb:
When the Edit is submitted, the aId passed in is actually a String of comma
separated aIds of all aVOs. The requirement is such that I need to use the
same for
When the Edit is submitted, the aId passed in is actually a String of comma
separated aIds of all aVOs. The requirement is such that I need to use the
same form instead of having a s:form tag within the iterator. How to submit
the correc
On Saturday 25 April 2009 10:20:43 am Bhaarat Sharma wrote:
> is there no way to overcome this drawback?
>
> do i have to change the way I am getting my results from the DB to suit the
> iterator tags drawback in this case?
You call it a drawback, I call it a feature... I don't know if I'd want to
is there no way to overcome this drawback?
do i have to change the way I am getting my results from the DB to suit the
iterator tags drawback in this case?
On Fri, Apr 24, 2009 at 5:25 PM, Bhaarat Sharma wrote:
> I have the following code in jsp scriplet
> <%
> ArrayList statist
I have the following code in jsp scriplet
<%
ArrayList statisticsList = something.getStatistics();
Iterator itr1 = statisticsList.iterator();
while (itr1.hasNext())
{
dvo3_a = (VerificationVO) itr1.next();
Hello all,
I have a list to iterate and according to a certain logic I want the
iteration to stop and break out of the iteration. Similar to the break in
java inside a loop. Any idea how I can achieve this?
Regards,
Ransika
My problem is as follow :
I iterate over a map of objects and theses objects contains a property that I
want to expose in a s:radio.
Like this : I got a map "myMap" with 2 properties :
- P1, the unique identifier of the object (P1 is also the key
value of the map)
My problem is as follow :
I iterate over a map of objects and theses objects contains a property that I
want to expose in a s:radio.
Like this : I got a map "myMap" with 2 properties :
- P1, the unique identifier of the object (P1 is also the key
value of the map)
>>>> // Can Edit Flag
>>>> rs.getString("canDeleteFlag"),
>>>> // Can Delete Flag
>>>>new Integer(rs.getInt("iformNo")),
yap you right
newton.dave wrote:
>
>
>
> Maybe try [0][n]?
>
> But yuck... That's a horribly brittle way to write code. At *least* use
> a map so you don't have to rely on positioning :/ Consider using an
> actual object, as well, thus eliminating the bulk of this question.
>
> Dave
>
quot;),
//filename
rs.getDate("ModifyOn"),
//file last modified on
rs.getString("UserDefineVersionId")
};
nodeInfo.addElement(rec
//file last modified on
rs.getString("UserDefineVersionId")
};
nodeInfo.addElement(record);
how can i get particular field at jsp side in s:iterator
somthing like
that
but i can not please help me
gt; rs.getString("Filename"),
>> //filename
>> rs.getDate("ModifyOn"),
>>
rs.getDate("ModifyOn"),
//file last modified on
rs.getString("UserDefineVersionId")
};
nodeInfo.addElement(reco
ilename"),
//filename
rs.getDate("ModifyOn"),
//file last modified on
rs.getString("UserDefineVersionId")
};
Great! Thanks a lot for this, it was needed.
Musachy Barroso wrote:
>
> Ok, here is the Jira ticket:
>
> https://issues.apache.org/struts/browse/WW-2984
>
> I committed the changes to the iterator tag, here is how it works: New
> attributes "begin", "end" and "step" were added. They can be us
an object in the page scope and
>> use EL where. Painful for something that should be straightforward.
>>
>> Well... sorry for the long text. Please don't take me wrong. Just love
>> struts2 and would love to forget about old technnologies. I wish I had time
>>
Martin Gainty wrote:
Where is the upside down question-mark key???
˙ɔɐɯ ǝɥʇ uo ¿-ʇɟıɥs-ʇdo ǝɥʇ s,ʇı
Dave
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.o
would love to forget about old technnologies. I wish I had time
> and knowledge to help on all this. Now I just can't.
>
>
> newton.dave wrote:
>>
>> Ignacio de Córdoba wrote:
>>> Hi there,
>>> I've checked struts2 docs and this forum and have fo
We have it standard in spanish keyboards close to the downside up one :-)
Wes Wannemacher wrote:
>
> On Wednesday 04 February 2009 23:05:06 Martin Gainty wrote:
>> Dave and Crew
>>
>> Where is the upside down question-mark key???
>>
>
> It's ALT-F4
>
> :)
>
> -Wes
>
> --
>
> Wes Wannemach
On Wednesday 04 February 2009 23:05:06 Martin Gainty wrote:
> Dave and Crew
>
> Where is the upside down question-mark key???
>
It's ALT-F4
:)
-Wes
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/
Sender does not
endorse distribution to any party other than intended recipient. Sender does
not necessarily endorse content contained within this transmission.
> Date: Wed, 4 Feb 2009 21:28:03 -0500
> From: newton.d...@yahoo.com
> To: user@struts.apache.org
> Subject: Re: s:ite
nd knowledge to help on all this. Now I just can't.
newton.dave wrote:
>
> Ignacio de Córdoba wrote:
>> Hi there,
>> I've checked struts2 docs and this forum and have found no inside syntax
>> for
>> s:iterator tag to do:
>>
>>
>> Examples i
Ignacio de Córdoba wrote:
Hi there,
I've checked struts2 docs and this forum and have found no inside syntax for
s:iterator tag to do:
Examples in docs just show how to count from 1 to 5 ¿? I'd like to avoid
counting and using indexed property to access an iterator. The last examp
Hi there,
I've checked struts2 docs and this forum and have found no inside syntax for
s:iterator tag to do:
Examples in docs just show how to count from 1 to 5 ¿? I'd like to avoid
counting and using indexed property to access an iterator. The last example
in docs doesnt seem to
Did you tested with 'not in' instead of '!'?
2008/8/5 netslow <[EMAIL PROTECTED]>:
>
> People, I'm really confused. I'm still haven't found any solution.
> Any ideas?
>
>
> netslow wrote:
>>
>> I hello experts. I'm quite new in struts2, and I have a question.
>> I have an action ShowReports which
People, I'm really confused. I'm still haven't found any solution.
Any ideas?
netslow wrote:
>
> I hello experts. I'm quite new in struts2, and I have a question.
> I have an action ShowReports which returns two lists of reports: reports
> and badReports.
> I would like to show these reports bu
I hello experts. I'm quite new in struts2, and I have a question.
I have an action ShowReports which returns two lists of reports: reports and
badReports.
I would like to show these reports bud I need also check if current report
belongs to badReports list, and if it does notify user about it. Wha
Ah.. I see.
Thank you.
Timothy Wonil Lee
Java Developer
http://timundergod.blogspot.com/
-Original Message-
From: Chris Pratt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 9 July 2008 4:58 PM
To: Struts Users Mailing List
Subject: Re: [S2] s:iterator tag - var or id
Unfortunately those
ure what
> the technical reason that prevents the documentation being versioned
> like the rest of the code, maybe one of the committers can explain.
> (*Chris*)
> On Tue, Jul 8, 2008 at 11:53 PM, Timothy Wonil Lee
> <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>&g
f the code, maybe one of the committers can explain.
(*Chris*)
On Tue, Jul 8, 2008 at 11:53 PM, Timothy Wonil Lee
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I was trying to use s:iterator tag, and when I looked at the documentation
> on http://struts.apache.org/2.0.11.2/docs/
Hi all,
I was trying to use s:iterator tag, and when I looked at the documentation
on http://struts.apache.org/2.0.11.2/docs/iterator.html
it says, attribute (parameter) 'id' is deprecated and 'var' should be used.
So I did:
However, my IDE complained about the attribute &
, and one I too am currently struggling with.
Skip Hollowell
Mano Dasanayaka-2 wrote:
Hi All,
I have a jsp where we list down some dynamic checkboxes.
for this we use s:checkbox tag inside a s:iterator ,
name="fullMarket" fieldValue="${entry.packageId}"
Hi All,
I have a jsp where we list down some dynamic checkboxes.
for this we use s:checkbox tag inside a s:iterator ,
in my action class I have a string[] named fullMarket and all the required
getters and setters are provided there. Everything happens successfully,
when we submit
book in good ol'
fashioned print form :).
-Original Message-
From: Rodrigo Pereira [mailto:[EMAIL PROTECTED]
Sent: 24 December 2007 02:18
To: Struts Users Mailing List
Subject: 3 columns s:iterator
Hi,
is there a simple nice way of displaying a list of objects in a 3 coluns
table? Is there any
Rodrigo Pereira 写道:
Hi,
is there a simple nice way of displaying a list of objects in a 3
coluns table? Is there any attribute I can use on s:iterator?
Right now I can only print one at a row or all in one row
Hi,
is there a simple nice way of displaying a list of objects in a 3
coluns table? Is there any attribute I can use on s:iterator?
Right now I can only print one at a row or all in one row
Dave Newton wrote:
--- Alex Funk <[EMAIL PROTECTED]> wrote:
Is this a bug or a feature?
"root" may refer to the root of the OGNL stack, but I
can't verify that at the moment. You could probably
test that theory, though.
Thanks for the reply, Dave.
Yes, returns the value stack. But I wonder
--- Alex Funk <[EMAIL PROTECTED]> wrote:
> Is this a bug or a feature?
"root" may refer to the root of the OGNL stack, but I
can't verify that at the moment. You could probably
test that theory, though.
d.
-
To unsubscribe, e-m
Hi,
after some debugging I found that I can't use any identifier starting
with 'root' as status in s:iterator. The following code in my jsp:
---
#stat.index =
#root.index =
#rootAtTheBeginOfI
I managed to make it work by acessing the ArrayList.iterator() method.
That is, I had to create another class member of the type Iterator,
create getters and setters for it, and the use that member in the
.jsp.
On 8/9/07, Marcos Mendonça <[EMAIL PROTECTED]> wrote:
> Yes, I did. ArrayList has somet
Yes, I did. ArrayList has something in it.
I managed to print it's size and log the file name, the one I'd like
to print with the JSP.
On 8/9/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Marcos Mendonça wrote:
> > I have an action that generates an ArrayList of the
> > files in a given direct
--- Marcos Mendonça wrote:
> I have an action that generates an ArrayList of the
> files in a given directory.
Do you know that it's generating a list with any files
in it (determine via logging for the most complete
information or put something else in the
loop as a quick sanity check)?
d.
Hello
I'm going crazy trying to use the s:iterator tag.
I have an action that generates an ArrayList of the files in a given directory.
In my JSP I'd like to show this files as a list.
Here's my action's code:
File dir = new File(props.getProperty("files.saveDir&q
I'm trying to generate a URL dynamically from a map of name, value pairs
using the s:url & s:iterator tags.
The code I tried looks like the following:
Struts2 seems to totally ignore the iterator tag inside the url tag and none
of the params in the map are added to th
--- "Hartrich, James CTR USTRANSCOM J6" wrote:
> Quick follow up to correct myself. This works:
>
Yeah, that ;)
d.
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel
and lay
--- "Hartrich, James CTR USTRANSCOM J6" wrote:
>
I'd probably try something like #row[#columnName] (or
maybe #row[(#columnName)] to force OGNL to eval
again); I'm doing something similar but I don't have
the example in front of me at the moment.
d.
___
20, 2007 9:17 AM
To: Struts Users Mailing List
Subject: nested s:iterator
How would one iterate a bean's collection "row" values by key
of bean's collection "columnName"? Here's what I have on the
jsp:
Neith
How would one iterate a bean's collection "row" values by key
of bean's collection "columnName"? Here's what I have on the
jsp:
Neither s:property shows any values. Can anyone throw me a bone here?
James
--
Hi.
The code:
On this rendered page i had a tag which format and display properties of
this object.
I retrieve those fields,properties in this way:
stack.findValue("field") where stack is a ValueStack object.
So i had an access to all fields of this object, but i want get the
object not
--- new2you <[EMAIL PROTECTED]> wrote:
> Is there ANYTHING I could be doing wrong that causes
> this behavior? Always hearing "S2 is thread-safe"...
(1) Once you're accessing non-local data, like
something from the application or session contexts,
it's no longer "autmagically" thread-safe, becaus
Hi!
I've got quite the strange problem, in particular with the "iterator"-tag
Outline:
I'm having a arraylist of objects in the session; accessing this list via
the iterator-tag; within the iterator, accessing some attributes of the
objects; the following happens: Sometimes, the list is not itera
When I try iterate using tag I get a
ConcurrentModificationException.
The flow of my application is: I insert an user and I notify a topic to list
all the users. It is in a memory stored List.
Does any one got this error or even know how to fix that?
Here is my code.
Now i understand better what struts 2 was doin, thanks !
Laurie Harper wrote:
>
> Making the getListOfBooks() method public is the way to go; then you can
> remove the setAttribute() stuff from your execute() method. Struts will
> make any public getter on your action available directly.
>
>
Making the getListOfBooks() method public is the way to go; then you can
remove the setAttribute() stuff from your execute() method. Struts will
make any public getter on your action available directly.
L.
walidito wrote:
Hi thanks a lot,
what you said about the private method is right. I don
From: cilquirm [mailto:[EMAIL PROTECTED]
> the problem for you is that since listOfBooks is not in the valuestack
> directly, you would have to reference it via the request object, like
> so
If your Action has a publicly-visible getListOfBooks method:
<%-- etc. --%>
Setting listOfBooks v
Hi thanks a lot,
what you said about the private method is right. I don't know if it is the
best solution, but it works well when I changed the method to public, so
thanks.
However, I' gonna try your last solution to see.
regards,
cilquirm wrote:
>
>
> scratch my original comment ( though the
scratch my original comment ( though the part regarding using the jstl is
still valid. )
the problem for you is that since listOfBooks is not in the valuestack
directly, you would have to reference it via the request object, like so
...
walidito wrote:
>
> Hi everybody.
> I have a problem
I don't know particularly about the s:iterator, but since you said you're
using JSP, you can access the model via the jstl tags just as easily :
${book.author}
though, looking at your code again, I suspect it's because your getter is
class private.
It would have to
Hi everybody.
I have a problem with displaying a list of objects that I extract from a
hibernate database. I' searching for the simpler and the better way to do it
please.
I have two issues :
I am not sure about how to send it to the jsp. For the moment I am trying
this one from my action :
priv
I have found a solution after lots of experiments.
I am still not sure what caused the problems (I tried tons of variants
in the JSP) but finally it started to work. No changes in the action
code, only in the JSP block.
It started to work after I added jstl into the game and dropped the
s:iterate
Hi,
I have such properties in my action:
private ArrayList extensionGroups = null;
private HashMap> groupedExtensions = null;
The 1st list contains only some 'Extension' elements.
The 2nd map contains other lists of extensions (values) with some
property (treeNo) from the parent used as the key
Hi,
s:iterator works over various collections; yesterday I had a need to do
a simple iteration using an S2-style scope param.
I did the s:set/c:forEach thing but I thought that was kind of ugly; any
likelihood that s:iterator will be expanded or there will be an s:loop
kinda thang?
Dave
The simplest thing is to expose the vproperty through the Action
class, and the tag will find it there automatically. That way the tag
doesn't need to know anything about scopes.
So, on the Action place a property that obtains the value from
application scope. The MailReader application does this
Im using the tag iterator to iterato over a list of objects in the user
session. Anyone knows hot to iterate over
a list in the application
day is:
sometingh like this
day is:
Regards
Juan.
95 matches
Mail list logo