RE: How to avoid validation if request was done by GET method?

2009-03-27 Thread Shannon, Andrew
We also have a pattern for many situations where we encapsulate our page-centric handling into a single action where for example a GET into the action sets up the page, and a POST to the same action for form handling but to a different method in the action. Our approach to avoid validation on the

RE: About File UploadSizeLimitExceededException

2009-03-27 Thread Shannon, Andrew
I can't remember where I found this information its been so long since we added the configuration. And now I'm not sure if its right. But I do recall that when we added the property to struts.xml for: that the value was a magic number. Again, I just don't recall why. We haven't hit the li

RE: file download problem in application server

2009-03-27 Thread Shannon, Andrew
Actually no. We intentionally did not make my class with the blob property a serializable class, mainly because blobs are not serializable (if I'm not mistaken) and if they are, there's no reason for us to store this particular object in serialized form (we're not clustering or putting this object

RE: file download problem in application server

2009-03-26 Thread Shannon, Andrew
I was half wrong. It was a quirk for runnnig in OC4J but the Blob was being mangled coming out of the data base (which I had previously ruled out, doh). Adding a property to the hibernate.properties file for: hibernate.jdbc.use_streams_for_binary=true fixed my problem. Otherwise file handling i

file download problem in application server

2009-03-25 Thread Shannon, Andrew
I posted this question on the OTN - OC4J list a second ago, but am hoping someone here might have some insight. "I have a web app running in an OC4J stand alone 10.1.3.3 and am having a problem with downloading files over http. Its a struts2 app whose file downloading impl is easy to use and st

RE: [S2] Using an existing velocity template within struts2?

2009-01-08 Thread Shannon, Andrew
If you're using Spring then you could wire up the following (we have it wired into the applicationContext-service.xml file): class org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader

RE: Advanced Struts 2 Validation Question...

2008-11-13 Thread Shannon, Andrew
I'd have to second that. Writing validation in java code that is. We've been creating a few different patterns to try and do this in an intelligent manner, especially where we might need to go to the database and get some data or rules or something. I think one of the biggest benefits about this

RE: Struts 2 perfromance among the worst???

2008-07-23 Thread Shannon, Andrew
Performance testing is part art and part science. While this study appears to have some had some credible effort put into it, I have seen how this kind of a study can get people really worked up. Yet for me there is still some vital information lacking from it that tells me the study is incomplet

RE: preparable vs modelDriven

2008-02-01 Thread Shannon, Andrew
I recently made use of model driven and preparable using some of the advice provided in Roughley's book, and got a clear picture of how these interceptors work from the forthcoming Manning book. Our situation required 2 different actions (one provides the form that posts to another that does the s

S2 Spring Bean DI to an i18n ListResourceBundle

2008-01-11 Thread Shannon, Andrew
I'd like to use a ListResourceBundle that pulls message information from the database. The pieces include (see below for code): 1. a service that gets messages from the database. 2. a ListResourceBundle 3. applicationContext-struts.xml configuration to inject my service into the resource bund

RE: Struts Type Conversion Problem

2007-11-02 Thread Shannon, Andrew
I also submitted an email yesterday related to type conversion and your observation below was very helpful. The fact that your case 2 doesn't work also describes my problem (submitted as "interceptor and converter cycle"). For now I guess I'll go with case 1 at the Action class level in order to

interceptor and converter cycle

2007-11-01 Thread Shannon, Andrew
We have a pojo with a birthDate property whose setter is going to parse the String value and throw an exception if it cannot be parsed. We are not using a date picker, the value must be typed in as a String. The ParametersInterceptor always picks up the Exception even though I've tried implemen