Struts 2 - The modern web application framework By Nalin De Zoysa

Post on 14-Jan-2016

217 views 0 download

Tags:

transcript

Struts 2 - The modern web application frameworkBy Nalin De Zoysa

http://nalin-blogging.blogspot.com/

Setup the Environment

Download the struts2 Create web project in eclipse Add the strtus libs to the project Create the struts.xml in src Create loginAction.java Create view(.jsp) Configure the web.xml

Introduce Maven

• What is maven– Apache Maven is a build tool to support the developer at the whole process of a

software project.

– Based on the concept of XML Project Object Model (POM).

– Originally developed for building Turbine.

– A small core with numerous plugins

Use the business service..

Create service class and call it in action In jsp use the struts tags

Access member variables

Cont..

Value Stack

Demonstration...

Lets use maven demo

How to pass the parameters

Send as get Send as post whildcards

www.hSenidbiz.comwww.hSenidbiz.com