This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Scriptlets in Custon Tags

 
dennis zined
Ranch Hand
Posts: 330
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks!

Need help with my custom tag. I am able to pass in the first parameter to my custom tag using jstl-like code (see below). However, I can never get the second parameter to work if I pass it in using jsp scriptlet.



Am I missing something?

Thanks.
[ November 14, 2004: Message edited by: dennis zined ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you enabled run-time expressions for that attribute in the tld?
 
dennis zined
Ranch Hand
Posts: 330
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply.

Yep. In my tld file, both parameters have the runtime expressions turned on.
 
dennis zined
Ranch Hand
Posts: 330
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it even possible to pass parameters from a JSP scriplet to a custom tag?

Thanks

- Custom Tag newbie
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I used to do it all the time. (I no longer use scriplets or sciptlet expressions on my pages in favor of the JSTL and EL ).
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way "I never get it to work" is not a very good description of the problem you are having. Some detail might help.

One thought: should



perhaps be



?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic