<script> <br><br>function showMessage(msg) { <br>alert(msg) <br>} <br></script>
When the value taken out from the bean in the above code is a single quote, a js error will be reported when loading the page. This can be solved using the following method.
<script> <br><br><br><br><br></script>