Configuring struts 2 in eclipse

This is 2 of 8 part of struts 2 tutorial.In this part,we will configure struts 2 in eclipse.

Tutorial Content:

First you need to download struts 2 framework from apache website .Click on “Download now” and Struts 2 will be downloaded on your machine.

Now Open your eclipse environment.

Click on Files->New->Other



Click on web->Dynamic web project

Write your project Name in the text box.I have written “Strut2FirstProject”
Now here,I am assuming you have apache tomcat server installed in your machine.If you
have target runtime as none then you can refer configure Apache Tomcat in Eclipse IDE.
Now click on Finish button.

Now go to location where you have download strut2 package and open lib
folder.you can have all jars but for now you can copy following jars

  • struts2-core-2.3.1.2
  • xwork-core-2.3.1.2
  • ognl-3.4
  • commons-io-2.0.1
  • commons-fileupload-1.2.2
  • javassist-3.11.0.GA
  • freemarker-2.3.18
  • commons-lang-2.5
  • commons-logging-1.1.1
  • commons-logging-api-1.1
  • struts2-dojo-plugin-2.3.1.2.jar

Paste all above copied jars to WebContent->WEB-INF->lib

Add all these jars to eclipse build path.
Right click on project(Strut2FirstProject)->properties

Click on Java Build Path and then Add jars as shown in above diagram.

go to project->WebContent->WEB-INF->lib and select all jars then click on ok.

Click on ok.
Now you are done with configuring strut2 in eclipse.You can create your struts 2 project.
In next post we will write Hello world example in struts 2 .

Related Posts

  • Generate random number between 0 and 1 in Python
    15 July

    Generate random number between 0 and 1 in Python

    Table of ContentsUsing the random.uniform() function.Using the random.random() functionUsing the random.randint() functionUsing the numpy.random.random() functionUsing the numpy.random.uniform() function Generating Random numbers is easily achievable in Python, as Python provides the Random module that contains some functions that can be used to generate random numbers as per the programmer’s needs. A Random number does not generate […]

  • Get current year in java
    13 July

    Get current year in Java

    Table of ContentsUsing Date and SimpleDateFormatUsing CalendarUsing LocalDateUsing LocalDateTimeusing ZonedDateTimeUsing OffsetDateTimeUsing Instant and ZoneIdUsing Instant and ZoneOffsetConclusion In this post, we will see how to get current year in Java. Using Date and SimpleDateFormat The Date class was introduced in Java 1.0 and provided different approaches to work with time. The SimpleDateFormat inherits from DateFormat […]

  • 13 July

    Remove substring from String in Java

    Table of ContentsUsing String’s replace method to remove substring from String in JavaUsing String’s replaceFirst method to remove substring from String in JavaUsing String’s replaceAll method to remove substring from String in JavaUsing StringBuilder’s delete() method to remove substring from String in JavaUsing StringBuilder’s replace() method to remove substring from String in JavaConclusion In this […]

  • 9Cartoon
    13 July

    13 Best Working 9Cartoon Alternatives in 2021 (Tried and Tested)

    Table of ContentsBest 9cartoon AlternativesCartoonsOnAnimeDaoAnimeToonKissAnimeToonGetWatch Cartoons OnlineCartoonCrazyToonovaKimCartoonWatch SeriesNyaaToonJetKissCartoonFrequently Asked QuestionsWhat is 9cartoon?Is 9cartoon free?What happened to 9cartoon?Which are the best 9cartoon alternatives?Wrapping Up Are you having trouble accessing 9cartoon? Well then, you’re just at the right place. 9cartoon is a well-known web-based platform that bagged a large quality of cartoons, relative TV shows and movies. […]

  • 13 July

    Einthusan Alternatives : 16 Best websites like Enthusan in 2021

    Table of ContentsEinthusan alternativesYouTubeYuppTVSonyLIVJio CinemaHotstarVootZee5HungamaAmazon Prime VideoAirtel XtremeMX PlayerEros NowNetflixHonorable Mentions123 MoviesF MoviesSoap2dayFrequently Asked Questions**Is Einthusan Blocked in India?Is Einthusan Safe?Is Einthusan Free?Einthusan Downloader: Is it legit?Final Words Einthusan is a well-known platform for watching movies online. From streaming in different languages to downloading them for online viewing, the platform offered everything that movie lovers […]

  • CQATest
    13 July

    Everything You Need to Know About CQATest in 2021

    Table of ContentsCQATest: A Brief OverviewHow Can CQATest Help?Problems Associated with CQA TestFixing Problems Associated with CQATestDisabling CQATest AppMethod 1: Force Stopping CQATest AppMethod 2: Resetting Your DevicePrecautions: Things to Keep in Mind Before Disabling CQATest.FAQsWhat is CQATest on Android?What does CQA stand for?Is CQATest app a virus?Is CQA Test Safe?What are the most common […]

Comments

  1. For simple application it helped me a lot. But I am having a problem now that is I am getting an error as “HTTP Status 500 – An exception occurred processing JSP page /signin.jsp at line 26” , Can you please help me?

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.