Re: A little model help...
Travis Reeder <[email protected]> Sat, 28 Feb 2004 18:20:53 -0700
| Newsgroups | gmane.comp.web.maverick.general |
|---|---|
| Message-ID | <[email protected]> |
Add this to your c:out tag: escapeXml='false'
Ed Thompson wrote:
> My model object defines the following string:
>
> protected static final String navButton1=
> "<a class=\"nav\" href=\"titleList.m\">Back to Titles </a>";
>
> Which my JSP implements as:
> <c:out value="${model.navButton1}"/>
>
> But what I get in the HTML is:
> <a class="nav" href="titleList.m">Back to
> Back to Titles </a>
>
> I tried escaping the <> symbols, but the java compiler complains.
>
> What am I doing wrong?
>
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> [INVALID FOOTER]
>
> .
>
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
[INVALID FOOTER]