Commit Graph

13 Commits

Author SHA1 Message Date
Sam Brannen
0860f3bb8c [SPR-6174] DataBinder now uses var-args to set allowed/disallowed/required fields. 2009-10-03 22:23:41 +00:00
Chris Beams
a9696c7282 RESOLVED - SPR-5523: Replace all 'package.html' artifacts with 'package-info.java'
* Applied patch submitted by Carlos Zuniga
2009-06-01 04:14:22 +00:00
Arjen Poutsma
c1ea5a3ab8 Fixing Petclinic 2009-02-25 14:32:51 +00:00
Chris Beams
3ddd08942c Polishing the new RESTful interface to the petclinic webapp (SPR-5487):
* Eliminated redundant 'clinic' servlet mapping (was: http://localhost:8080/petclinic/clinic/owners; now: http://localhost:8080/petclinic/owners)
* A parameterless GET for /owners now returns the list of all owners, rather than an error.
* /owners/form is now /owners/search (distinguishes the 'search form' resource from the 'edit owner form' resource)
* Eliminated any need for redirects, <welcome-file-list/>, and index.jsp. Deleted all of them.
* Updated /owners/{oid}/edit to submit using PUT instead of POST
* Updated URI for edit pet form from /owners/{oid}/pets/{pid} to /owners/{oid}/pets/{pid}/edit (the edit form is a distinct resource)
* Updated /owners/{oid}/pets/{pid}/edit to submit using PUT instead of POST

Changes unrelated to the web interface:

* Partitioned up JSPs into new owners, pets, and vets folders.
* Renamed those JSPs, e.g. ownerForm.jsp -> owners/form.jsp; findOwners.jsp -> owners/search.jsp; owners.jsp -> owners/list.jsp
* Updated various controllers to respect the changes to the URI templates, etc.
* Updated .classpath to include all necessary projects and libs to run the webapp successfully in WTP
* Updated JSP error checking rules to relax validation of fragments like header.jsp and footer.jsp
2009-02-14 09:11:14 +00:00
Arjen Poutsma
fae0110536 Added content negotiation and MarshallingView to petclinic 2009-02-06 15:54:57 +00:00
Arjen Poutsma
b96a7a7a8c SPR-5460: Add AtomView sample to PetClinic 2009-02-06 09:12:08 +00:00
Scott Andrews
7dcb3b5841 fixing broken unit test related to SPR-5429 2009-01-23 22:32:26 +00:00
Scott Andrews
16c9391069 SPR-5429 Update Pet Clinic to use HSQL as an embedded database
Created DbcpDataSourceFactory factory bean to create and populate a dbcp based connection pool.  The factory bean is based on EmbeddedDataSourceFactory from the JavaConfig version of Pet Clinic.  The new DbcpDataSourceFactory has been tested with HSQL in embedded and stand-alone modes.
2009-01-23 20:33:17 +00:00
Arjen Poutsma
fe31de529b SPR-5326: HibernateClinic in PetClinic sample should use constructor-injection instead of field injection 2009-01-21 22:13:00 +00:00
Chris Beams
986bb1995d Whitespace polishing: leading spaces->tabs; updated eclipse configuration to default to leading tabs for all bundles 2008-12-18 14:52:45 +00:00
Chris Beams
1f9e63af49 + Added necessary JPA dependencies to make Petclinic JUnit tests pass
+ Removed unused imports for @RequestParam
Note: While unit tests pass in eclipse, NoClassDefFound errors are still being thrown when tests are run from the command line.
2008-11-24 22:16:21 +00:00
Arjen Poutsma
1929f67f02 Petclinic is RESTful. 2008-11-20 23:42:20 +00:00
Arjen Poutsma
9d3cb3a47e Added petclinic sample 2008-11-20 13:50:01 +00:00