遊客:  註冊 | 登錄 | 幫助





標題: [討論] Struts vs Spring
mickeyGoUp     Rank: 7Rank: 7Rank: 7
版主
性別 男
UID 5

精華 0
帖子 35511
積分 5235   詳情

閱讀權限 150
註冊 2006-3-24
來自 美國滴滴尼
狀態 離線

 
 
 
 
發表於 2007-2-12 11:56 PM  資料  個人空間  短訊  加為好友 
Struts vs Spring

Just wonder if anyone here has used both Struts and Spring before?  I have read articles on the web comparing the two frameworks.  But if there are actual Xenterum members who have done that and can share their first-hand experience, that will be great.  

I am not specifying any topic to talk about yet.  Just like to get an idea how many of you have done that.  Please "raise your hand".  

頂部

lhy     Rank: 3
青出藍
性別 男
UID 14043

精華 0
帖子 121
積分 330   詳情

閱讀權限 40
註冊 2006-10-16
來自 Netherlands
狀態 離線

 
 
 
 
發表於 2007-2-13 04:55 AM  資料  個人空間  短訊  加為好友 
I have never worked or even heard of those 2 frameworks. But if you want to make a good 4-tier application take a look at Ruby on Rails. Much and Much better than the Java Enteprise Beans

頂部



mickeyGoUp     Rank: 7Rank: 7Rank: 7
版主
性別 男
UID 5

精華 0
帖子 35511
積分 5235   詳情

閱讀權限 150
註冊 2006-3-24
來自 美國滴滴尼
狀態 離線

 
 
 
 
發表於 2007-2-13 05:19 AM  資料  個人空間  短訊  加為好友 
Thanks lhy!  I have read about Ruby On Rails.  But never really got a chance to use it.  Are you guys building your apps based on that framework?

Yeah, EJB is a pain on the neck.  We have done a some EJB few years ago and never wanted to use it again.  People are into Hibernate now.  Do you have experience on that?  

I was surprised that you have not heard of Jakarta Struts and Spring.  Maybe they are not popular in where you are from?

頂部

lhy     Rank: 3
青出藍
性別 男
UID 14043

精華 0
帖子 121
積分 330   詳情

閱讀權限 40
註冊 2006-10-16
來自 Netherlands
狀態 離線

 
 
 
 
發表於 2007-2-14 03:06 AM  資料  個人空間  短訊  加為好友 
I know Jakarta but not Struts and Spring. But I have to take back what I have said. EJB 2.0 and before is really pain in the ass. I have to say EJB 3.0 is pretty nice. Take a look at "java persistence api" works really nice.

Ruby on Rails is the web app develope language you can get. Man it is so good and powerful. you should try it if you have time. I have play with RoR but didnt really work in a project with it. But it will bereally soon before I accept a project with RoR.

頂部

mickeyGoUp     Rank: 7Rank: 7Rank: 7
版主
性別 男
UID 5

精華 0
帖子 35511
積分 5235   詳情

閱讀權限 150
註冊 2006-3-24
來自 美國滴滴尼
狀態 離線

 
 
 
 
發表於 2007-2-14 03:27 AM  資料  個人空間  短訊  加為好友 
Now you made me very much want to try RoR.  But I doubt I can get them to use it at work.  Spring has been out for a long time and have a lot of resources.  And Hibernate is very much like EJB 3.  Plus, they are still in Java 1.4, so we can't make use of the Java Persistence API yet.  -__-  That's too bad!

Man.. are you and me the only Java developers in Xenterum?    Nobody else has responded yet.

頂部

  agelessoldman     Rank: 3
青出藍
性別 男
UID 5780

精華 0
帖子 361
積分 341   詳情

閱讀權限 40
註冊 2006-8-12
來自
狀態 離線

 
 
 
 
發表於 2007-2-14 05:20 AM  資料  個人空間  短訊  加為好友 
So what IS Java? is it some knid of coffee beans?

Sorry, I was boring, just passing by..

頂部

lhy     Rank: 3
青出藍
性別 男
UID 14043

精華 0
帖子 121
積分 330   詳情

閱讀權限 40
註冊 2006-10-16
來自 Netherlands
狀態 離線

 
 
 
 
發表於 2007-2-14 06:26 AM  資料  個人空間  短訊  加為好友 
One of the main features of the new Java Persistence API that was introduced with the Java EE 5 platform is that you can plug in any persistence provider that you want. Goodbye Entity Beans, Hello JPA

Many of the features of the third-party persistence frameworks are incorporated into the Java Persistence API, and projects like Hibernate and TopLink are now implementations of Persistence.

You should read some more about this and switch over to JEE5

頂部

mickeyGoUp     Rank: 7Rank: 7Rank: 7
版主
性別 男
UID 5

精華 0
帖子 35511
積分 5235   詳情

閱讀權限 150
註冊 2006-3-24
來自 美國滴滴尼
狀態 離線

 
 
 
 
發表於 2007-2-16 06:59 AM  資料  個人空間  短訊  加為好友 
I cannot switch to Java 1.5 yet.  The place I work for is so big that every step they take needs to be tested and approved.  That's why we are still using Java 1.4.2.  -__-  I envy you.

頂部

  tonya1star     Rank: 2Rank: 2
藍之初
性別 保密
UID 1954

精華 0
帖子 9
積分 100   詳情

閱讀權限 30
註冊 2006-7-27
來自
狀態 離線

 
 
 
 
發表於 2007-3-17 01:44 AM  資料  個人空間  短訊  加為好友 
We are still using Java 1.4.2 @ work, along with Struts, EJB2.0, WebLogic 8.1 and Oracle 9.0. However, I have actually used Spring with Hibernate from my last job (prior to learning EJB here). Comparing to Hibernate, EJB2.0 should be pain. But I would definitely vote for EJB3.0 based on the review we had couple weeks ago. Maybe you are right, EJB3.0 is so alike to HIbernate.

頂部

mickeyGoUp     Rank: 7Rank: 7Rank: 7
版主
性別 男
UID 5

精華 0
帖子 35511
積分 5235   詳情

閱讀權限 150
註冊 2006-3-24
來自 美國滴滴尼
狀態 離線

 
 
 
 
發表於 2007-3-17 06:07 AM  資料  個人空間  短訊  加為好友 
Hi tonya1star, thanks for your input!  And good to hear from other Java developers!

We are using Websphere.  And I just read an article that Spring does not work well in Websphere.  So we have decided to stick with Struts for now.  

Since you have used both Struts and Spring, which one you like more?

頂部

快速美言
           


當前時區 GMT+8, 現在時間是 2024-11-23 03:13 PM

    Powered by Discuz!  © 2001-2007 Comsenz Inc.   
Processed in 0.017295 second(s), 9 queries

清除 Cookies - 聯繫我們 - LIPS Corner 新天藍 - Archiver