Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can we develop enterprice application using struts2

 
Rajesha Acharya
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we develop enterprice application using struts2?? please anyone tell me, i have been searching in Google a lot for this. and my other question is if i know struts2, do i have to learn EJB or Springs?. These questions may look silly but i am new to java and its stuffs so i am asking for the help.
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings,
can we develop enterprice application using struts2?

Of-course you can . Struts2 is a fully functional framework for developing rich applications . I myself have used struts to design and develop a number of enterprise level applications .

if i know struts2, do i have to learn EJB or Springs

No. Although they can be integrated together.

To read more about struts , take a look at our FAQ pages here.

Do post back for any further queries.
 
Rajesha Acharya
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
because my team leader said, we can not develop enterprise application using struts2, we can only develop web application and stand alone application, to develop enterprise application we have to use Springs and EJB, this is what he said. So you are telling that he is wrong, am I right?
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajeshpurple Acharya wrote:because my team leader said, we can not develop enterprise application using struts2, we can only develop web application and stand alone application, to develop enterprise application we have to use Springs and EJB, this is what he said. So you are telling that he is wrong, am I right?

No , I am not saying that he is wrong. He may be referring to some particular scenario in which both spring and struts ( and ejb ) may be required. As I said earlier
... they can be integrated together...

Spring and struts both are separate frameworks. But depending on needs and requirements ( and scope of the project ) , a project can be setup using struts2 framework and then some spring functionalities ( like dependancy injection etc ) can be included inside this project. Then if you also add some statefull java beans , then you got yourself an enterprize ( but possibly complex ) project based on struts & spring .
 
Rajesha Acharya
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you so much dear sweetheart,,, you have been helping me from 1 month now...thanks for everything.. now my last question on this topic. think like i am your student, my first question to you, 1) if i learn struts2 can i develop any application including desktop, web application and enterprise application?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts is a web framework, it is not applicable to desktop apps.

Can you elaborate on the distinction you see between "web app" and "enterprise app"? It seems to hinge on the enterprise app accessing a DB, but almost all web apps do that as well.
 
Rajesha Acharya
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as far my knowledge enterprise application deals with 2 different organization. Example if we are using Axis Bank atm machine to use our HDFC account, this time we need enterprise level application. Web application is just like taking information from web server.
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.thanks for everything.
You are most welcome

as far my knowledge enterprise application deals with 2 different organization. Example if we are using Axis Bank atm machine to use our HDFC account, this time we need enterprise level application. Web application is just like taking information from web server.


Let me put in a more simpler way . Now remember , I am just trying to explain you and yes , the concept of a web application and an enterprise application is more vast . but I am just going to put it up in simple words.
Lets take the three tiers
1) the client tier; this tier runs a browser or some other client Java code.
2) the web tier; this tier runs your web server or Servlet container that sends pages of html or other data to the first tier.
3) the business logic tier: this tier runs your enterprise Java beans, your database connectivity code etc. This tier communicates with the second tier.

All together these tiers make up an 'enterprise application';
Now , when you leave out the third tier you have a 'web based' application.
and if only the first tier is used by itself , its just a desktop application .

Also there is good explanation on the concept of an enterprize application Here .
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajeshpurple Acharya wrote: as far my knowledge enterprise application deals with 2 different organization.

I've never heard of this definition; I doubt it is in widespread use.

Saif Asif wrote:All together these tiers make up an 'enterprise application';
Now , when you leave out the third tier you have a 'web based' application.
and if only the first tier is used by itself , its just a desktop application .

These sound fishy as well. The use of web technologies does not preclude the use of a DB or some other backend. And many desktop apps access a DB as well. So while "desktop app" and "web app" are pretty clearly defined by the use of the underlying technologies, I recommend to avoid the term "enterprise app" because there is no standard, commonly agreed upon definition of it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic