Rossen Stoyanchev
43c8c79815
SPR-6464 Add @FlashAttributes annotation and FlashStatus method argument
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4802 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-27 21:46:36 +00:00
Juergen Hoeller
35fab2c621
HtmlUtils properly escapes single quotes as well
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4800 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-27 21:22:04 +00:00
Juergen Hoeller
0fddd55818
HtmlUtils properly escapes single quotes as well
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4798 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-27 20:35:41 +00:00
Rossen Stoyanchev
037936c400
SPR-8561 Permit null values for simple controller method arguments types without annotations.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4791 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-26 12:36:01 +00:00
Juergen Hoeller
6063c3aa34
consistent update of HeaderValueHolder class
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4778 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-26 00:39:01 +00:00
Rossen Stoyanchev
5dd0f0d6f4
SPR-5628 Add HttpPutFormContentFilter in order to make form encoded data available via ServletRequest.getParameter*()
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4776 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-25 18:58:34 +00:00
Juergen Hoeller
a6a730d136
defensive checking that a provided class actually implements WebApplicationInitializer (SPR-8557); avoid early initialization of Commons Logging (using ServletContext logging instead)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4768 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-25 11:33:08 +00:00
Rossen Stoyanchev
f90400f2b6
SPR-8483 Add integration test for accessing multipart request parts with @RequestPart
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4757 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-21 16:24:33 +00:00
Juergen Hoeller
d3a7fdadb0
revised Servlet 3.0 based StandardServletMultipartResolver for correct param/file distinction; added multipart content type and headers access to MultipartRequest (dropping the previous header access solution on MultipartFile); MultipartFilter uses a Servlet 3.0 based StandardServletMultipartResolver by default
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4736 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-20 20:46:53 +00:00
Juergen Hoeller
fd1b8d6498
polishing
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4718 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-18 20:50:35 +00:00
Rossen Stoyanchev
f05fbf3ec2
SPR-8001 Recognize case when MultipartRequest is null and argument is of type MultipartFile and raise helpful exception.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4714 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-18 13:49:47 +00:00
Rossen Stoyanchev
89d7bf8dab
SPR-8532 Upgrade org.springframework.web.servlet to Servlet 3.0 (as provided dependency) and add support for javax.servlet.Part parameter
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4713 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-18 12:06:11 +00:00
Juergen Hoeller
0d2e99c4c1
revised package-level request and response classes
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4697 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-13 23:14:02 +00:00
Juergen Hoeller
df7a5c8d6f
ContextLoader and FrameworkServlet support "contextId" parameter for custom serialization id
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4659 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-03 22:36:42 +00:00
Juergen Hoeller
6e1eb42832
added "autoGrowNestedPaths" property to ConfigurableWebBindingInitializer
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4657 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-03 21:24:06 +00:00
Chris Beams
3be44b3f97
Move JNDI_PROPERTY_SOURCE_ENABLED_FLAG constant
...
Move JNDI_PROPERTY_SOURCE_ENABLED_FLAG from JndiPropertySource to
StandardServletEnvironment, as this is the only context in which the
constant makes sense.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4647 50f2f4bb-b051-0410-bef5-90022cba6387
2011-07-02 21:26:38 +00:00
Chris Beams
11ce13a5b4
Fix unnecessary casts in Servlet*PropertySource
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4644 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-30 22:34:08 +00:00
Chris Beams
39d8015752
Prevent NPE in SpringServletContainerInitializer
...
Issue: SPR-8496
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4639 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-29 17:33:07 +00:00
Rossen Stoyanchev
09197872e9
SPR-8447 Provide sufficient contextwherever possible when exceptions are raised in new @MVC classes.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4638 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-29 15:36:18 +00:00
Rossen Stoyanchev
538364c966
SPR-8483 Add support for @RequestPart annotated method parameters
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4637 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-28 19:22:33 +00:00
Juergen Hoeller
b0383f9080
fixed getHeaderNames signature
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4636 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-28 14:08:47 +00:00
Juergen Hoeller
30f9c3c937
added headers support to MultipartFile abstraction
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4635 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-27 23:02:13 +00:00
Rossen Stoyanchev
75d036f82e
SPR-8487 Ensure setters for argument resolvers and return value handlers replace the defaults completely.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4634 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-27 22:23:10 +00:00
Chris Beams
147e11341e
Polish WebApplicationInitializer Javadoc
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4623 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-25 03:49:54 +00:00
Rossen Stoyanchev
d6cb75f2de
SPR-7608 Add fallback mechanism for instantiating a model attribute from a path variable
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4621 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-24 17:18:53 +00:00
Rossen Stoyanchev
166ad38200
SPR-6909 Improve extension hooks in DefaultDataBinderFactory and subclasses.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4620 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-24 12:04:16 +00:00
Rossen Stoyanchev
f5d5007bd3
SPR-8476 Translate JsonMappingExceptions to HttpMessageNotReadableException (and thus response status code 400) consistent with JsonParseExceptions
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4617 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-23 13:17:18 +00:00
Rossen Stoyanchev
b521a6ac7c
SPR-8429 Add test cases for missing header, cookie, and pathvar values
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4616 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-23 12:47:54 +00:00
Chris Beams
02312e578a
Prefer / or /app/* over /main in servlet examples
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4562 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-16 22:42:50 +00:00
Arjen Poutsma
1c509c0be0
Fixing tests
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4536 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-14 13:16:45 +00:00
Arjen Poutsma
9f176b5f20
SPR-7911 - Better handling of 204 No Content in RestTemplate
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4535 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-14 10:37:49 +00:00
Sam Brannen
f3dc392fde
Fixed Eclipse classpath regarding Commons IO and Codec
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4512 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-11 19:26:38 +00:00
Juergen Hoeller
03adc3b632
shortened build properties "org.junit.version" to "junit.version" and "org.testng.version" to "testng.version"; reverted SLF4J version back to 1.5.3 (for Hibernate 3.3.1 compatibility)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4502 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-09 09:58:15 +00:00
Chris Beams
9374f72e41
Revert introduction of AnnotationConfigCapableAC
...
Per review with Juergen in light of SPR-8413, which will revisit the
overall structure of ACAC and ACWAC.
Issue: SPR-8365, SPR-8413
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4499 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-09 02:54:34 +00:00
Juergen Hoeller
80c86075f0
polishing
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4497 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-08 22:52:43 +00:00
Juergen Hoeller
c30b50471b
extended coverage of JSF 2.0 implicit attributes: "viewScope", "flash", "resource"
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4490 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-08 00:12:50 +00:00
Rossen Stoyanchev
031f0d52e5
SPR-7994 Add missing optional flag for Rome library in spring-web
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4479 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-07 15:01:35 +00:00
Arjen Poutsma
9e1d02da2b
SPR-7439 - JSON (jackson) @RequestBody marshalling throws awkward exception
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4474 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-06 10:33:04 +00:00
Chris Beams
991a5f9a3f
Polish WebApplicationInitializer Javadoc
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4471 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-06 08:30:36 +00:00
Rossen Stoyanchev
b585202eb8
SPR-6709 Update changelog and add one test
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4433 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-03 09:38:22 +00:00
Rossen Stoyanchev
0ecc885a24
Add ModelFactory test for HttpSessionRequiredException
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4432 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-03 09:38:16 +00:00
Chris Beams
a151da6a10
Polish WebApplicationInitializer Javadoc
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4391 50f2f4bb-b051-0410-bef5-90022cba6387
2011-05-31 06:42:36 +00:00
Chris Beams
886c89cf8b
Sort WebApplicationInitializers properly
...
Issue: SPR-7672
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4388 50f2f4bb-b051-0410-bef5-90022cba6387
2011-05-31 01:12:34 +00:00
Chris Beams
e6820ecebb
Introduce DelegatingFilterProxy constructors
...
Issue: SPR-7672
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4384 50f2f4bb-b051-0410-bef5-90022cba6387
2011-05-30 12:57:19 +00:00
Chris Beams
1bbb71c33e
Polish DelegatingFilterProxy Javadoc
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4383 50f2f4bb-b051-0410-bef5-90022cba6387
2011-05-30 12:56:32 +00:00
Chris Beams
bd3cfea19a
Introduce ContextLoader(Listener) constructors
...
Constructors have been added to both ContextLoader and
ContextLoaderListener to support instance-based programmatic
registration of listeners within ServletContainerInitializer
implementations in Servlet 3.0+ environments, and more particularly
when using Spring 3.1's WebApplicationInitializer SPI.
Issue: SPR-7672
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4382 50f2f4bb-b051-0410-bef5-90022cba6387
2011-05-30 12:56:01 +00:00
Chris Beams
c7a7618400
Improve ApplicationContextInitializer sorting
...
ContextLoader and FrameworkServlet now use
AnnotationAwareOrderComparator to support @Order usage; previously
supported only implementation of the Ordered interface.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4381 50f2f4bb-b051-0410-bef5-90022cba6387
2011-05-30 12:55:33 +00:00
Chris Beams
c28157344b
Update GenericWAC to implement ConfigurableWAC
...
GenericWebApplicationContext now implements
ConfigurableWebApplicationContext in order to be compatible with
Framework/DispatcherServlet and ContextLoader/Listener, especially with
regard to changes in SPR-7672 that allow for programmatic use of these
types within Servlet 3.0+ environments. For the first time, it's now
reasonable to imagine injecting a GWAC into DispatcherServlet; the most
robust way to accommodate this possibility is for GWAC to implement
CWAC.
The implementation is in name only, allowing for interchangable use of
GWAC anywhere, for example, an XWAC could otherwise go. Methods such
as setConfigLocation will throw UnsupportedOperationException if the
configLocation value actually contains text. Other methods are
implemented as no-ops or to throw UOE as appropriate.
Issue: SPR-7672
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4378 50f2f4bb-b051-0410-bef5-90022cba6387
2011-05-30 12:53:57 +00:00
Chris Beams
fa99401dff
Introduce Servlet 3.0 WebApplicationInitializer
...
WebApplicationInitializer provides a programmatic alternative to the
traditional WEB-INF/web.xml servlet container deployment descriptor
for Servlet API 3.0+ environments.
This is done by building atop the new ServletContainerInitializer
support in Servlet 3.0. See SpringServletContainerInitializer for
complete details. And see WebApplicationInitializer Javadoc for
typical usage examples.
Issue: SPR-7672
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4377 50f2f4bb-b051-0410-bef5-90022cba6387
2011-05-30 12:53:32 +00:00
Juergen Hoeller
208a097d48
updated IntelliJ dependency descriptors
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4368 50f2f4bb-b051-0410-bef5-90022cba6387
2011-05-29 20:43:52 +00:00