![]() |
|
|
|||||||
![]() |
Java - How do custom taglib fi=unctions access the request |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
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 |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |