I'm going to step out on a limb here, and say what you're looking for is JSP Templates
Doesn't work exactly the same way, but it actually looks a little more flexible than MasterPages (Allows you to define multiple areas of the templates to pull different content from).
In the Java world there are multiple solutions to this. My suggestion is to use whatever your framework suggests. For example Struts tiles, JSF Facelets e.t.c You do use a web framework, don't you?
发布评论
评论(2)
我要在这里冒险,并说您正在寻找的是 JSP 模板
工作方式并不完全相同,但它实际上看起来比 MasterPages 更灵活(允许您定义模板的多个区域以从中提取不同的内容)。
I'm going to step out on a limb here, and say what you're looking for is JSP Templates
Doesn't work exactly the same way, but it actually looks a little more flexible than MasterPages (Allows you to define multiple areas of the templates to pull different content from).
在 Java 世界中,有多种解决方案。 我的建议是使用您的框架建议的任何内容。 例如 Struts 块、JSF Facelets 等 您确实使用了 Web 框架,不是吗?
In the Java world there are multiple solutions to this. My suggestion is to use whatever your framework suggests. For example Struts tiles, JSF Facelets e.t.c You do use a web framework, don't you?