reset password
Author Message
Yuan-Yu
Posts: 21
Posted 15:53 Feb 05, 2015 |

Hello,

Is it possible to pass an object through form:option?

My code is "<form:option value="${runway}">${runway.name}</form:option>"

As you can see, I did set the value for it. However, it shows I did't get the runway in my Controller. How come?

Thank you for your answers.

Last edited by Yuan-Yu at 15:53 Feb 05, 2015.
cysun
Posts: 2935
Posted 16:11 Feb 05, 2015 |

Make sure you passed "runway" as a model from the controller to the view. Also read the documentation on how to use the <form:option> tag.