Go Back   Velocity Reviews > Newsgroups > Java
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Java - How do custom taglib fi=unctions access the request

 
Thread Tools Search this Thread
Old 05-19-2004, 08:35 PM   #1
Default How do custom taglib fi=unctions access the request


title says it all -
I can define functions in taglibs but would like some of these
functions to accesss the page and request -
is there any way to do this?


Steve Lewis
  Reply With Quote
Old 05-19-2004, 08:40 PM   #2
Sudsy
 
Posts: n/a
Default Re: How do custom taglib fi=unctions access the request
Steve Lewis wrote:
> title says it all -
> I can define functions in taglibs but would like some of these
> functions to accesss the page and request -
> is there any way to do this?


Since you typically extend TagSupport, you've already got access
to pageContext. You can invoke getPage or getRequest on that
instance. Easy as pi...



Sudsy
  Reply With Quote
Old 05-19-2004, 09:27 PM   #3
Chris Smith
 
Posts: n/a
Default Re: How do custom taglib fi=unctions access the request
Sudsy wrote:
> Steve Lewis wrote:
> > title says it all -
> > I can define functions in taglibs but would like some of these
> > functions to accesss the page and request -
> > is there any way to do this?

>
> Since you typically extend TagSupport, you've already got access
> to pageContext. You can invoke getPage or getRequest on that
> instance. Easy as pi...


Or, if you don't extend TagSupport, you stach off a copy of the
PageContext in your implementation of setPageContext, and then do the
same.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation


Chris Smith
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for access code request for access code MCITP 1 10-23-2008 03:42 PM
I cant access the MCP site T3M4N MCTS 1 03-18-2008 06:21 PM
Pix 515E Access List issue ally0000 Hardware 3 02-15-2008 01:34 PM
Pix 515E Access ist issue ally0000 Hardware 0 01-12-2008 10:09 AM
Cannot access one URL Elke General Help Related Topics 1 12-02-2006 11:36 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46