You can always do this manually...

    public String doExecute() throws Exception {
        this.item = DBMapper.findItem());
        ActionContext.getContext().getValueStack().push(item);
    }

Which would set the item onto the stack and its properties will be
available during view rendering.

Jason

> -----Original Message-----
> From: Toshitaka Agata [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 07, 2003 12:14 AM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] After executing the action, I want to 
> set the model in the stack.
> 
> 
> Push does the model to the stack as for 
> ModelDrivenInterceptor before executing the action. 
> Afterwards, the action is executed. The model is reflected in 
> the processing of the action and when the reference is 
> replaced (For instance, data is acquired from DB), the 
> content is not reflected in the stack. Rendering is done by 
> using the model object at the previous state of the 
> replacement in the view. I take out the model of the action 
> after executing the action, and it wants the function to do 
> push to the stack. 
> 
> Thanks,
> 
> Agata
> 
> #I'm sorry in English not read easily. 
> 
> public MyAction extends ActionSupport implements ModelDriven {
>       private Item item = new Item();
>       public Obuject getModel() { return this.item; }
> 
>       public String doExecute() throws Exception {
>               // change model object instance
>               this.item = DBMapper.findItem());
>       }
> }
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! BB is Broadband by Yahoo!
> http://bb.yahoo.co.jp/
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to