I would highly recommend AJAX/JSON/jQuery, they are Javascript.

Question - 

Does your requirement state that the data should be server-call back
delay delivered?
Does your requirement expect the data to be pre-rendered and the DOM
updated real-time?

Either way, I would use jQuery to perform either of the tasks.  In the
case of the first, I would have jQuery do an AJAX call back to the
server, and upon success, iterate the JSON result and update the DOM
accordingly.  In the case of the later, I'd embed the data in hidden
DIVs and then upon the change event, I'd use jQuery to iterate over my
hidden DIVs and retrieve the embedded data and then update the DOM
similarly to that of the AJAX call.

> -----Original Message-----
> From: JavaNoobie87 [mailto:vivek...@enzentech.com]
> Sent: Monday, March 21, 2011 12:16 AM
> To: user@struts.apache.org
> Subject: Calling an action class through Javascript -Struts 2.
> 
> Hi All ,
> I'm trying to call an action class , On change of the values in a
> dropdown
> box in my jsp .I also have to pass a value to the action class to
> execute
> the method . Im trying to implement it only using Javascript as part
of
> our
> project requirements , and so using AJAX with JSON , dwr etc is ruled
> out .
> If anyone could provide pointers of its implementation using
Javascript
> it
> would be great.
> 
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/Calling-an-action-class-through-
> Javascript-Struts-2-tp4183166p4183166.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 



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

Reply via email to