Sounds like you need to escape the HTML.

For example if you are using actionmessage have a look at the escape
attribute. http://struts.apache.org/2.x/docs/actionmessage.html


On Thu, Oct 20, 2011 at 4:06 PM, Arpan <arpan.deb...@gmail.com> wrote:

> If I add any html tags such as <b>, <div> etc., all these tags gets
> displayed in the screen, instead of changing the style of text.
>
> For example in propertie file I write:
>
> My device color is <div style="font-weight: bold">RED</div>.
>
> It will display as it is. No style change.
>
>
> On Thu, Oct 20, 2011 at 7:21 PM, Maurizio Cucchiara
> <mcucchi...@apache.org>wrote:
>
> > There are no many options,  What happen if you include your marker tag
> > inside your resource properties file?
> >
> > Twitter     :http://www.twitter.com/m_cucchiara
> > G+          :https://plus.google.com/107903711540963855921
> > Linkedin    :http://www.linkedin.com/in/mauriziocucchiara
> >
> > Maurizio Cucchiara
> >
> >
> >
> > On 20 October 2011 15:04, Arpan <arpan.deb...@gmail.com> wrote:
> > > Hi All,
> > >
> > > I have the requirement to show a message depending on some condition.
> > >
> > > My approach is to check the condition in the action class and add
> action
> > > message.
> > >
> > > The message is written in the resource.properties file. But the problem
> > is
> > > that some part of the message should be bold or colored.
> > > Is there anyway I can add styling in the properties file?
> > >
> > > Thanks
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>

Reply via email to