Search:

Type: Posts; User: chrismay; Keyword(s):

Search: Search took 0.01 seconds.

  1. setting beanName via NamespaceHandlerSupport

    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">
    ...
  2. Replies
    6
    Views
    1,978

    We do this in web.xml: ...

    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...
  3. Replies
    1
    Views
    632

    Non-lazy ResourceBundleViewResolver ?

    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...
  4. Replies
    5
    Views
    1,145

    I use the tomcat plugin, but I always mark my...

    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...
  5. Replies
    12
    Views
    1,883

    You can use request.getDateHeader() /...

    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...
  6. Replies
    2
    Views
    802

    JBoss classloaders; gotta love 'em ;-) JAR...

    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...
  7. Thread: Caching HTML

    by chrismay
    Replies
    3
    Views
    1,075

    http://www.opensymphony.com/oscache/wiki/JSP%20Tag...

    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...
  8. Thread: Caching HTML

    by chrismay
    Replies
    3
    Views
    1,075

    If what you want to do is cache the entire...

    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...
  9. Just a thought (and it's not really answering...

    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...
  10. Replies
    1
    Views
    5,174

    If you put the file under WEB-INF/classes then...

    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...
  11. > Anything entered into the URL in a browser is...

    > 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...
Results 1 to 11 of 11