Search:

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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. You can use...

    You can use MockHttpServletResponse.getContentAsByteArray(). Be sure to use setOutputStreamAccessAllowed(..) to enable it.

    -dub
  2. Replies
    4
    Views
    6,614

    Looks like your trouble is the absolute path. If...

    Looks like your trouble is the absolute path. If you're using JSTL, you can use the really handy 'c:url' tag to make your paths relative to the servlet context:



    <c:url var="popupUrl"...
  3. Replies
    0
    Views
    692

    access scoped beans from PHP Bridge

    Good day-

    I'm afraid this won't be possible without alot of work but here goes...

    I'm using the PHP Bridge (sourceforge) product to integrate a 3rd-party PHP module into a SpringMVC-based...
  4. Replies
    7
    Views
    2,903

    I see that you already reported this on Jira,...

    I see that you already reported this on Jira, Tom-and that it has been fixed. I didn't find it at first and posted a duplicate there.
  5. Replies
    7
    Views
    2,903

    I have this exact same problem. Multiple around...

    I have this exact same problem. Multiple around advice on the same join point triggers it.



    I previously performed that procedure on all relevant modules to solve a different problem.



    I...
  6. Replies
    3
    Views
    4,630

    Funny I didn't think of that. It's been so long...

    Funny I didn't think of that. It's been so long since I've done any configuration that way that its not even in my toolbox anymore. :)

    Thanks.

    -dub
  7. Replies
    3
    Views
    4,630

    Configuring a Hibernate UserType

    Is there an easy way to inject dependencies from a container into a Hibernate UserType?

    The UserType in question depends on a factory for XML deserialization to a complex object. The cleanest way...
  8. I'm running into this now and it is causing some...

    I'm running into this now and it is causing some funky-looking JSP (thank goodness for tag files).

    For the current SpringMVC design, option 2 might be easiest to implement. Maybe add a path...
  9. Admittedly I am not an expert but I think the...

    Admittedly I am not an expert but I think the problem is that your bean property's formal type is a class. The proxied object cannot be cast to it because it is actually not an object of that class....
  10. Replies
    9
    Views
    1,413

    Very cool. I didn't notice the proxyInterfaces...

    Very cool. I didn't notice the proxyInterfaces property before. The app's in the can but I'll write a spike tonight just to make sure I understand how that property works and if I can make a proxy of...
  11. First off, your calling code will see a thrown...

    First off, your calling code will see a thrown exception even when a throws advice is used. If you don't throw a different exception from within the advice, your code will see the originally-thrown...
  12. Replies
    9
    Views
    1,413

    Here ya go... In the integration module, lots...

    Here ya go...

    In the integration module, lots of service definitions that follow
    this pattern:


    <bean
    id="project-service-target"
    class="eg.serviceimpl.ProjectServiceImpl"...
  13. Replies
    9
    Views
    1,413

    Actually, I take that back. I don't know if I'm...

    Actually, I take that back. I don't know if I'm proxying interfaces. My code only uses service interfaces but in the configuration, a target bean has to be specified. So, I guess the question is:...
  14. Replies
    9
    Views
    1,413

    Thanks Andreas, that's good to know. I only ever...

    Thanks Andreas, that's good to know. I only ever advise interfaces so I must not be enabling the JDK proxy lib in the configuration.

    I have to look it up in my notes but I think we decided that...
  15. Replies
    9
    Views
    1,413

    I was bugged with the stinkiness of my delegate...

    I was bugged with the stinkiness of my delegate solution so I started playing with the preInterceptors property of TransactionProxyFactoryBean.

    That is a good property...

    Most of my services...
  16. Replies
    9
    Views
    1,413

    I'm dealing with the same problem. It doesn't...

    I'm dealing with the same problem. It doesn't appear to be correct to advise a proxy since the proxy library creates final classes.

    In my case, I cannot easily unravel the existing proxied...
  17. Replies
    2
    Views
    778

    Actually, I think I answered it. I wrote some...

    Actually, I think I answered it. I wrote some code to more-deeply dump the exception. Nested in it is an illegal argument exception with the message

    Cannot subclass final class class $Proxy52
    ...
  18. Replies
    2
    Views
    778

    I just saw marcosurata's post and I think I am...

    I just saw marcosurata's post and I think I am asking a similar question.
  19. Replies
    2
    Views
    778

    Advising a proxied object

    My apologies if this is answered elsewhere but I can't find it.

    I want to know if it is legal in the framework to apply additional advice to an already-advised service.

    I know that I can apply...
  20. Replies
    6
    Views
    1,699

    I don't know. That seems like the most direct...

    I don't know. That seems like the most direct approach and would allow you to use the DWR servlet as-is--and keep your dependencies low. Filters are pretty easy to implement, especially if you don't...
  21. Replies
    8
    Views
    13,790

    I was just dealing with this, although it was...

    I was just dealing with this, although it was with the Jetty plugin for Maven rather than Tomcat. But the discussion on the Maven mailing list extended to Tomcat, too.

    If your problem is the same...
  22. Replies
    6
    Views
    1,699

    Sorry, I missed the DWR part. What about using...

    Sorry, I missed the DWR part. What about using ServletRequestDataBinder in a servlet filter? -dub
  23. Replies
    6
    Views
    1,699

    Simplest might be to extend your controllers from...

    Simplest might be to extend your controllers from BaseCommandController which does binding and validation without the form workflow.

    If that doesn't fit into your hierarchy, I think you can create...
  24. Replies
    9
    Views
    8,352

    Under JSP 2, it's trivial to create an EL...

    Under JSP 2, it's trivial to create an EL function to test for collection containment. I use referenceData to populate the model with all of the choices and a CustomCollectionEditor to bind the...
  25. Replies
    1
    Views
    720

    Here's a wrapper I'm now using to solve the...

    Here's a wrapper I'm now using to solve the problem. But is there a simpler way?



    public class HolisticErrorSupportWrapper implements Errors {

    private static final String...
Results 1 to 25 of 39
Page 1 of 2 1 2