How to mearge messages in <script>javascript:alert('<%=error%>')</script>
800344Apr 21 2005 — edited Apr 21 2005Hi,
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