+1 vote
125 views
what is java struts? how to execute simple java struts program in eclipse or netbeans?
asked Feb 26, 2016 in Computer Science - IT by gypsiii | 125 views

1 Answer

0 votes

Apache Struts is a framework :

  • Apache Struts is a free, 
  • open-source, 
  • MVC framework for creating elegant, modern Java web applications. 

It favors convention over configuration, is extensible using a plugin architecture, and ships with plugins to support REST, AJAX and JSON.

What is a MVC framework ?

They are nothing but a pattern in which project is divided into interconnected parts ,below pic will give you an idea of the same 

Another project example is given below (this is an ASP MVC) :

  • Model has Database operation related files
  • View has interface files
  • Controller interprets user actions

Running Struts application in Netbeans :

Yes, you can create applications in Netbeans with Struts framework

Create a new web project and select framework Struts (New version 8.0 has struts or else you need to add libraries ,added links with good reference below please have a look)

More good references :

http://blog.codinghorror.com/understanding-model-view-controller/
https://netbeans.org/kb/docs/web/quickstart-webapps-struts.html
http://www.quickprogrammingtips.com/struts2/struts-2-netbeans-tutorial.html

answered Feb 26, 2016 by django