Hi all,
I want to write an XML namespace for defining MVC controllers, so that instead of writing
<bean name="/some/url.html" id="myController" class="com.foo.GenericCommandController">
...
Type: Posts; User: chrismay; Keyword(s):
Hi all,
I want to write an XML namespace for defining MVC controllers, so that instead of writing
<bean name="/some/url.html" id="myController" class="com.foo.GenericCommandController">
...
We do this in web.xml:
<error-page>
<error-code>500</error-code>
<location>/error/500.htm</location>
</error-page>
and then this inside our {app}-servlet.xml
<bean...
Hi there,
I'm using ResourceBundleViewResolver as my ViewResolver in a spring MVC app. As far as I can see, this class waits until it receives the first request for a view resolution before...
I use the tomcat plugin, but I always mark my contexts as reloadable="false" to prevent them from re-deploying whenever a class gets changed (JSPs are still recompiled whenever they change). If I...
You can use request.getDateHeader() / response.setDateHeader() to avoid having to faff with TimeZones. Confusingly they take a long, not a Date, but the conversion is easy (theDate.getTime() / new...
JBoss classloaders; gotta love 'em ;-)
JAR files that are loaded from server/lib will use a different classloader to those loaded from server/deploy, which will use a different classloader again...
http://www.opensymphony.com/oscache/wiki/JSP%20Tags.html
Something like this:
<cache:cache time="1800" >
... some jsp content that's slow to render ...
</cache:cache>
but...
If what you want to do is cache the entire response, I'd go for something like squid (http://www.squid-cache.org) rather than do something within the application.
If you're not that worried about...
Just a thought (and it's not really answering your question): When the user sees this error message, what do you expect them to *do* about it? Presumably you're not expecting them to know the ID of...
If you put the file under WEB-INF/classes then you can classload it (i.e. this.getClass().getResourceAsStream('/myresources.xml') - just make sure that it's in the classpath for your unit tests and...
> Anything entered into the URL in a browser is sent as a post.
He means sent as a GET :-)
You could try and use the transactional token approach, but that's really designed to solve a...