GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes can we develop enterprice application using struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "can we develop enterprice application using struts2" Watch "can we develop enterprice application using struts2" New topic
Author

can we develop enterprice application using struts2

Rajesha Acharya
Greenhorn

Joined: Mar 18, 2013
Posts: 23
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

Joined: Aug 11, 2011
Posts: 440

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.


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Rajesha Acharya
Greenhorn

Joined: Mar 18, 2013
Posts: 23
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

Joined: Aug 11, 2011
Posts: 440

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

Joined: Mar 18, 2013
Posts: 23
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
Marshal

Joined: Mar 22, 2005
Posts: 42034
    
  64
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.


Ping & DNS - my free Android networking tools app
Rajesha Acharya
Greenhorn

Joined: Mar 18, 2013
Posts: 23
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

Joined: Aug 11, 2011
Posts: 440

.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
Marshal

Joined: Mar 22, 2005
Posts: 42034
    
  64
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.
 
GeeCON Prague 2014
 
subject: can we develop enterprice application using struts2