Christian,
Not exactly struts, but you can do this using the JSTL taglibs with the
varStatus attribute, like:
c:forEach items=${sessionScope.advertMultiEditForm.idsAsList}
var=thisid varStatus=stat
c:set var=bg value=white /
c:if test=${stat.index % 2 == 0}
this happens, however, the JSP
doesn't display the collections from the ActionForm, only single valued
fields.
Can anyone suggest what I'm doing wrong here?
thanks,
Graham
--
Graham Stark, Virtual Worlds
phone: (+044) 01908 618239 mobile: 07952 633185
Homepage http://www.virtual-worlds.biz
Virtual
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Graham Stark, Virtual Worlds
phone: (+044) 01908 618239 mobile: 07952 633185
Homepage http://www.virtual-worlds.biz
Virtual Learning Arcade http://www.bized.ac.uk/virtual/vla
Virtual Economy http
Quoting Kannan [EMAIL PROTECTED]:
Try:
logic:present role=admin
your button
/logic:present
or somesuch,
Graham
Hi,
What i have to do is,
1. I have some roles which have some Privileges(admninistrator...)
2. I have a jsp page has delete , view , update , ...buttons..
according
Quoting [EMAIL PROTECTED]:
My favorite Core Java book proposes the corejava.Day class (see
http://www.horstmann.com/corejava.html) which has
int daysBetween(Day b)
method. Tt calcurates the number of days between 2 dates, rather than
years. Do you want the number of years in fraction
, but it sounds like it could do what you
want without breaking MVC.
Hope this helps
Mark
On Saturday, August 9, 2003, at 01:33 PM, Graham Stark wrote:
Hi,
apologies if this is an obvious question, but I can't work it out.
If you're trying to configure a datasource in Struts 1.1
if there is any resource on it or if there is something
related to it.
Thanks in Advance
--Mohan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Graham Stark
, if I could only get it to
work.
I'd be grateful for any guidance anyone had on this.
thanks,
Graham
--
Graham Stark, Virtual Worlds
phone: (+044) 01908 618239 mobile: 07952 633185
Homepage http://www.virtual-worlds.biz
Virtual Learning Arcade http://www.bized.ac.uk/virtual/vla
Virtual Economy
8 matches
Mail list logo