aspose file tools
The moose likes JSP and the fly likes Custom tag as value of another custom tag Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Custom tag as value of another custom tag" Watch "Custom tag as value of another custom tag" New topic
Author

Custom tag as value of another custom tag

vijaya bacina
Ranch Hand

Joined: Aug 23, 2005
Posts: 155

here javascript:var tag will create a java script variable and another tag will flush out all this kind of variables at the end of file.
getUrl tag will return url for the type passed.
Is there a way to make this work without using scriptlets?
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 48842

You cannot use a custom tag as the attribute of another tag.

vijaya bacina wrote:Is there a way to make this work without using scriptlets?

You never need to use scriptlets. Ever. You just need to set up your tags correctly.

For example, your 'out' tag should have the ability to put its result into a scoped variable, just like <c:out> does. That way, in your other tag, you can just use the EL to express the value as the attribute.

This message was edited 2 times. Last update was at by Bear Bibeault



[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
vijaya bacina
Ranch Hand

Joined: Aug 23, 2005
Posts: 155
Thanks. I understood what you mean. i will try to change my custom tag and see.
 
 
subject: Custom tag as value of another custom tag
 
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture