Originally posted by Bear Bibeault:
The inability to directly accesss constant values is about the only thing I miss after going completely sciptless. But the other benefits I reap vastly outweigh that disadvantage.
Originally posted by Jim Yingst:
And of course with J2SE 5.0, you can use the enhanced for:
Originally posted by Bear Bibeault:
What is it you are trying to do with said constant in the JSP page? You will not be able to reference it with the EL.
Originally posted by Eric Pascarello:
You have to handle it on the server than. No other option. Look to see what button was clicked in the form submission.
Eric
Originally posted by Lasse Koskela:
...and then you could test the Plugin delegate class in isolation of the SAX handler, the actual XML document contents, and the ApplicationContext since you would be in a position to pass mock implementations of them to the delegate's init() method.
Just a thought. Might not be worth the effort.
Originally posted by Lasse Koskela:
I suppose that depends on what kind of an interface do these Struts plugins have?.
Originally posted by Lasse Koskela:
Yes, you can indeed test a SAX handler with JUnit -- just create an instance of the handler and start calling the SAX event methods (and then, after you're done, verify somehow that the handler did what it's expected to do).