I've done all this. Still no luck.

Does anyone have any other suggestions. 

My problem again,

I have a Action class that initiallises a databaseaccess class.
The DBAccess class populates a Results Action form.

Now when I iterate in my JSP page over the properties in my Results
Form, I get "Results Not Found in Any Scope."

Note that, if I initialise a new Results() in my Action class before my
req.setAttribute("Results", result) line, it says "Collection Not Found"
as I have not populated it?

Please help.

Thanks 

Chirag

-----Original Message-----
From: Qasim Khawaja [mailto:[EMAIL PROTECTED] 
Sent: 15 August 2003 02:04
To: Struts Users Mailing List
Subject: Re: Dumbo Question


In your struts config file in the form-beans section there is a line 
associating a name to you ActionForm e.g

<form-bean name="loginForm" type="com.me.LoginForm">

Results.java should map to "type" in the line above.

the ActionForm should be in session scope with that name.

Q

Mehta, Chirag (IT) wrote:
> My code is:
> 
> <tr>
>  <logic:iterate name = "Results" property="ColumnNames"
id="columnName"
> 
>     <td><bean:write name="columnName"/></td>
>   </logic:iterate>
> </tr>
> 
> Results.java is the name of an ActionForm which has my collections as
> get and set properties.
> 
> This is created using an DataBaseConnect class which is initialised in
> my Action class.
> 
> Hope that helps.
> 
> Chirag
> 
> -----Original Message-----
> From: Adam Levine [mailto:[EMAIL PROTECTED] 
> Sent: 14 August 2003 16:01
> To: [EMAIL PROTECTED]
> Subject: Re: Dumbo Question
> 
> 
> How are you attempting to display and iterate?  code snippets help us
> find 
> out what's going on....
> 
> 
> 
> 
> From: "Mehta, Chirag (IT)" <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: Dumbo Question
> Date: Thu, 14 Aug 2003 15:58:48 +0100
> 
> Sorry, heres another newbie question.
> 
> I have a bean that stores collections of data that have been retrieved
> from a database.
> 
> When I try and logically iterate these collections on my JSP page, it
> says "Cannot find bean Results in any scope"
> 
> But my bean does exist and println its results on my tomcat window?
> 
> What am I doing wrong?
> 
> 
> Thanks
> 
> Chirag
> 
> 
> 
> 
> --
> NOTICE: If received in error, please destroy and notify sender.
Sender
> does 
> not waive confidentiality or privilege, and use is prohibited.
> 
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> --
> NOTICE: If received in error, please destroy and notify sender.
Sender does not waive confidentiality or privilege, and use is
prohibited.


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



--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.

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

Reply via email to