Tiles variables doesn't render in OC4J

View: New views
5 Messages — Rating Filter:   Alert me  

Tiles variables doesn't render in OC4J

by Abbas Adel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

by Antonio Petrelli-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/5/18 Abbas Adel <mybiso@...>:

> 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

by Abbas Adel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> wrote:

> 2008/5/18 Abbas Adel <mybiso@...>:
> > 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

by Antonio Petrelli-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/5/19 Abbas Adel <abbas.adel@...>:
> 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

by Abbas Adel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oh
Thanks Antonio

On Mon, May 19, 2008 at 11:28 AM, Antonio Petrelli <
antonio.petrelli@...> wrote:

> 2008/5/19 Abbas Adel <abbas.adel@...>:
> > 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
>
LightInTheBox - Buy quality products at wholesale price