You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ajay Patil <ap...@vertex.co.in> on 2003/07/31 04:02:31 UTC

Re: Displaying is easy, capturing is not

Dear Rick,

I had implemented the JSP as follows:
The top part of JSP shows the search form.
The bottom part of JSP shows the results.

The <logic:present> tag is used to show the results
(the bottom part is not displayed if the Results bean is NULL)

Initially, Results bean is NULL and user will see only the top
part (Search form).

When the user clicks on Search, the Results bean gets initialized,
and the user sees both Search and Results.

When the user clicks on "Reset", the Results bean is set to NULL.
The bottom part will disappear because of the <logic:present> tag.

I had posted the code as an example yesterday. Please look in the
archives.

I hope that my above explanation is not ambigious.
Ajay

> Hi, guys:

> I have a list for user to select, when user select one
> item from the list, and hit search button, a results
> table will be displayed at the bottom half of the
> page. Now, if user selects another item from the list,
> I want to refresh the table (or page?) and make the
> results table disappear before user hit search button
> again. I have no idea to do this. Can anyone give some
> thoughts on this?

> regards,
> rick

----------------------------------------------------
Ajay Patil
Vertex Software Pvt. Ltd.
apatil@vertex.co.in
http://www.vertex.co.in
----------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org