Passing array values as tag attributes

V

Venkatesh

Hello All,

I am new to JSP technology. Still getting a grasp.

I have one quick question. Request somebody to answer this.

Is it possible to pass string array (java.lang.String []) as value for
a JSP tag attribute? Basically, I'm coding a custom tag that writes
HTML <select>. For this, I would like to get the options to be shown
inside <select>, and the options should be given as an array of
strings. Is it possible to write such a tag? or should I get the
options as a single string (with delimiters) and do a string split
inside my doStartTag function?

Thank you,
Venkatesh
 
V

Venkatesh

Hi Manish,

Seems like dynamic attributes are available from JSP 2.0. We are using
Tomcat 4.1 (which supports JSP 1.2). Is there any way we can use
dynamic attributes here?

Thank you,
Venkatesh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top