This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes accessing page from custom tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "accessing page from custom tags" Watch "accessing page from custom tags" New topic
Author

accessing page from custom tags

scottie zman
Ranch Hand

Joined: Aug 08, 2001
Posts: 40
I have some custom tags. How do I access the page they are used in: session variables, form inputs, etc... without using parameters and set commands?
thanks,
Zman
scottie zman
Ranch Hand

Joined: Aug 08, 2001
Posts: 40
found it...
String varname= pageContext.getAttribute( "sessionVarName", PageContext.SESSION_SCOPE).toString();
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: accessing page from custom tags
 
Similar Threads
Drop Down Menu if i selected countries it has to display States
Formatting data for view
Default value for body-content inside tld
Problem with custom tags
Calling custom tags from html