带 struts-tiles 的虚拟目录
在为本地开发配置带有虚拟目录的 struts-tiles 时存在严重问题。我已将tiles-def.xml 部署在我的耳朵中。我有虚拟目录映射,它工作得很好,但不适用于tiles,因为我想将jsp包含在我的tiles-def中。
这可能吗?有人有经验吗?
谢谢
is have serious problems in configuring struts-tiles with virtual-directories for local developement. I have got my tiles-def.xml deployed in my ear. And i have got virtual-directory mapping, which works great, but not with tiles, because i want to include the jsp in my tiles-def.
is this possible? Does anybody have an experience?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可能会尝试在 struts 平铺结果中使用通配符。
http://struts.apache.org/2.2.3/docs/wildcard -mappings.html
您可能还需要在 struts.xml 中包含一些配置设置:
如果您有权访问 url 或 struts 操作类中的目录结构,则可以将其传递给图块结果,如下所示如下所示:
然后,您将图块设置为接受通配符
http://tiles。 apache.org/framework/tutorial/advanced/wildcard.html
I would probably try using wildcards with your struts tiles results.
http://struts.apache.org/2.2.3/docs/wildcard-mappings.html
You may also need to include some configuration settings in your struts.xml:
If you have access to the directory structure in the url or in the struts action class, it can be passed to the tiles results as follows:
You then set up the tiles to accept wildcards as well
http://tiles.apache.org/framework/tutorial/advanced/wildcard.html