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
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
Hi Joe,
You can try to output authorId, without property set on, maybe these
objects are empty inside.
Also, did You imported logic tags into jsp?
Best greetings,
Pawel Wielgus.
2009/3/10, Russo, Joe :
> The following bean:write code outputs:
> [com.cadmus.rpm.domain.custom.authorsc...@d08faa]
>
The following bean:write code outputs:
[com.cadmus.rpm.domain.custom.authorsc...@d08faa]
I am using a (allAdditionalAuthors) ArrayList to store AuthorsCDTO.
Should I be using another collection type?
Not sure why this is not working and would really appreciate any help.
-Original Message
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!
I would check out the LazyActionForm for this which was added to Struts
1.2.6 and upwards in classic Struts.
http://www.niallp.pwp.blueyonder.co.uk/lazyactionform.html
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Oliver Thoms <[EMAIL PROTECTED]>
> Reply-To
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:
>
Thanks Leon,
We are using log4j for logging. Existing project is working fine and I added
the following block for new requirement. when I remove tags then
it won't give any error!!!
Leon Rosenberg <[EMAIL PROTECTED]> wrote:
you seems to have problems with logging configuration.
appare
you seems to have problems with logging configuration.
apparently your weblogic server isn't properly configured which log to
use with commons-logging adaptor.
On 8/9/07, Mad Shop <[EMAIL PROTECTED]> wrote:
> I have following scenario.
>
>I have getExSummary() method in exForm which return
Hello Chad, hello Yoge,
thanks for your hints!
meanwhile, I could find a third solution:
Another solution should be to use EL:
But this solution doesn't work for me (the string ${object.rows} appears
unchanged after rows=) , though I'm using tomcat 5.5 and struts 1.2.9..
May be,
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 object,
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,
which has bee
*
- 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
fileType
fileM
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 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 the detele button.but i
Hi,
As I understood what you have to do is,
Iterate through your list and add checkboxes as folllwing...
")" />
Regards,
Mano
-Original Message-
From: Kranti Parisa [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 2:07 PM
To: Struts Users Mailing List
Subject: logic
Use the name and property attributes in your iterate tag, where "name" is
the name of your DTO and "property" is the name of the Map within the DTO.
You can have a look at the docs here:
http://struts.apache.org/struts-doc-1.2.7/userGuide/struts-logic.html
On 6/2/06, Marco Mistroni <[EMAIL PROT
Using Struts-EL in JSP 1.2 container or JSTL expressions in JSP 2.0
container seems to be the simplest solution to me.
...
I have session-scoped ActionForm and store parameters in it.
Michael
On 3/22/06, Yariel Ramos Moreno <[EMAIL PROTECTED]> wrote:
> How can I set the offset and length
I think there is an even easier solution.
Code below...
Java (the Array)
import java.util.ArrayList;
import org.apache.commons.beanutils.LazyDynaBean;
public class MyLazyArray extends ArrayList {
private Class persistentClass;
public MyLazyArray(){
t
Try the indexed="true" property. I think that should do the trick.
On 11/3/05, Bijay Sahoo <[EMAIL PROTECTED]> wrote:
>
> Hi All,
> I am new to struts,and have a problem and want some suggestion,my problem
> is
> :
> I get some questions from database (Dont know how many) may be 10,11,20...
> an
If the page is loading without errors but not rendering those tags, the
most likely cause is missing taglib directives. Check the HTML source
that gets generated to see if the tags are coming through as written in
the JSP; if so, that's almost certainly what's wrong.
L.
Stephen Souness wrote:
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 object
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 usin
Example:
DataBean:
public class EmployeeBean(){
private String name = null;
Private String dept = null;
... Getters and setters
}
FormBean:
public class EmployeeForm extends ActionForm{
private Collection employees = new ArrayList();
... Getters and Setter
a naming scheme within the data structure of
struts or can I call it whatever?
Thanks much for your help, btw.
-Original Message-
From: Johnson, Kaerstin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 02, 2005 10:07 AM
To: Struts Users Mailing List
Subject: RE: logic:iterate tag and form b
Ok, If I am understanding the question correctly, you should be
populating your array list in your bean with a objects of whatever
represents a table row (such as an employee object), this object should
have the attributes (name, id, address) you would like to render in the
columns.
Each object
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 /
]
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
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.
See http://wiki.wendysmoak.com/cgi-bin/wiki.pl?J
27;m not
sure how I can format this in the way that only the values are seen.
Does anyone have any pointers?
Thanks,
PS
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 6:42 PM
To: Struts Users Mailing List
Subject: Re: logic:iterate multiple c
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 w
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 t
> 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 fo
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, Luc
>From http://struts.apache.org/userGuide/struts-logic.html#iterate:
collection: A runtime expression that evaluates to a collection
<%=Globales.AreaPersonal.MODULOS_KEY%> probably evaluates to a String.
What you need is
name='<%=Globales.AreaPersonal.MODULOS_KEY%>'
On 4/21/05, Lucas Bern <[EMA
Hmm I didn't even notice that.
However, this is the section of code that throws that Exception (from
1.2.4 src):
/**
* Construct an iterator for the specified collection, and begin
* looping through the body once per element.
*
* @exception JspException if a JSP exception has o
Looks like you are trying to iterate over string.
How about this:
Michael.
On 4/21/05, Lucas Bern <[EMAIL PROTECTED]> wrote:
>
> Hi all...
>
> I get this exception trying to render options with logic iterate tag...
>
> javax.servlet.jsp.JspException: Cannot create iterator for this collecti
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 W
I think your List reference is probably null.
Also, have you looked at html:options and html:optionsCollection?
Erik
Lucas Bern wrote:
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 act
Also, the items attribute should be enclosed in ${} as:
-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
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 a
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 on networ
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
elps,
Erik
Vijay Vishvas Dharap wrote:
Can you tell how to use EL code.
Am kind of newbie to Struts and and not much aware of EL tags.
But my containier is only JSP 1.2
Also I am using struts 1.1
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 16, 2004
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.
>
> No
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 the contents of the list using
logic.iterate tags.
I will make mat
Oops -- my bad -- the JSP comments are balanced <%-- --%>
Bill Siggelkow wrote:
It is not the size of the collection you are having the problem with but
more likely it is data-related. Make sure you view the source that gets
generated -- that will usually clue you into the offending data.
Hmm --
It is not the size of the collection you are having the problem with but
more likely it is data-related. Make sure you view the source that gets
generated -- that will usually clue you into the offending data.
Hmm -- I noticed that you are using HTML comments around some
of your tags.
Keep in
At 05:24 AM 7/13/2004, you wrote:
This is the page code:
<%@ include file="/common/taglibs.jsp"%>
As you can see, this is not enough info. You might want to substitute
escape characters for the html?
-
To unsubscribe, e-mail:
only a quick hint.
did you look into displaytags ?
-->http://displaytag.sourceforge.net/
i usem them for iterating. since they create HTML as well
hope it helps (abit...)
> -Original Message-
> From: Trygve Hardersen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 13, 2004 2:25 PM
>
Assuming you have a scoped Collection named "pageRecords":
Struts tags:
JSTL:
robert
> -Original Message-
> From: Eddie Yan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 23, 2004 12:06 PM
> To: [EMAIL PROTECTED]
> Subject: Logic:Iterate Problem
>
>
> Hi guys,
>
> Say I
You can do it through bean:define or jsp:usebean custom tags
Thanks,
Satish
-Original Message-
From: Srilatha Ravuri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 09, 2004 7:33 PM
To: [EMAIL PROTECTED]
Subject: Logic:iterate property
Hi all,
I have a question about the logic:iterate
Thanks a lot for the reply. I could solve the problem
Thanks
Srilatha
>>> [EMAIL PROTECTED] 06/09/04 12:39PM >>>
Srilatha,
By placing the 'list' in the session you can access it by name ... the
Struts tags search the JSP scopes (page->request->session->application)
if the scope is not explici
Srilatha,
By placing the 'list' in the session you can access it by name ... the
Struts tags search the JSP scopes (page->request->session->application)
if the scope is not explicitly specified ... the following link for the
'bean' taglib has a lot of info about how the 'name' and 'property'
at
thanks for the reality check rick
"Rick Reumann" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> pls wrote:
>
> > found out that in tomcat 4.1, el can ONLY be used inside of the jstl
tags.
> > downloading tomcat 5 right now..
>
> Not sure what you mean by the above, but there are str
pls wrote:
found out that in tomcat 4.1, el can ONLY be used inside of the jstl tags.
downloading tomcat 5 right now..
Not sure what you mean by the above, but there are struts-el tags as
well, which work with Tomcat4.x.
--
Rick
Logic:iterate
< bean : write name="navigationPage" property="title" />
- Original Message -
From: Naresh Sharma
To: Struts Users Mailing List
Sent: Tuesday, June 08, 2004 1:39 PM
Subject: Logic:iterate
Hi,
I am setting a bean from my action class, this bean class has
I am doing this from memory but I think it is right ...
Let' suppose that the HashMap is exposed on the bean by the method
Map getFooMap() {...}
then you can use on your JSP:
Key:
Value:
Bill Siggelkow
Naresh Sharma wrote:
Hi,
I am setting a bean from my action class, this bean class has one
h
found out that in tomcat 4.1, el can ONLY be used inside of the jstl tags.
downloading tomcat 5 right now..
"pls" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 'bean1' is a bean created by logic:iterate and contains 'myHashMap'.
>
> I am trying to access the 'key' property of the b
If your form is "session" scoped then the collection of beans will exist
when your form is submitted back. For request scope, which I presume you are
using, then you will need to generate your collection of beans. Theres been
quite a bit of discussion on this list about how to do this - with a numb
:-) No :-)
plz look at my first message (first msg in this thread).
When writing the second message I was a little bit frustrated that no one
had answered yet!
Thx in advance
Lachdanan
"Daniel Henrique Alves Lima" <[EMAIL PROTECTED]> schrieb im
Newsbeitrag news:[EMAIL PROTECTED]
> What *exactly*
What *exactly* is your question ? Is only the subject of your e-mail ?
Lachdanan wrote:
Did I forget the ??? in the subject line so that no one answers?
Lachdanan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
Did I forget the ??? in the subject line so that no one answers?
Lachdanan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Users Mailing List'
Subject: RE: Logic:iterate with html:text indexed properties
I don't follow you...
I am using nested beans and they aren't getting values set on them. The path
being used in the call to BeanUtils.populate doesn't have the required
prefix and this is becau
rom: Takhar, Sandeep [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 5:35 AM
To: Struts Users Mailing List
Subject: RE: Logic:iterate with html:text indexed properties
You can manually create the property or use nested beans.
sandeep
-Original Message-
From: Scherger, Derek [mai
You can manually create the property or use nested beans.
sandeep
-Original Message-
From: Scherger, Derek [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 5:33 PM
To: '[EMAIL PROTECTED]'
Subject: Logic:iterate with html:text indexed properties
I'm having a bit of a problem wit
I believe you just treat it as with any other collection:
Daniel.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Lachdanan
Sent: 06 April 2004 00:29
To: [EMAIL PROTECTED]
Subject: logic:iterate over an array of Strings
Hello, could anyone help me? I want to iterat
79 matches
Mail list logo