Re: logic:iterate with changing row colors

2003-09-16 Thread graham . stark
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}

displaying collections after a validate() error

2003-08-31 Thread Graham Stark
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

Re: [OT] Image resizing servlet

2003-08-29 Thread Graham Stark
- 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

Re: struts and user Privileges

2003-08-29 Thread graham . stark
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

Re: [OT] A date utility? anyone, pls help

2003-08-26 Thread graham . stark
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

Re: Struts 1.1: what's the preferred way to use databases?

2003-08-14 Thread Graham Stark
, 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

Re: Urgent: generating PDF from form data

2003-08-14 Thread Graham Stark
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

Struts 1.1: what's the preferred way to use databases?

2003-08-09 Thread 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