`
wxb_j2ee
  • 浏览: 136154 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

java.lang.IllegalArgumentException: Path search.page does not start with a "/" c

 
阅读更多

配置 struts 1.X 版本的 tiles 的时候,当出现异常:

 

java.lang.IllegalArgumentException: Path search.page does not start with a "/" character

 

 

解决办法:

 

查看在 struts-config.xml 中是否配置<controller>。

 

 

<controller>
            <set-property property="processorClass" value="org.apache.struts.tiles.TilesRequestProcessor"/>
</controller>

 

附上我的 test 源文件代码,Jar包已去掉。可以通过 MyEclipse 中直接创建个  struts 1.X 的项目,默认就包括了 tiles  所需的Jar包,无需再添加。

 

注意:

 

以下3个图片为配置资源:

----------------------------------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------------------------------------

 

 

 

----------------------------------------------------------------------------------------------------------------------------------

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics