Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting parameters from a SimpleTagSupport derived handler

 
Karl Krasnowsky
Ranch Hand
Posts: 97
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought this would be relatively simple, but now I'm not so sure.
In a doTag() block of my handler I want to detect if a certain parameter had been passed into the page via url, e.g.,



I want to find the showkey parameter, but I don't see anything in the SimpleTagSupport that would provide such access.

There must be a way to do this?

Thanks,
K2
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All this information is on the request, which can be obtained from the PageContent.
 
Karl Krasnowsky
Ranch Hand
Posts: 97
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:All this information is on the request, which can be obtained from the PageContent.


Yea, got that, but how do you get to the PageContent from the SimpleTagSupport? [before I searched coderanch]

Okay... so I found a reply from you for this very question a real long time ago here:

http://www.coderanch.com/t/288360/JSP/java/SimpleTagSupport

I should have done a bit more searching...

thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic