简体   繁体   English

处理html和jsp文件

[英]Handling html and jsp files

I have created a front end of web page(html file) but now I want to retrive some data from server and dispaly that data on webpage.And I realised that it will require JSP.But as my front html file is too big to enter java code which will make it difficult to maintain.Is there any way that I can keep .html and .jsp file totally seprate. 我已经创建了一个网页的前端(html文件),但是现在我想从服务器中检索一些数据并在网页上分发这些数据,并且我意识到这将需要JSP。但是由于我的正面html文件太大而无法输入java代码将使其难以维护。是否有任何方法可以使.html和.jsp文件完全分开。 Please give a small demo for that. 为此,请给一个小演示。

You can include different .jsp files in each other. 您可以相互包含不同的.jsp文件。 See: JSP include Directive 请参阅: JSP包含指令

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM