上一篇文章介绍了sitemesh3的使用,这篇文章来介绍如何结合struts2来配置和使用sitemesh,具体的如何使用sitemesh3我就不讲解了,这个你们可以看看我的上一篇博客。

首先你要添加struts和sitemesh相关的jar包:

Struts2结合sitemesh3制作网站母版页面

添加完毕后,你要配置web.xml文件:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
    >zhangwei900808@126.com,或者qq:1576410833。

相关文章:

  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-07-22
  • 2022-01-15
猜你喜欢
  • 2021-08-03
  • 2021-08-27
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2021-07-05
  • 2021-12-11
相关资源
相似解决方案