Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to mearge messages in <script>javascript:alert('<%=error%>')</script>

800344Apr 21 2005 — edited Apr 21 2005
Hi,

In the context of Struts/JSP,

I have the following piece of code.

<logic:messagesPresent>
<html:messages id="error">
<script>javascript:alert('<%=error%>')</script>
</html:messages>
</logic:messagesPresent>

The problem is that if the error message has serveral elements, the "alert" will iterativelly run. How to merge all these error messages into one "alert".

PY
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 19 2005
Added on Apr 21 2005
1 comment
188 views