Re: [Actionframework-users] parameter passing bug
Status: Inactive
Brought to you by:
ptoman
From: Armando R. <ar...@ho...> - 2003-04-15 15:49:09
|
Dear all, I'm sorry I made a mistake in my previous configuration: > Test.xml > -------- > <component name="Test" class="Test" persistence="application"> > <action name="/action" method="method (int parameter)"> > <input-variable name="parameter" value="-1" if="!$parameter"/> > <on-return value="*" show-template="test.vm"> > <output-variable name="parameter" value="$parameter"/> > </on-return> > </action> > </component> I wasn't checking the return value of 'method', but assigning it straight from the request value. The <on-return> statement should have read: <on-return value="*" assign-to="parameter" show-template="test.vm"/> Thus, changing 'int' to 'Integer' doesn't help as I mistakenly reported. With public class Test{ public Integer method(Integer parameter){ return parameter; } } 'method' will return 'null' if <input-variable> is present and the parameter sent. Best regards, Armando PD I forgot to mention that this doesn't happen with version 0.93c -- Armando Ramos http://www.hola.com |