![]() ![]() ![]() Select the “New JSP File (html)” template from the Templates list and click Finish to create the file:.On the New JSP File screen, give the file the name “index.jsp”, so that it’s the default page for your web app. ![]() That will bring up the New JS File wizard. Right-click on the WebContent folder in the Project Explorer and select New > JSP File from the popup menu.That will create the following folders and files, which you can view in the Project Explorer view:Ĭreating JSP pages in eclipse is quite straight-forward, thanks to the wizard: At this point, your screen should look something like the following:Ĭlick the Finish button because we don’t need to go to the Java or Web Module screens. Among the many properties on the screen, you’ll need to change the Dynamic web module version from 3.0 to 2.5, because our server – Jetty 6 – does not support version 3.0. On the Dynamic Web Project screen, you’ll be asked to give your project a name. This bring up the Dynamic Web Project wizard that will guide you through the project creation process. You’ll find it under File > New > Dynamic Web Project from the main menu. The type of project that we will be working with here today is called a “Dynamic Web Project”. In today’s article we’ll be delivering dynamic content to the user via a JSP page that we’ll be constructing in Eclipse Juno. There are also specialized tag libraries for SQL, XML, and to perform functions. The “fmt” library contains various tags for formatting data such as numbers and dates. The “c” stands for core, and includes tags such as choose, if, forEach, and out. We’re going to include two special tag libraries called c and fmt. They do so by including special tags that are parsed and evaluated by the server, thus allowing the page to provide up to the second content. The key to making dynamic web applications interactive in Java is the use JSP pages. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |