Comments on: Spring MVC – move over Struts? Day two of the Spring Workshop Friends of Oracle and Java Thu, 18 May 2017 20:16:59 +0000 hourly 1 By: Vamsi Krishna Wed, 11 Jan 2006 09:26:21 +0000 /?p=608#comment-2171 Hi All,

I am working on Spring Framework, This thread is much helpful to me. Very nice discussion.
Thanks you

By: Le Thanh Nhat Nam Thu, 06 Oct 2005 06:41:09 +0000 /?p=608#comment-2170 hi, every body ! now i do not know how to use ajax with struts(with struts-html.tld,struts-bean.tld…)and when i write out.print(“…”); so the browser do not understand how and it can not translate to

tag HTMl. How can i do ?

By: Cw Thu, 07 Jul 2005 05:33:09 +0000 /?p=608#comment-2169 mohammad,
I personally like spring’s view support more than struts.

If you have tried to deliever anything respectable
using stuts, you would have found your self doing things in a funny way or trying
some unnatural method to get it to work with struts.

The problem being struts taglib works by html generation. Thus you are limited by
the way struts generates the html code. especially if you want to generate html yourself,
you find that you can’t, because you are using a struts tag that generates it for you and
if you don’t use it, you have to write the binding yourself which is ugly or find some other
way to do it with the struts tag and don’t generate code yourself.

in spring, the concept is that spring provides taglib to bind your object without generating html for you.
In spring you still write your own html tags, thus you still have complete flexibility
(well, almost…just a few issues…too detailed to discuss here, but much more flexible than struts).

For all the power of struts convinience tags, there’s currently nothing I can’t find in JSTL…

spring’s spring:message tag is also quite neat and more powerful then struts. it allows you to display
a property message or scoped variable or static text and you can do html escaping and Javascript escaping.
real neat.

I would say spring is heading the right direction, althought because its still new, some convinience methods
are still lacking and some issues need to be ironed out.

By: Amar Mon, 20 Jun 2005 10:25:52 +0000 /?p=608#comment-2168 Hai in your Jasper Example is realy super.But i want the supreport
using jasper Reports, please use the above example Master is Department Table
child is the Emp Table , please give the clear detail step by step. thanking you

By: mohammad Fri, 17 Jun 2005 08:16:59 +0000 /?p=608#comment-2167 hi !!!

im very interested to use spring mvc framework. but it seems its more poor in view.
i cant find usefull tag library in its view (something like struts html tag libarary)

and a question :

can i use AJAX with spring mvc framework ?

By: kurisu Mon, 13 Jun 2005 01:50:15 +0000 /?p=608#comment-2166 Still written ‘Professional Struts Development’ in your article !
“Professional Java Development with the Spring Framework” has already been on my wish-list for a while. Looking forward to reading it.

By: Alef Arendsen Sun, 12 Jun 2005 18:25:42 +0000 /?p=608#comment-2165 Hi,

Spring does not ‘natively’ support chaining, at least not in the way Lucas indicated where different controllers build up a ModelAndView to render. There are possibilities to chain controllers by for example using the forward: or redirect: prefix to the View name. This results in either a forward being issued (resulting in an additional request) or a redirect.

Using the former, data bound in the ModelAndView will be available in the request (as attributes not in the ModelAndView anymore) and you can start creating a new ModelAndView. When using redirects, the model attributes will be added to the request at request parameters (not attributes) and a new request will be issued by the client. This is less than perfect when you need full-fledged objects in the model in your second controller.

I’m thinking about / working on a more elegant approach to controller chaining and I hope to provide something for 1.4 or possibly 1.4.

Alef Arendsen

By: Lucas Fri, 10 Jun 2005 19:13:39 +0000 /?p=608#comment-2164 Of course I meant Professional Spring Development. I have changed the article accordingly.

By: null Thu, 09 Jun 2005 18:11:03 +0000 /?p=608#comment-2163 So what are the various approaches to chaining?

By: roland Thu, 09 Jun 2005 06:01:07 +0000 /?p=608#comment-2162

Alef discussed the production process of the new Professional Struts Development book

Wow, they really switched over to Struts ? 😉

By: Anjan Bacchu Wed, 08 Jun 2005 23:59:42 +0000 /?p=608#comment-2161 Hi There,

Good post. “Professional Struts Development” — you mean “Professional Spring Development” book ??!