Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Web Tools Guide
Previous Page Home Next Page

Creating JavaServer Pages (JSP) files

Most types of JSP files can be created using the New JSP File wizard. To create a basic JSP file using the wizard, complete the following steps:

  1. Create a dynamic Web project if you have not already done so.
  2. In the Project Explorer, expand your project and right click on your WebContent folder or on a subfolder under WebContent. Note that if you choose any other folder in which to create the JSP, then it will not be included in the WAR file that is deployed to the server. In addition, link validation will not encompass files that are not under the WebContent folder.
  3. From the context menu, select New > JSP . The New Java Server Page window appears with your folder selected
  4. Type a file name into the File name field, making sure you include the jsp extension (jsp, jsv, jtpl, or jspx) in the file name.
  5. You have several options for proceeding:
    • To accept the defaults associated with a new JSP file, select Finish.
    • To link to a file in the file system and specify path variables, select Advanced and then make your selections using the Browse and Variables buttons.
    • To use a template file for the initial content of your JSP page, select Next. The Select JSP Template window appears. Select the Use JSP Template check box, and then select one of the sample templates. You can also select the JSP Templates link to add or remove JSP templates to your list of templates.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire