Spring MVC 和 WML 网页?
是否可以构建并使用 WML 页面而不是普通的 html 页面来呈现包含表单的视图?
我找不到任何关于如何实现此目的的示例,甚至在 WML 中找不到“form”标签。相反,根据我的理解,WML 使用带有输入标签的卡来处理某种表单,但在 Spring mvc 的 SimpleFormController 中,它与 html 表单而不是 WML 输入卡结合使用。
is it possible to contruct and use a WML page instead of a normal html page to render my views that contain a form?
i could not find any examples on how to achieve this and i could not even find the "form" tag in WML. Instead, from my understanding WML, uses cards with input tags to process a form of some sort but in Spring mvc's SimpleFormController it is used in conjunction to a html form not a WML input card.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Spring MVC 的控制器基础结构并不关心页面是用 HTML 还是 WML 呈现。 HTML 表单和 WML 卡最终都会在提交时生成 HTTP 请求,并且控制器无法区分。
然而,Spring只提供了一个HTML表单标签库,所以如果你想生成WML,你就必须自己做这一切。
但这真的是你想涉足的领域吗? WML 已经过时,只有非常旧的手机才需要它。
Spring MVC's controller infrastructure doesn't care if the page is rendered in HTML or WML. Both HTML forms and WML cards end up generating HTTP requests when submitted, and the controller can't tell the difference.
However, Spring only provides an HTML form tag library, so if you want to generate WML, you'll have to do it all yourself.
Is this really something you want to get into, though? WML is obsolete, and only very old phones need it.