VisualBuilder
  Home > Ejb > Tutorials > Struts - a quick overview: - EJB 3 Tutorial
Tell a friend
Link to us
Total Members
      Members: 84606
     
Sitemap Forum Chat
Home
EJB 3 Tutorial Home
1 . Introduction to EJB 3 with movies
2 . Set Up the EJB 3 environment with Movies
3 . Creating the J2EE Project
4 . Inspecting the J2EE Project
5 . Create Session Bean skeleton:
6 . Create Entity Bean:
7 . Create the Session Bean POJI
8 . Define the POJI methods
9 . The EntityManager:
10 . Coding the business methods:
11 . Configure Persistence Unit
12 . Struts - a quick overview:
13 . Create the Struts Web layer:
14 . The Struts configuration file:
15 . The execute method:
16 . The insert & delete methods
17 . Javascript functions
18 . JSP body
19 . Deploy, review database and Test:
20 . Example Code
21 . Example Code
 
Ejb Group Home
Ejb Discussion (3)
Ejb Members (2720)
Ejb Resources
Ejb Source Code (0)
Ejb Articles (0)
Ejb Blogs
Ejb Jobs
Ejb Components (0)
Ejb Books
Ejb Websites (5)
Ejb News (4)
Ejb Q & A (6)
- Ejb Ask Question
- Ejb Questions
- Ejb Unanswered Questions
 
GROUPS
.NET
ASP.NET
.NET
C#
ASP
Visual Basic
Java
Java
JSP
EJB
Other
Delphi
C++
Ajax
UML
JavaScript
PHP
Web Design
Web Hosting
SQL Server
Oracle
Project Management
More Groups

 
LEARNING CENTER
TUTORIALS
.NET
.NET Tutorial
ASP Tutorial
ASP.NET Database Tutorial
ASP.NET Development Tips
ASP.Net Security,Internationalisation And Deployment
ASP.NET Server Controls Tips
ASP.NET Tutorial
C Sharp Tutorial
Web Development
Flex Tutorial
HTML Tutorial
Learn AJAX Tutorial
PHP Tutorial
Software Development
Database Tutorial
SQL Tutorial
UML Tutorial
Java
Ant Tutorial
EJB 3 Tutorial
Hibernate Tutorial
Java Tutorial
Java Web Component Tutorial
Java XML Tutorial
JDBC Tutorial
JDK1.5 Tutorial
JSF Tutorial
JSP And J2EE Design Tutorial
JSP Tutorial
Spring Tutorial
Struts Tutorial

RESOURCES
Q & A (432 )
Source Code (3217 )
Articles (11 )
Components (1589 )
News (880 )
Websites (1207 )

SUBMISSIONS
Submit Article
Submit Website
Submit News
Submit Source Code
Submit Component

COMMUNITY
Members Directory
Discussion Forum
Chat

SITE
About Us
Sitemap
Search
Contact Us
Link To Us
Feedback
Tell a Friend
Partners
Advertise


Ejb Tutorial
 Struts - a quick overview:
  << Prev: Configure Persistence Unit Next: Create the Struts Web layer: >>

The Struts framework is an open-source product for building Web applications based on the model-view-controller design pattern.


It uses and extends the Java Servlet API and provides a controller servlet as well as the skeleton classes for actions that developers need to extend and implement the " execute " method


The struts-config.xml file located in the WEB-INF directory of your project, describes everything about the coordination of requests and responses mapping actions to classes and conditional views for responses.


In this tutorial we will use the graphical Struts builder in MyEclipse to create a simple Action, Form and JSP.



Flow begins at the view JSP which will display a list of Books with functions to add and delete from that list.


When either function is called it makes an HTTP POST to the mapping for our Action class in the struts-config.xml.Action mappings end in.do and are directed for processing by the Struts Controller.


The Struts Controller forwards the HTTP Request to our Action class, where the function is determined and a reference made to our Session Bean facade.


The "add" or "delete" CRUD method is called and a Book Entity Bean is created or deleted.


Finally, the user is reshown the same JSP as is specified in the struts-config.xml and the request and response cycle is complete.



  << Prev: Configure Persistence Unit Next: Create the Struts Web layer: >>
Ejb Tutorial Home
Give feedback and win a prize.

 
   Printer Friendly
   Email to a friend
   Add to my Favourites    
  Download PDF version
   Report Bad Submissions
   Submit Feedback
 
  Delicious   Digg   Technorati   Blink   Furl   Reddit   Newsvine   Google Click each image to add
this page to each site.
 
 
Welcome Guest Signup
MEMBER'S PANEL
EMAIL
PASSWORD
Forgot your password?
New User? Click Here!
 
Resend Activation Email!
 
SEARCH
 
 
LINKS
MSN
Video Surveillance
Skype vs. sipcall
Gift to Pakistan
 
ADVERTISEMENT
 
PARTNER LIST

More
 
 
 

Home | Login | About Us | Contact Us | Privacy Policy | Advertising