Graphical use Eclipse3 + LOMBOZ3 + TOMCAT development JSP --2. Edit a JSP instance

xiaoxiao2021-03-06  82

III. Edit an JSP instance

Previous content (environment setting): Graphical use Eclipse3 Lomboz3 Tomcat development JSP - 1. Environment

1. Create a new "Lomboz J2EE Project". Fill in "JSPSAMPLE" in the Project Name, click "Next", click "Next".

2. Fill in the web module

3. Add a server (you can add multiple servers, one of which is the default)

4. The effect is as follows:

5. Double-click Open Index.jsp, click on the "Lomboz View" button, as shown below:

First click the "Start Server" button (or right click "Apache Tomcat V5.0.28", select "Run Server"), if everything is normal, in the "Console window" will output "information: Server Startup In ... MS" .

Then switch to the "Lomboz J2EE VIEW" column, select "Demoweb", click the "Deploy Module" button to see the output information,

The general content is generated a "demoweb.war" file and deployed to "F: / Java / Jakarta-Tomcat / WebApps" (this is the directory of the Tomcat directory on my computer), then the Tomcat server automatically decompressed and Initialize "Demoweb.war".

Open the browser and enter "http://127.0.0.1:8080/demoweb/index.jsp" in the address bar.

OK! You should be able to see the following interface:

You can also right-click the "demion" folder in the Pack Explorer, and then use the following steps, as shown:

6. Add a statement in "index.jsp" "<% out.println (" Use JSP! ");%>, Then save, click" Deploy Module ", refresh your browser, you should see the following interface:

7. Add the following statements, save, deploy modules, and refresh the browser.

The next section describes how to use JSTL (JSP standard template libraries) and EL in Lomboz.

Graphical use Eclipse3 Lomboz3 Tomcat development JSP - 3. A JSTL instance

转载请注明原文地址:https://www.9cbs.com/read-107003.html

New Post(0)