如何在同一页面中显示错误消息

如何在同一页面中显示错误消息

问题描述:

我在一个页面中有两个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.