Re: Need help on logic:iterate

2002-01-31 Thread marco volpe

hi
you can go here:

http://jakarta.apache.org/struts/api-1.0/org/apache/struts/taglib/logic/pack
age-summary.html


- Original Message -
From: Sher_A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 31, 2002 3:36 PM
Subject: Need help on logic:iterate


 Can someone help me with this logic:iterate question? Thanks.

 Struts example command:
 logic:iterate id=subscription name=user
 property=subscriptions

 I read it as:
 user is the bean, user.subscriptions is a Collection
 (Vector or Array) in that bean, and each element in the Collection
 will be referenced as subscription.

 If that's correct, why am I getting this error:

 javax.servlet.ServletException: Cannot find bean jobRequest in scope
 null

 for the commands:

 logic:iterate id=jobRequest name=user property=schedule
 scope=session
   tdbean:write name=jobRequest property=name
 filter=true//td
 /logic:iterate

 Since there's no error on the iterate command, I assume that Struts did
find
 the bean user and the property schedule.
 Why then did it not find jobRequest? And why was Struts looking in scope
 null?
 Shouldn't the bean jobRequest be in the same scope as user?

 Appreciate any help.


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: examples of struts templates struts templates Vs Tiles

2002-01-30 Thread marco volpe

Hi Sriram,
I'm not quite sure, but you can try here
http://www.netstore.ch/mesi/strutsTutorial/index.html

bye

- Original Message -
From: Sriram Nookala [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 30, 2002 5:34 PM
Subject: examples of struts templates  struts templates Vs Tiles


 I'm looking for good examples of using struts templates for building a UI.
 I'm trying to figure out how to display the current tab as selected using
 templates, haven't found any example that helps me do that.
Also, is Tiles the recommended way of templating screens or should
Struts
 templates suffice?

 thanks,
 sriram


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]