File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes attributes to 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "attributes to custom tags" Watch "attributes to custom tags" New topic
Author

attributes to custom tags

madhup narain
Ranch Hand

Joined: Dec 14, 2004
Posts: 148
Which options correctly pass two attributes to a custom tag?



I chose the second one over the first ? But the answer was stated incorrect. I cant unserstand why ?


Money for nothing and Java for Free
SCJP, SCWCD
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1636
    
  23

Hi Madhup,

The <jsp:attribute> tag doesn't have a value attribute, you have to pass the value in the body, like this:

Regards,
Frits
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: attributes to custom tags
 
Similar Threads
Date comparision
Which options correctly pass two attributes to a custom tag ?
pass two attributes to a custom tag
jsp:attribute - HFJ 472
problem on c:set