You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Treves <da...@macam98.ac.il> on 2001/02/04 19:03:22 UTC
adding dynamic content to
Hi, I tried to create a page which dynamically will add an id to each user
who enters the page, this id should be used by an applet. In order to do so
I used JSP to create that id, and now I am trying to insert that number as a
parameter to the applet:
<jsp:plugin type="applet" code="foo" codebase="/foo/bar" height="400"
width="300">
<jsp:params>
<jsp:param name="id" value="<%=jspID%>"/>
</jsp:params>
<jsp:fallback>
<b>oopsss... can't load the applet!</b>
</jsp:fallback>
</jsp:plugin>
Only that the "<%=jspID%> is not allowed by the Tomcat, it tells me that the
attribute (id) has no value.
Is there a problem with giving params values that way?
Thanks,
David.
Re: adding dynamic content to
Posted by Chris Janicki <Ja...@ia-inc.com>.
Just a guess... I've had several problems where the compiled page screws
up when it hits quotes. Try changing the double quotes (") to single
('), or none at all.
Also be sure to declare your variables: <%!int jspID;%> or whatever, so it
is in scope.
Chris
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 2/4/01, 1:03:22 PM, "David Treves" <da...@macam98.ac.il> wrote
regarding adding dynamic content to <jsp:param>:
> Hi, I tried to create a page which dynamically will add an id to each
user
> who enters the page, this id should be used by an applet. In order to do
so
> I used JSP to create that id, and now I am trying to insert that number
as a
> parameter to the applet:
> <jsp:plugin type="applet" code="foo" codebase="/foo/bar" height="400"
> width="300">
> <jsp:params>
> <jsp:param name="id" value="<%=jspID%>"/>
> </jsp:params>
> <jsp:fallback>
> <b>oopsss... can't load the applet!</b>
> </jsp:fallback>
> </jsp:plugin>
> Only that the "<%=jspID%> is not allowed by the Tomcat, it tells me that
the
> attribute (id) has no value.
> Is there a problem with giving params values that way?
> Thanks,
> David.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org