Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can i add id to statement when using taglib? 1

Status
Not open for further replies.

prosper

Programmer
Sep 4, 2001
631
HK
<html:file property="files[0]" size="100" />
can i add id="upload" to this statement?
how to do it?
Anyone has document for more details in taglib?
Thanks a lot.
 
Your jsp code will now look like
Code:
<html:file property="files[0]" size="100" id="someId" />
You need to alter your tld to accept the new parameter, and recompile the html:file class, telling it what to do with the new parameter.

google for the basics of how to write a custom tag - there's some great online tutorials.

<marc>
New to Tek-Tips? Get better answers - faq581-3339
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top