Java Struts

K

klauern

I was just reading through some of the topics, and I'm not sure whether
I truly understand what Java Struts are. Are Struts a major piece of
web applications, and what can the Java Struts package provide me as a
developer?
 
W

Wendy S

klauern said:
I was just reading through some of the topics, and I'm not sure whether
I truly understand what Java Struts are. Are Struts a major piece of
web applications, and what can the Java Struts package provide me as a
developer?

Apache Struts is an open-source web application framework. You don't _have_
to use Struts to write web applications, there are lots of other options
(such as Spring,) but if your web application has a lot of HTML forms,
Struts can be a great help.

Struts doesn't do anything on its own, it gives you a framework to build
your application on. You define the form elements in an xml file, then
write the code that should happen when the user submits the form. You also
define the flow of the pages, where it should go if the user types something
invalid, etc.

There is a fairly significant learning curve to get started, but there are
lots of books and online resources available now. If it sounds like
something you could use, start here: http://struts.apache.org/ .
 
K

kevarouza

Struts is basically a framework that you can use to create an MVC model
(aka Model 2 architecture) for your application. This means that the
data, view and controller are in separate layers. Struts provides JSP
tag libraries that automate many of the aspects of form processing,
logic processing etc. In combination with Tiles you can customize the
presentation of your application. There is a learning curve but Struts
is a very useful framework and it would help you a lot if you learn it
;-)

Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top