• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing JSP variables in a Tag Handler

 
L Goundalkar
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic