You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Raghuveer <ra...@infotechsw.com> on 2010/02/24 15:07:05 UTC

Message Resource property Not escaped / encoded

How to escape the Message resource in velocity view in confluence
application..

Content from property file is not encoded.

In VM file the message is displayed as"=<font color="red">Updation
failed.<font>"

 

How to display the message in red color in VM file.

 

 

Is there way we can configure either in template or in atlassian-plugin.xml.

When me

 

Message Resource:

msg.failed.common.updated=<font color="red">Updation failed.<font>

 

Actionmessages.vm:

 

#if($actionMessages && $actionMessages.size() > 0)

    #foreach($message in $actionMessages)

        <font color="#000000">

            <b>$message</b>

        </font>

        #if($actionMessages.size() > 1)

                  </br>

        #end

    #end

#end

 

JavA File:

 

this.addActionMessage(GeneralUtil.htmlEncode(getText("msg.failed.common.upda
ted ")));