Skip to Content

Creatting and Deploying Struts in Web Application Server

Steps

:-

1) Create a Web Module project.

2) Next go to project Java Build Path and add the
neccessary jar files (from the lib folder)

Add all the jar files from Lib folder
From(Struts – Home)Dir:/lib

3) Then create a Struts-config.xml file

Project_name/WEB-INF/…

4) Add the necessary tag libraries to the WEB-INF folder which are needed for the project

Project_name/WEB-INF/…

5) Then create ActionServet and Action Class files under the Source folder

Project_name/Source/….

6) Now create .JSP files under the Webcontent folder

Project_name/webcontent/….

7) Modify the Web.xml files (configuring the struts-config.xml to the application

8) Create a WAR File

9) Next create a Enterprise Application Project add the Web module Project

10) Create a EAR File

11) Run the Application

Creating a Web Module project.

image

image

Next go to project Java Build Path and add the following jar files

image

image

Add the necessary tag libraries to the WEB-INF folder which are needed for the project

image

Then create ActionServet and Action Class files under the Source folder

LoginAction.Java

LogoutAction.Java

ViewsecretAction.Java

image

image

image

image

Now Create a EAR File and Run the Application

image

image

image

image

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. Tarun Telang
    Hi,

    Thanks a lot for step-by-step procedure to run Struts on SAP Web AS. I am very happy after having my Struts Application running.

    Place where I struggled a bit was, Applicationresources.properties<\b> file should be placed in source folder along with *.java files, which is not mentioned in the article.

    Regards..
    Tarun

    (0) 

Leave a Reply