I've done this sort of AJAX-y in the past...

You have 2 DIVs one that contains the form you want, then another DIV
that contains the data table. Then you create a Javascript global
variable that acts as a switch to indicate which div should be visible.
Then, instead of having your form post directly to the action, have it
run a javascript function that uses an async http request to your
action. Then, when the action is done, have the callback update the data
table div and make it visible while hiding the form.

It isn't that hard to hand-code, but I've heard good things about Dojo. 

-Wes

> -----Original Message-----
> From: Prakash Inuganti -X (pinugant - Digital-X, Inc. at 
> Cisco) [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 09, 2006 12:41 PM
> To: user@struts.apache.org
> Subject: Input and results on the same JSP
> 
> Hi,
> 
> I am trying to display entry and results on the same screen. 
> The idea is
> like this. I have a textarea where some values can be entered. On
> submitting this data, the same form refreshes displaying the data in a
> table. Can this be done? I create a bean with the values entered in
> textarea and use it to iterate and create table. Any pointers 
> out there
> for this use case? Would appreciate any help.
> 
> Thanks
> Prakash
> 
> 

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

  • RE: Input and ... Wesley Wannemacher

Reply via email to