Hi Guys,
sorry to jump in this thread.
I am trying to achieve this sort of AJAX functionality at Struts 1.2.x
level.
Is it possible? or Do I have to upgrade to Struts 2.x for AJAX support ?
Any good articles for this (preferrable Struts 1.2.x specific) ?
Appreciate your help in advance,
thanks,
robin
----- Original Message -----
From: "Prakash Inuganti -X (pinugant - Digital-X, Inc. at Cisco)"
<[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>;
<struts-user@jakarta.apache.org>
Sent: Thursday, November 09, 2006 3:36 PM
Subject: RE: RE: Input and results on the same JSP
Hi Brian,
I am trying to do exactly what you described here. Good to know it can
be done. I am reassured now in case I run into errors.
Thanks
Prakash
________________________________
From: Brian Holzer [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 09, 2006 3:32 PM
To: struts-user@jakarta.apache.org
Subject: Fwd: RE: Input and results on the same JSP
Hi there,
We do this all over the place with our app. What we do, is the form
that contains our query params (entered in your textarea) we also
include a Collection of your choice of the Objects you retrieve from the
db based on your query params. Then use your logic iterate tags to
display the results, so you have your form contain the input and the
results of your query.
Brian
"Wesley Wannemacher" <[EMAIL PROTECTED]> 09/11/2006 12:55:31
PM >>>
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
**********DISCLAIMER**********
This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you are not the named addressee, please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. If you are not the intended
recipient you are notified that using, disclosing, copying or
distributing the contents of this information is strictly prohibited.
**********DISCLAIMER**********
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]