reset password
Author Message
p0941
Posts: 95
Posted 22:02 May 21, 2010 |

How can I pass a parameter, which is not related to the form object, to a formview?  Thanks 

cysun
Posts: 2935
Posted 22:17 May 21, 2010 |

I don't know what you mean by "passing a parameter to a formview".

In formBackingObject() you have access to the request object, so you can use request.setAttribute() to send any data (in addition to the command object) to the form through the request scope.

In onSubmit() you also have access to the request object, so you can use request.getParameter() to retrieve any parameters outside the command object.

p0941
Posts: 95
Posted 23:35 May 21, 2010 |

That's what I need, thank you.