permaculture playing cards*
The moose likes JSP and the fly likes Accessing JSP variables in a Tag Handler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Accessing JSP variables in a Tag Handler" Watch "Accessing JSP variables in a Tag Handler" New topic
Author

Accessing JSP variables in a Tag Handler

L Goundalkar
Ranch Hand

Joined: Jul 05, 2001
Posts: 395
Hi,
I am creating a custom tag which builds a list view. I have certain String array in my JSP and I need to pass the same into my Tag Handler class. I tried following ways :
1. In doStartTag() implementation I used

This is not recognizing the String array variable defined in my JSP.
2. I used separate attribute which is passed from the JSP to the custom tag as parameter having "rtexprvalue" as true. But I cann't pass a Sting array into my tag handler class. I can pass only String.
How can I access variables which are defined in the JSP using declaration block. i.e.
<%!
String[] myArray = new String[100];
%>
Thanks for the time.


SCJP, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing JSP variables in a Tag Handler