You can use MockHttpServletResponse.getContentAsByteArray(). Be sure to use setOutputStreamAccessAllowed(..) to enable it.
-dub
Type: Posts; User: gdub; Keyword(s):
You can use MockHttpServletResponse.getContentAsByteArray(). Be sure to use setOutputStreamAccessAllowed(..) to enable it.
-dub
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"...
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...
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.
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...
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
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...
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...
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....
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...
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...
Here ya go...
In the integration module, lots of service definitions that follow
this pattern:
<bean
id="project-service-target"
class="eg.serviceimpl.ProjectServiceImpl"...
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:...
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...
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...
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...
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
...
I just saw marcosurata's post and I think I am asking a similar question.
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...
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...
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...
Sorry, I missed the DWR part. What about using ServletRequestDataBinder in a servlet filter? -dub
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...
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...
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...