HomeHome  FAQFAQ  SearchSearch  RegisterRegister  MemberlistMemberlist  UsergroupsUsergroups  Log in  

Share | 
 

 STRUTS

Go down 
AuthorMessage
sojan

avatar

Number of posts : 29
Age : 34
Registration date : 2007-03-04

PostSubject: STRUTS   Mon Mar 12, 2007 2:07 pm

Quote :

Apache Struts is an open-source framework for developing J2EE web applications. It uses and extends the Java Servlet API to encourage developers to adopt an MVC architecture. It was originally created by Craig McClanahan and donated to the Apache Foundation in May, 2000.


What is Struts?

Struts is a Java MVC framework for building web applications on the J2EE platform.


Thatís it! As you can see, whole lot of buzzwords appear in the above sentence.
This chapter analyzes the above definition word-by-word and presents a big
picture of Struts. It also shows how Struts makes it easy to develop web
applications for the J2EE platform. But first, I will start with a quick overview of
the J2EE platform followed by basics of J2EE web application development
before looking at various strategies and frameworks that are available today for
developing the J2EE presentation tier.


J2EE Platform

As you might be already knowing, J2EE is a platform for executing server
side Java applications. Before J2EE was born, server side Java applications were
written using vendor specific APIs. Each vendor had unique APIs and
architectures. This resulted in a huge learning curve for Java developers and
architects to learn and program with each of these API sets and higher costs for
the companies. Development community could not reuse the lessons learnt in the



In Login Form Example ,the following classes will be used




  1. Action class
  2. ActionForm class


Action Class:
The action class is the link between the Struts framework and your business application logic. The purpose of Action Class is to translate the HttpServletRequest to the business logic.
In this example our Action class is LoginAction.java. this Action class only forwards the login.jsp. Our Action class returns the ActionForward called "loginAction", which is defined in the struts-config.xml file . Here is code of our Action Class:

http://www.roseindia.net/struts/struts-login-form.shtml
Back to top Go down
View user profile http://sojanctherakom.googlepages.com
 
STRUTS
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
 :: Programming Languages :: JAVA-
Jump to: