How to get the pageContext object in the ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get the pageContext object in the ftl

skpradeepkumar
Hi all,

        How to get the pageContext object in the ftl, if it is there how to
use it?

--
With regards,
S K Pradeep kumar
Reply | Threaded
Open this post in threaded view
|

Re: How to get the pageContext object in the ftl

David E Jones-3

What is a "pageContext" object?

It sounds like you're thinking about something else... like a JSP or  
something...

-David


On May 13, 2009, at 12:13 PM, S K Pradeep Kumar wrote:

> Hi all,
>
>        How to get the pageContext object in the ftl, if it is there  
> how to
> use it?
>
> --
> With regards,
> S K Pradeep kumar

Reply | Threaded
Open this post in threaded view
|

Re: How to get the pageContext object in the ftl

skpradeepkumar
Hi ,

   I want to use getProduct(PageContext pageContext, String attributeName)
method in the productWorker.java for that i need the pageContext object.


On Wed, May 13, 2009 at 11:59 PM, David E Jones <[hidden email]
> wrote:

>
> What is a "pageContext" object?
>
> It sounds like you're thinking about something else... like a JSP or
> something...
>
> -David
>
>
>
> On May 13, 2009, at 12:13 PM, S K Pradeep Kumar wrote:
>
>  Hi all,
>>
>>       How to get the pageContext object in the ftl, if it is there how to
>> use it?
>>
>> --
>> With regards,
>> S K Pradeep kumar
>>
>
>


--
With regards,
S K Pradeep kumar
Reply | Threaded
Open this post in threaded view
|

Re: How to get the pageContext object in the ftl

David E Jones-3

That method is only for use in the JSP page. You should use the one  
that accepts a request object instead.

A quick tip: if you want to use lower level code like this I highly  
recommend that you learn about the common objects (well, interfaces  
really) that are part of the Servlet API and related specifications  
(like the JSP one).

-David


On May 13, 2009, at 1:48 PM, S K Pradeep Kumar wrote:

> Hi ,
>
>   I want to use getProduct(PageContext pageContext, String  
> attributeName)
> method in the productWorker.java for that i need the pageContext  
> object.
>
>
> On Wed, May 13, 2009 at 11:59 PM, David E Jones <[hidden email]
>> wrote:
>
>>
>> What is a "pageContext" object?
>>
>> It sounds like you're thinking about something else... like a JSP or
>> something...
>>
>> -David
>>
>>
>>
>> On May 13, 2009, at 12:13 PM, S K Pradeep Kumar wrote:
>>
>> Hi all,
>>>
>>>      How to get the pageContext object in the ftl, if it is there  
>>> how to
>>> use it?
>>>
>>> --
>>> With regards,
>>> S K Pradeep kumar
>>>
>>
>>
>
>
> --
> With regards,
> S K Pradeep kumar

Reply | Threaded
Open this post in threaded view
|

Re: How to get the pageContext object in the ftl

BJ Freeman
In reply to this post by skpradeepkumar
look at an ftl that has a groovy file of the same name, uder the
WEB-INF/action directory.
all marshaling of data is done there.
these are passed to the ftl.
thought not the pagecontext you expect it will get you one the road to
using ofbiz

S K Pradeep Kumar sent the following on 5/13/2009 11:13 AM:
> Hi all,
>
>         How to get the pageContext object in the ftl, if it is there how to
> use it?
>

--
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.