[Actionframework-users] problem with the arrays
Status: Inactive
Brought to you by:
ptoman
From: <bm...@ho...> - 2002-10-07 14:57:22
|
hi. While trying to receive an array of Strings I become the following = errror: Conversion error occurred when handling action '/grabarGaleria' (field: = 'txtimg'): org.actionframework.ConversionException: Unexpected = exception; nested exception is: = java.lang.ArrayIndexOutOfBoundsException: -1 < 0 the action node at the config xml file looks so: <action name =3D "/grabarGaleria" method =3D "grabarGaleria(int = idGaleria, String publicacion, String seccion, String idVisor, String[] = txtimg)"> <on-return value =3D "void" show-url =3D "url"> <output-variable name =3D "url" value =3D = "editarGaleria?idGaleria=3D$idGaleria&publicacion=3D$publicacion&= seccion=3D$seccion&idVisor=3D$idVisor" /> </on-return> </action> and the java method: public void grabarGaleria(int idGaleria, String publicacion, String = seccion, String idVisor, String[] txtimg){ // anything to do by the moment } in the velocity template I have 3 textfields called 'txtimg' (the number = of the textfields should change but I have put a fix number just in = order to test it) Thx in advance |