That's one way to handle it.
But all I'm getting from the annotation is the request parameter mapping to method argument.
No way to map the exception to a view on a per controller level?
Type: Posts; User: dpfarr; Keyword(s):
That's one way to handle it.
But all I'm getting from the annotation is the request parameter mapping to method argument.
No way to map the exception to a view on a per controller level?
If I use the @RequestParam in an annotated method.
For example
@RequestMapping(method = RequestMethod.GET)
public String showSomething(@RequestParam("id") Integer id) {
...
}
I'm happy with what I've got, I'm moving to 2.5 soon anyway so no need. Thanks for array tip.
See you in the forums. :)
I'm still on 2.0.x.
That would save me using the helper class. But I would still have access an array. I will use your suggestion to decrease code clutter.
I would have thought if the form:select is attributed with...
The binding value from a form:select tag is a comma separated string, even if the form:select tag is configured to be multiple=false.
Binding from my form:select tag sets my form with a value like...
I found my error.
In the exception handler I was mapping to a webflow type view. That is, using the externalRedirect signal. But SimpleMappingExceptionResolver does not know what to make of...
I have serveral end states and they all do the same thing.
My flow executes an end-state with a externalRedirect and the back button is pressed. I get the following warning message.
No mapping...
This is my end state definition.
<end-state id="signIn" view="externalRedirect:/account/app/Login" />
I have an end-state with a view. Specifically a view that is an externalRedirect.
If the end-state occurs, and the externalRedirect is executed the page is show correctly. However, if the back...
In the springframework.scheduling.quartz.CronTriggerBean there are get/setCronExpression which takes a String. I would like to expose these via JMX so that the cron expression can be changed at...
I have a SimpleFormController. When I submit my form, the formBackingObject method is called before the onSubmit method. Why?
Have I wired something up wrong?
Is there anyway I can stop this...
That is what happens, that much is clear. I just wonder why the case matters.
But I'm using the Class Name Handler so I don't have create this type of direct mapping.
<bean
class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping" />
My Controller.
<bean name="myTestController" class="farr.web.controller.MyTestController">
<property name="formView" value="myTestView"></property>
<property name="successView"...
I'm setting a time zone preference.
My users can set a time zone preference for a clock. If the request does not have the time zone cookie, then I would like to set a default time zone in a...
I'm using the SimpleFormController. After the page is requested, and I perform my formBackingObject, I would like to add a cookie (with my Spring CookieGenerator of course.) However, addCookie...
How can I send a 400 or similar error code from a controller. It's return value is ModelAndView, or I have to throw an Exception.
I've lost the ability to do, for example,...
I've create a dynamic mbean and I export it with spring into Jboss
<bean id="exporter"
class="org.springframework.jmx.export.MBeanExporter"
lazy-init="false">
<property name="beans">
...
I'm using convertAndSend on my producer class to add a property to my message. But in my handleMessage method the Map only contains the message body and I cannot inspect my property.
What do I...