You can use the action to get data from server to display in the <div> thru JS.
e.g., in your jsp, user selects a dropdown element of country name,
then it will get the state/province names data to be displayed in the
<div>. You can invoke an action for the dropdown value-change event to
get the data back (such as return null in the action) , then you can
use ajax object api to catch the data for JS to display into <div>.
This is hand coding it. If you use an ajax enabled tag framework, you
don't need to code to this details -of course you may have to set
properties instead.

John Feng

On Thu, Dec 17, 2009 at 5:11 AM, Jim Collings <jlistn...@gmail.com> wrote:
> So I have two actions and one jsp.  The idea is that one is for the
> entire page and another is for putting into a <div> via a JavaScript
> method.
>
> Question:  How do I get items off of the value stack for use in JavaScript?
>
>
> Jim C.
>
> ---------------------------------------------------------------------
> 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