PDA

View Full Version : [newbie] please put me on the proper design track


andre.michel
Jun 12th, 2007, 04:35 PM
Hi,

I'm pretty new to SPRING and - according to my boss - should be able to deploy this new web application he is dreaming of in about two weeks (counting the days backwards from today).

Seriously ... I am new, but so far everything seemed pretty straight to me and my companions. The samples did well and now we'd like to start developing this web application (s.a.) - and are unassertive about the architecture!

Imagine a simple jsp with two forms included (via jsp:include), one a search form, the other a content container that - if needed - will also display the search results. If you a enter a search term, the page is redirected to the searchResult-page - the results are shown in the first include, the search-include shows the corresponding search terms.

Pretty clear, I think ... and here starts our internal debate: what controllers, forms, etc. are needed ?

- is the SearchController able to redirect to a new page and still keep its bean in use for the new page (respectively the search-include) ? does it work with the setSuccessView ? first impression is no, causes an overflow error ...

- which way is the best to let the result-controller know about the search terms ?

- should we use a Controller for the whole page and then extend the controllers of the sub-forms ?

- and on, and on, ... (pretty vague, I know, we're still stumbling through the mist)

Please help me/us with just a short description of the architecture you would use to implement such a solution ... no code needed, just a short vision of the best practice you would choose. Links to tutorials, etc. are also welcomed - but please do not name the SPRING-samples ... they are different!

Thanks in advance for your help,

André

Jörg Heinicke
Jun 12th, 2007, 05:30 PM
This (http://forum.springframework.org/showthread.php?t=39989#3) might help you as well. I use one controller for handling the search form and displaying the result.

Jörg