I agree with you that classpath: would be preferable over file: resource type. My app has no guarantee it will be deployed on a filesystem at all, and it certainly doesn't know what its filepath will...
Type: Posts; User: trav; Keyword(s):
I agree with you that classpath: would be preferable over file: resource type. My app has no guarantee it will be deployed on a filesystem at all, and it certainly doesn't know what its filepath will...
I have an XmlWebApplicationContext, and I'd like to give it a string that represents an absolute path to a ServletContextResource. It seems like all the necessary information is available, but the...
For one thing, source files in WEB-INF tend eventually to be a build nightmare. As the poster indicated. If someone knows the easy solution but has reasons not to use it, it isn't helpful for you to...
Good point.
I'm going for independence as well as portability. This application has to be sold to customers, and with IT departments the way they are right now, _any_ necessary configuration is a...
The fact that I'm trying to hack a JNDI class into a non-JNDI environment is also a giveaway. I've crawled through a lot of JOTM documentation and examples, and I have yet to find one that just lets...
This seems like a hack. One of Spring's primary strengths is that it does the resource management for you, so you don't have to tie your webapp specifically to one container (e.g. Tomcat), and you...
You seem to have better understood my intent now, but I must reiterate the "(not in MVC)" part of the title. As I understand it, having a "controllers Errors instance" means I'm part of a controller....
I think this is what I'm failing to convey:
I'm not just talking about making sure a field isn't blank. I'm talking about a request like buying an item in a store, where the request can be invalid...
Do you have AOP code for this example in mind, or could you point to an example? All I can think is that AOP would provide a looser coupling between the service method and its validation output, but...
If this is in the wrong forum, please point me to the right one.
I'm considering using Spring's validation framework at my service layer, instead of throwing exceptions. I like the idea because it...
Oh, I wasn't referring to that. There's enough confusion already about whether JSP is a form of expression or a particular kind of functionality. I also take for granted that in real life I would not...
Thanks for the response. I mean that the beans' state wasn't reset to the values they're supposed to be when the webapp starts up. For example, with:
context.xml:
<beans>
<bean id="count"...
Hi,
I'm throwing together a prototype of a webapp, where the Spring-managed beans start out with certain values. As a web user plays with the prototype, the values change. I need the web user to...