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
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 (
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
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
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
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
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
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
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
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
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:
@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
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,
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
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:
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.
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
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
18 matches
Mail list logo