Re: When validation fails, how to add beans back to the value stack

2007-05-17 Thread Guillaume Carré
2007/5/18, Laurie Harper <[EMAIL PROTECTED]>: You could point your input result to the same action you use to populate the form in the first place. That way you can do the same data pre-fetching on validation failure as you do on first displaying the form. how do you point to the previous actio

Re: When validation fails, how to add beans back to the value stack

2007-05-17 Thread Laurie Harper
You could point your input result to the same action you use to populate the form in the first place. That way you can do the same data pre-fetching on validation failure as you do on first displaying the form. The other alternative would be to make sure all data you want to have available is

Re: When validation fails, how to add beans back to the value stack

2007-05-17 Thread Struts2 Fan
I forgot to mention something. I implemented Preparable interface. And in prepare method I can get the order.id from request. But I don't want to get the value from getRequest().getParameter("order.id") to create the bean and put it again on the value stack. I expect it to populate order bean agai

When validation fails, how to add beans back to the value stack

2007-05-17 Thread Struts2 Fan
Hi all, I have this problem since I started using struts 2 and I still cannot find the solution. Please help me. :) Note : I didn't write all the codes. I have a form. <%-- order is a property in orderItem bean--%> Here orderItem.quanti