thankyou for your reply.

I did put results bean into request. The problem is:
it
even does not display search form now if I put results
display block after </html:form> since user has not
pressed "get" button. Here is my display code:

<table>
  <logic:iterate id=... name =... property>
   ......
  </logic:...>
</table> 

I only use bean:write tag to output individual table
data.

I also tried to put the above code inside html:form
tag,
and use logic:present to chech if results bean is
present. I still could not display search form and got
"null":

<logic:present name="resultsBean"
property="resultsBean" scope="session">
....
</logic:...>

According to api, if resultsBean is not present, it
should check non-null results, and let search form
dislay, right? 

dun know why it did not work......

--- "Nicholson, Robb"
<[EMAIL PROTECTED]> wrote:
> The logic:iterate tag does not have to live within a
> form. Chances are your
> error is because the Collection you are trying to
> iterate over is not in the
> request (or whatever session you happen to be
> using).
> 
> What we normally do for a situation like this is to
> create a JSP with the
> search form, and another with the results iterator.
> Then use TILES to pull
> them together on one page. It's flexible enough so
> you can reuse one or more
> component elsewhere, or change your mind and
> separate them later, etc.
> 
> -----Original Message-----
> From: mobile q [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 13, 2003 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: newbie question: results display on same
> page?
> 
> 
> Hi,
> 
> 
> I am working on a page which has a user search form,
> the results should be displayed at the bottom of the
> page once user clicks on "get" button. 
> 
> I try to use logic:iterate tag to do the job. My
> problem:
> if I include this display loop inside html:form, it
> tells me the results are null when I navigate to
> this
> page since user has not pushed "get" button. If I
> put
> results dipslay code right after </html:form>, it
> tells me "Cannot find bean
> org.apache.struts.taglib.html.BEAN in any scope"
> since
> logic:iterate tag is not used inside html:form tag.
> 
> I do not know how to resolve this conflict. Should I
> use multiple forms to do this? Not really sure.
> Really
> need your wise advices.    
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product
> search
> http://shopping.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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

Reply via email to