Skip to main content

url attribute of not accepting 2nd request parameter

1 reply [Last post]
miss_duke
Offline
Joined: 2007-08-25
Points: 0

I use a Servlet to stream an image from the database and I use the tag for display as follows:

The problem starts if I include the 2nd parameter (&para2=name2) and I get the following error message:

The reference to entity "para2" must end with the ';' delimiter<br />

Am I missing anything?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joel Weight

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

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

Joel

On Wed, Oct 13, 2010 at 7:41 PM, wrote:

> I use a Servlet to stream an image from the database and I use the
> tag for display as follows:
>
> [code][/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@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>
>
[att1.html]