Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 jsp 文件,其中大部分 tha struts 标记现在对于某些字段我必须使用简单的 html 标记,但是当我放置 html 标记时,页面的格式会被更改。如果我只使用 struts 标签,那么每个 strut 标签都写在新行中。如何在单行中显示两个不同的 struts 标签。
您可以在 JSP 中使用普通的 HTML 标记和 Struts 标记。Struts 在这方面并不严格。关于你得到的错误,如果你能发布你使用的代码并详细描述你得到的错误会更好。
请注意,我并没有真正在 Struts2 中工作过——仅在 Struts 1 中工作过,但我认为您仍然应该能够在 Struts2 中将普通 HTML 标记与 Struts 标记混合...