webtier@glassfish.java.net

Re: [webtier] url attribute of <h:graphicImage/> not accepting 2nd request parameter

From: Joel Weight <digitaljoel_at_gmail.com>
Date: Wed, 13 Oct 2010 22:05:01 -0600

The & character in HTML represents an entity, so you need the ampersand
entity. so try this.

url="/servletUrl?para1=name1&amp;para2=name2"

Joel

On Wed, Oct 13, 2010 at 7:41 PM, <webtier_at_javadesktop.org> wrote:

> I use a Servlet to stream an image from the database and I use the
> <h:graphicImage/> tag for display as follows:
>
> [code]<h:graphicImage url=”/servletUrl?para1=name1&para2=name2”/>[/code]
>
> The problem starts if I include the 2nd parameter (&para2=name2) and I get
> the following error message:
>
> [code]The reference to entity "para2" must end with the ';' delimiter
> [/code]
> Am I missing anything?
> [Message sent by forum member 'miss_duke']
>
> http://forums.java.net/jive/thread.jspa?messageID=485120
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>