如何在同一页面中显示错误消息 [英] how to display error messages in same page

查看:91
本文介绍了如何在同一页面中显示错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个页面中有两个JSP页面,我在HTML页面的第二页操作页面中返回前视图的HTML代码。我有错误消息或成功消息。当我输入模板时,如何显示这些消息,因为我写了错误消息,但它没有跟随对齐,它显示在页面的任何地方...

I have two JSP pages in one page i have return HTML code of front view, in second page action page of HTML page. I have error messages or success messages. How can i display those message when i put in the templates because i written error message but it is not following alignment it was displayed in page anywhere...

推荐答案

如果你使用过HTML,你可以使用
If you have used HTML, you can use
标签。从第二页返回时,您可以在
tag. and when returning from the 2nd page, you can print the message in that
标签中打印消息。

将按预期格式化工作。
tag.
'll work as you expect with formatting also.


这篇关于如何在同一页面中显示错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆