创建jsp表格页面_创建一个JSP页面
创建jsp表格页面
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)
Open Eclipse, Click on New → Dynamic Web Project
打开Eclipse,单击New→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中创建的新项目
To create a new JSP file right click on Web Content directory, New → JSP file
要创建一个新的JSP文件,请右键单击Web Content目录, 新建→JSP文件。
Give a name to your JSP file and click Finish.
为您的JSP文件命名,然后单击Finish。
Write something in your JSP file. The complete HTML and the JSP code, goes inside the
<body>
tag, just like HTML pages.在您的JSP文件中写一些东西。 就像HTML页面一样,完整HTML和JSP代码位于
<body>
标记内。To run your project, right click on Project, select Run As → Run on Server
要运行您的项目,右键单击Project ,选择Run 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表格页面
原文地址: https://blog.csdn.net/cunfen6312/article/details/107683569
本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
相关文章