Try setting the following header values in the response:
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
Type: Posts; User: rpoetker; Keyword(s):
Try setting the following header values in the response:
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
Another possible approach is to implement a View class (probably extending org.springframework.web.servlet.view.AbstractView) and produce/write to response the XML in the render method.
You can...
Is your command object for your form like the class in the example in the reference doc (with the addition of your other attributes)?
The javadoc for the method setJobDetails in org.springframework.scheduling.quartz.SchedulerFactoryBean states that you do not have to set this in the scheduler if your trigger determines the job...
One option may be to refactor your config file into many config files and load only the appropriate config files into a particular environment. That way you would only be declaring beans that can be...
Do you have a spring:bind tag around the other input fields in the form?
When you return your ModelAndView instance from your controller, use the org.springframework.web.servlet.view.RedirectView class as the view.
return new ModelAndView(new...
In the springapp-servlet.xml, ensure that the bean id for the SpringappController (id="springappController") equals the value for the urlMapper property for hello.htm (<prop...
Looks like the exception is added to the ModelAndView object returned from the SimpleMappingExceptionResolver and should be accessible in your JSP using the key 'exception', unless you set a...
You probably want to start by posting your web.xml file.
Also, like mdeinum stated, you should be invoking a URL that will cause your form controller to be invoked first before your JSP is...
I think that your last post is pseudo-code, but just to make sure, you normally execute JSTL and EL on the server-side and javascript on the client-side (unless you are doing remote scripting which...
Looks like the spring tag is looking for your command class instance in the request and is not able to find it. Is spring able to instantiate your commandClass for your form?
Put some logging...
I'm not totally sure, but I would think that if you simply add your strings to a List and put the List into the returned reference data Map with a key of stringCollection, it would work. The tag...
I think this has to do with the isLenient method on the DateFormat class. This is set to true by default which uses heuristics to interpret inputs which will basically translate illegal numerical...
Take a look at the referenceData method in AbstractFormController.
For jtp51, that is stange that spring is not able to find the applicationContext.xml file if it is located in WEB-INF. Double check the exploded directory in webapps to ensure that the file is in...
What does your url mapping look like? Are you mapping the URL to monitorClaimForm?
Check out the following link that explains a few ways on how to create the BeanFactory in your code:
http://static.springframework.org/spring/docs/1.2.x/reference/beans.html#beans-factory
For...
Since article.descriptions is a Map, descr will be a Map.Entry (or in hibernate's case MapEntryProxy). This is the object returned when iterating over a Map. Therefore, you need to call either...
Hello,
Check out this library:
http://www.getahead.ltd.uk/dwr/
They have examples related to validation, and they have a specific example for integration with Spring.
I have not...
Not sure if this is the same problem, but take a look at this post:
http://article.gmane.org/gmane.comp.java.appfuse.user/8557
Looking at the stack trace, it looks like it's possible.
Tim,
I normally set up a mapping like the following for the spring dispatcher servlet:
<servlet-mapping>
<servlet-name>controller</servlet-name>
<url-pattern>*.htm</url-pattern>...
Tom,
I found this link that has a very similar stack trace:
http://www.mail-archive.com/commons-dev@jakarta.apache.org/msg60475.html
What do you have in your classpath? I have been using...
Kris,
I think this is what you are looking for: http://www.springframework.org/docs/reference/aop.html#aop-prog.
There is also a section in the spring ref doc on declaring type mappings in the JaxRpcPortProxyFactoryBean: http://static.springframework.org/spring/docs/1.1.5/reference/remoting.html#d0e10452