Recuperar erros da action no jsp - Struts?

Galera é o seguinte:

Quero usar os labels do resource.properties para as mensagens do meu sistema. Para isso estou fazendo isso:

     			//inserir
     			try{
     				
     				facade.insere(facade.getProximaChave(),cform.getGenero());
     				System.out.println("salvou");
     				msg.add(ActionErrors.GLOBAL_ERROR,new ActionError("insere.sucesso"));
     				saveErrors(req,msg);
     				return mapping.findForward("sucesso");
     			}
     			catch(SQLException e){
     			
     				System.out.println("erro : "+e.getMessage());
     				msg.add(ActionErrors.GLOBAL_ERROR,new ActionError("insere.erro"));
     				saveErrors(req,msg);
     				return mapping.findForward("erro");
     			}

no jsp, estou recuperando essas mensagem em uma var javascript:

var erro='<html:erros/>';

Ele retorna o resultado (mensagem) corretamente, só que coloca umas quebras de linha que dá pau no javascript.

esse é o html gerado

var erro = '<FONT COLOR='RED'>
Registro cadastrado com sucesso!
</FONT>
';

Alguma coisa errada?

<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>


<logic:messagesPresent>
<hr>
   <html:messages id="error">
      <bean:write name="error"/>
   </html:messages>
</logic:messagesPresent>

Ricardo,

Eu consigo recuperar o conteudo com <html:erros/>, o problema é esta quebra que ele coloca na String, dá pau no javascript!

[quote=“ricardolecheta”][code]
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix=“logic” %>

<logic:messagesPresent>
<hr>
<html:messages id="error">
<bean:write name="error"/>
</html:messages>
</logic:messagesPresent>
[/code][/quote]

Não tem essas tags no meu struts-logic.tld

neste trecho tem que importar as taglibs,

vs está fazendo assim?

&lt;%@ taglib uri=&quot;/WEB-INF/tlds/struts-bean.tld&quot; prefix=&quot;bean&quot; %&gt;
&lt;%@ taglib uri=&quot;/WEB-INF/tlds/struts-html.tld&quot; prefix=&quot;html&quot; %&gt;
&lt;%@ taglib uri=&quot;/WEB-INF/tlds/struts-logic.tld&quot; prefix=&quot;logic&quot; %&gt;

Sim, estou importando!