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
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
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
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo