[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Re: Problem with <jsp:include
Hi Folks,
as you see, I'm more or less online again.
If mails bounced back, please send again to
alph@gjt.org.
Hi Fred!
>
>Hello,
>
>I've got a probleme when i use an expression (<%=3D ... %>) as the =
>page's tag value for the <jsp:include .../> JSP tag.
>The following doesn't work, return an error during the parsing :=20
>
><jsp:include page=3D"<%=3D =
>"/intranet/securite/FicheVisuSecurite.jsp?id_employe=3D"+request.getParam=
>eter("id_employe") %>" flush=3D"true" />
Yes thats pretty normal. Remember that its XML-Syntax, you're using here.
That means the value of the attribute page will be terminated by the
first non escaped " and read expression in that light.
Use '<%= ..%>' if you want to use " in your expression or
escape each " by using \".
>
>Meanwhile, the following script works fine :
>
><% String inc =3D =
>"/intranet/securite/FicheVisuSecurite.jsp?id_employe=3D"+request.getParam=
>eter("id_employe"); %>
><jsp:include page=3D"<%=3D inc %>" flush=3D"true" />
>
>Is it normal ?
>
>Bye,
>
>
> Fred
>
Ciao,
Carsten