Re: logic:iterate question

2007-11-26 Thread Ingo Villnow
The class Book must have the getter-function getTitle() Minghui Yu schrieb: in Action: ... SetBook books=bdao.findAllBooks(); request.setAttribute(books, books); ... In JSP: logic:present name=books All Books:br/br/ logic:iterate id=book name=books bean:write

logic:iterate question

2007-11-25 Thread Minghui Yu
in Action: ... SetBook books=bdao.findAllBooks(); request.setAttribute(books, books); ... In JSP: logic:present name=books All Books:br/br/ logic:iterate id=book name=books bean:write name=book property=title /br/ /logic:iterate /logic:present -- The line (

Re: logic:iterate question

2007-11-25 Thread Fitzwilliam . Aaron
u sure the collection 'books' is not empty? On 11/26/07, Minghui Yu [EMAIL PROTECTED] wrote: in Action: ... SetBook books=bdao.findAllBooks(); request.setAttribute(books, books); ... In JSP: logic:present name=books All Books:br/br/ logic:iterate id=book name=books

Re: logic:iterate question

2007-11-25 Thread Minghui Yu
I tried code below, still the same error: logic:present name=books logic:notEmpty name=books logic:iterate id=book name=books indexId=cnt Next element is bean:write name=book property=title/ /logic:iterate /logic:notEmpty logic:empty name=books Database search does not

Re: logic:iterate question

2007-11-25 Thread Minghui Yu
I made this change , still does not work bean:define id=abook value=book/bean:define Next element is bean:write name=abook property=title/ 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

logic:iterate - Question

2007-08-09 Thread Mad Shop
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

Re: logic:iterate - Question

2007-08-09 Thread Leon Rosenberg
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 returns a

Re: logic:iterate - Question

2007-08-09 Thread Mad Shop
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 bean:write tags then it won't give any error!!! Leon Rosenberg [EMAIL PROTECTED] wrote: you seems to have problems with logging

Re: Basic Logic:iterate question

2006-05-11 Thread siva sajja
Logic iterate can be used only over a collection of elements. Check whether the property userRoles in the bean returned by LookUpConstants.SESSION_OBJECT is a collection. Also the property names used in bean:write(role) is different from the property name used in logic:iterate(userRoles) which I

RE: Basic Logic:iterate question

2006-05-11 Thread nageshkumar.siddu
Hi, If you are using logic equal , you should also use logic not equal. Regards, Nagesh -Original Message- From: siva sajja [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 12:08 PM To: Struts Users Mailing List Subject: Re: Basic Logic:iterate question Logic iterate can be used

Basic Logic:iterate question

2006-05-10 Thread josh t
Greetings everyone: Objective: Retrieve an object from the session that contains a Collection of String for userRoles. Iterate through userRoles, and if one of the roles equals SUPER include a href. So this is what I have, but doesn't seem to be correct:

RE: Basic Logic:iterate question

2006-05-10 Thread Patil, Sheetal
@struts.apache.org Subject: Basic Logic:iterate question Greetings everyone: Objective: Retrieve an object from the session that contains a Collection of String for userRoles. Iterate through userRoles, and if one of the roles equals SUPER include a href. So this is what I have

RE: Basic Logic:iterate question

2006-05-10 Thread josh t
Thanks. Does anyone know where I can get some good reference material on Struts Tags? Patil, Sheetal [EMAIL PROTECTED] wrote: Hi there As my best knowledge your And supports for either int or boolean -Original Message- From: josh t [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11,

re: Basic Logic:iterate question

2006-05-10 Thread Kyle Wu
why not use logic:match tag instead? josh t [EMAIL PROTECTED] wrote: Greetings everyone: Objective: Retrieve an object from the session that contains a Collection of String for userRoles. Iterate through userRoles, and if one of the roles equals SUPER include a href. So this

RE: Basic Logic:iterate question

2006-05-10 Thread David Evans
This may help: http://struts.apache.org/struts-action/struts-taglib/index.html You may also want to consider using the jstl tags. i think the struts logic tags may be depreciated in favor of jstl. the jstl tags to solve your problem are c:forEach and c:if and the documentation is here:

logic:iterate - question

2005-07-30 Thread peceka
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.

AW: logic:iterate - question

2005-07-30 Thread Leon Rosenberg
An: user@struts.apache.org Betreff: logic:iterate - question 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

logic:iterate Question

2005-03-23 Thread Mike Darretta
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