Our Goal Our goal is to create a basic Struts2 application with a Login page.
We will also configure Tomcat Web Application Server with Eclipse and deploy our one page jsp web application on tomcat, from within Eclipse.
Required Installations Just to make sure for new Java enthusiasts target audience for this tutorialall required components are installed for creating first JSP Web Application. Use this guide here for latest Tomcat Installation Ecplise: Use following tutorial for installing Eclipse. Use section specific to your environment.
Configuring JRE in Eclispe: JRE home is usually C: Press Add button for launching Add Server Wizard. Walk through the wizard selecting appropriate Tomcat Server version you have downloaded above, and setting the correct Tomcat installation directory. Select this wizard and press Next. Enter Project Name and location to create this Project.
Complete this wizard with default settings on steps and press Finish. Folder structure for newly created project in package explorer web. This descriptor file is used by Tomcat server, when application is deployed on it, to identify different components of this application and how to use them.
By default a tag is already created in web. Although these pages are not created yet. Preview of the code for generating JSP page is displayed as well. Once finished, a new index. If not created in WebContent folder, move it inside.
This Scriptlet will print Hello World! One is to Console and other one is to Response output stream when server is executing this java code in Response to a client Request. Our configured Tomcat server appears in the list, select it and press Finish.The Platform for Open Innovation and Collaboration.
The Eclipse Foundation provides our global community of individuals and organizations with a mature, scalable and commercially-friendly environment for open source software collaboration and innovation.
If you have downloaded bit Eclipse and a bit JDK/JRE, check the availablity of kaja-net.com for bit. In my case it was in C:\Program Files\Java\jre6\bin.
I have extracted Eclipse to the c:\eclipse folder; within that the kaja-net.com file is available. Replace the contents of that file with the following. Jun 22, · If you have installed Eclipse by using the version included on the official repository (Debian, Ubuntu, etc) you wont have the CDT Tools installed by default (important requirement if you want to create C/C++ projects).
If you have downloaded bit Eclipse and a bit JDK/JRE, check the availablity of kaja-net.com for bit. In my case it was in C:\Program Files\Java\jre6\bin. I have extracted Eclipse to the c:\eclipse folder; within that the kaja-net.com file is available. Replace the contents of that file with the following.
Eclipse uses plug-ins to provide all the functionality within and on top of the run-time system. Its run-time system is based on Equinox, an implementation of the OSGi core framework specification..
In addition to allowing the Eclipse Platform to be extended using other programming languages, such as C and Python, the plug-in framework allows the Eclipse . Sep 30, · Project Setup Create an empty Java project.
Extract [SMPDIR]\maximo\deployment\default\kaja-net.com into a folder named maximo in your workspace. Refresh project tree in Eclipse (F5). Add the following jars to the project classpath: Project > Properties > Java Build Path > Libraries > Add Jars.