You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by Abbas Adel <my...@gmail.com> on 2008/05/18 14:21:17 UTC
Tiles variables doesn't render in OC4J
Dears,
I am trying to use Tiles 2 + Struts 2 on Oracle OC4J but the following error
happen:
in the jsp code i typed:
<tiles:getAsString name="isOpen" />
on the html source it was rendered:
${isOpen}
the same application works fine on Apache tomcat.
Any clue?
Thanks a lot
BISO
Re: Tiles variables doesn't render in OC4J
Posted by Abbas Adel <ab...@asset.com.eg>.
Oh
Thanks Antonio
On Mon, May 19, 2008 at 11:28 AM, Antonio Petrelli <
antonio.petrelli@gmail.com> wrote:
> 2008/5/19 Abbas Adel <ab...@asset.com.eg>:
> > isOpen is a variable in the page scope.
>
> You got it wrong, then.
> <tiles:getAsString name="isOpen"> renders, as a string, the value of
> the Tiles attribute named "isOpen", not a page-scoped attribute
> rendered this way.
> You'd better use <c:out> tag or similar tags.
>
> Ciao
> Antonio
>
Re: Tiles variables doesn't render in OC4J
Posted by Antonio Petrelli <an...@gmail.com>.
2008/5/19 Abbas Adel <ab...@asset.com.eg>:
> isOpen is a variable in the page scope.
You got it wrong, then.
<tiles:getAsString name="isOpen"> renders, as a string, the value of
the Tiles attribute named "isOpen", not a page-scoped attribute
rendered this way.
You'd better use <c:out> tag or similar tags.
Ciao
Antonio
Re: Tiles variables doesn't render in OC4J
Posted by Abbas Adel <ab...@asset.com.eg>.
Hi Antonio
isOpen is a variable in the page scope.
I think the problem in the jasper because it can't translate ${} variables.
On Sun, May 18, 2008 at 7:47 PM, Antonio Petrelli <
antonio.petrelli@gmail.com> wrote:
> 2008/5/18 Abbas Adel <my...@gmail.com>:
> > I am trying to use Tiles 2 + Struts 2 on Oracle OC4J but the following
> error
> > happen:
> >
> > in the jsp code i typed:
> > <tiles:getAsString name="isOpen" />
> >
> > on the html source it was rendered:
> > ${isOpen}
> >
> > the same application works fine on Apache tomcat.
>
> I can't understand "isOpen" is a name of a Tiles attribute, or an
> attribute in request, session or application scope?
>
> Antonio
>
Re: Tiles variables doesn't render in OC4J
Posted by Antonio Petrelli <an...@gmail.com>.
2008/5/18 Abbas Adel <my...@gmail.com>:
> I am trying to use Tiles 2 + Struts 2 on Oracle OC4J but the following error
> happen:
>
> in the jsp code i typed:
> <tiles:getAsString name="isOpen" />
>
> on the html source it was rendered:
> ${isOpen}
>
> the same application works fine on Apache tomcat.
I can't understand "isOpen" is a name of a Tiles attribute, or an
attribute in request, session or application scope?
Antonio