创建jsp表格页面
创建一个JSP页面 (Creating a JSP Page)
A JSP page looks similar to an HTML page, but a JSP page also has Java code in it. We can put any regular Java Code in a JSP file using a scriplet tag which start with and ends with %>. JSP pages are used to develop dynamic responses.
JSP页面看起来类似于HTML页面,但是JSP页面中也包含Java代码。 我们可以使用and ends with 开头%> . JSP pages are used to develop dynamic responses.and ends with 的scriplet标记将任何常规Java代码放在JSP文件中%> . JSP pages are used to develop dynamic responses.and ends with %> . JSP pages are used to develop dynamic responses.and ends with %> . JSP pages are used to develop dynamic responses.
To learn HTML, go to HTML Interactive Course and learn HTML while practicing it side by side.
要学习HTML,请转到HTML互动课程,并边练习边学习HTML。
在Eclipse中创建JSP页面的示例 (Example of creating a JSP Page in Eclipse)
- New → Dynamic Web ProjectNew→Dynamic Web Project。
- Give a name to your project and click on OK 为您的项目命名,然后单击“确定”。
- You will see a new project created in Project Explorer 您将看到在Project Explorer中创建的新项目
- New → JSP file新建→JSP文件。
- Give a name to your JSP file and click Finish. 为您的JSP文件命名,然后单击Finish。
-
<body>tag, just like HTML pages.<body>标记内。 - Project, select Project ,选择Run As → Run on ServerRun As→Run on Server
- To start the server, Choose existing server name and click on finish 要启动服务器,请选择现有服务器名称,然后单击完成。
- See the Output in your browser. 在浏览器中查看输出。
翻译自: https://www.studytonight.com/jsp/creating-a-jsp-page.php
创建jsp表格页面