Thanks, Mark! :]
Type: Posts; User: jamestastic; Keyword(s):
Thanks, Mark! :]
I think this kind of fine-grained access control should be possible with a custom AccessDecisionManager.
Ah, I see now. Thanks for the clarification. That does indeed sound tricky. I would need to dig into the source code to see how the @RequestMapping registry works and see if I could figure out a...
Here is a functional example which shows what I mean.
I've never used the container initialization script either. I'll tinker around with it and see if I can get it to do anything useful.
Maybe I misunderstood your use case. Here's an example of what I mean:
@Controller
public class MyController {
@Autowired
private MyObject myObject;
...
Is it feasible to use the workflow engine from Spring Web Flow without any of the Web-related infrastructure? Specifically, I want to consume Spring Web Flow from my code without having to touch any...
I like it! It's simple, clean, and repeatable. Thanks for posting.
I've seen documentation issues in the past, but I don't think it's wrong in this case. Does the documentation give an example of the problematic pointcut expression?
Thanks, I'm curious to see how you do it. It's one of the most common requests on the Spring JIRA, hence its inclusion into Spring 3.1.
Since the container manages the scope of the object (with a request-based ThreadLocal if I remember correctly), I don't see why it wouldn't work.
Would it not be as simple as creating a request...
Not knowing about the EC2 environment, that's a tough one. Maybe you could set some failsafe defaults, so when the dev-envrionment Tomcat properties are absent, your application will default to the...
There are many ways to do this, but none of them have been standardized quite yet (as of Spring 3.0). This is one of the highly anticipated features coming in Spring 3.1.
Have you considered request-scoped fields within your controllers? This way you could use the usual singleton controllers without recreating them on every request.
> java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
Looks like you're missing a dependency. Are you using Maven? If so, make sure you have the spring-web...
> How can I wrap an array that is being submitted from a form which is not bound to any model attribute.In my case array is just a request paramter.
If you simply declare the method parameter as a...
Can you post the entire stack trace?
Thanks for the clarification.
The reason you must add execution is due to Spring AOP's pointcut expression support. Spring AOP only supports a certain subset of the pointcut expressions supported...
This looks to be coming from ByteArrayHttpMessageConverter, whose supported media types includes application/octet-stream. RestTemplate iterates over the message converter's supported media types,...
Based on this thread, You might have to wrap your array as a model attribute.
Another approach would be to use:
@RequestParam(value=TIME_IDS, required=false) String time_ids
then call...
According to JIRA, there isn't yet a release date for milestone 2, let alone a release candidate or GA.
It's an SVN repository, not a CVS repository. You can install subversive or subclipse into STS from the STS Dashboard. I don't have STS in front of me now, but if you get stuck just holler and I'll...
1) @AfterReturning(pointcut="com.xyz.myapp.SystemArchitecture.dataAccessOperation()", returning="retVal")
2) @AfterReturning(pointcut="execution(* "com.xyz.myapp.service.*.*(..))",...
Likewise. :]
Another tip; if you're using SpringSource Tool Suite, when you edit a Spring XML file you'll see a tab at the bottom of the editor called Configure Namespaces. This lets you quickly...
Can you post the complete error/stack trace and your configuration?