I added a better messaging support to rundata (not just simple string). It allows you to associate messages with specific forms and form fields. Also I added a way to handle and report exceptions in a nicer form. I'm not sure about the implementation though... all comments welcome. Here are patches for rundata and rundatafactory. In addition you also need the following files: http://nemecec.one.lv/dev/FormMessage.java http://nemecec.one.lv/dev/FormMessages.java http://nemecec.one.lv/dev/SystemError.java Neeme Index: RunData.java =================================================================== RCS file: /products/cvs/turbine/turbine/src/java/org/apache/turbine/util/RunData.j ava,v retrieving revision 1.2 diff -r1.2 RunData.java 155c155,159 < --- > /** this is a dedicated message class where output messages from actions should go */ > private FormMessages messages = null; > /** this is a vector to hold critical system errors */ > private Vector errors = new Vector(); > 335a323,340 > Returns a FormMessages object where all the messages to the user > should be stored. > */ > public FormMessages getMessages() > { > if (this.messages == null) return null; > return this.messages; > } > /** > Returns an array of system errors > */ > public SystemError[] getSystemErrors() > { > SystemError[] result = new SystemError[errors.size()]; > errors.copyInto(result); > return result; > } > /** 553a559,572 > set the FormMessages object for the request. > */ > public void setMessages (FormMessages msgs) > { > this.messages = msgs; > } > /** > add critical system error. > */ > public void setSystemError (SystemError err) > { > this.errors.add( err ); > } > /** Index: RunDataFactory.java =================================================================== RCS file: /products/cvs/turbine/turbine/src/java/org/apache/turbine/util/RunDataFa ctory.java,v retrieving revision 1.1.1.1 diff -r1.1.1.1 RunDataFactory.java 123a124 > data.setMessages( new FormMessages() ); ------------------------------------------------------------ To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/> Problems?: [EMAIL PROTECTED]
