This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

May include run-time value as attribute in custom tag?

 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<datetime:currentdatetime dateOnly="<%= request.getParameter("dateonly") %>" />

May include <%= request.getParameter("dateonly") %> as attribute value like above, in custom tags(struts)?

eg...
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happened when you tried it?

Nothing to do with Struts; moving to servlets. JSP? JSP.
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in jsp try worked, but in Struts custom tags did not, gives below:

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a syntax issue.

Why do you use code tags if you disable them?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you're using double quotes twice--maybe try switching that up a little.
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in normal html attributes i find NO PROBLEM...ONLY here problem...
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So... maybe try what I said.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[quote=Leonidas Savvides]in normal html attributes[/quote]
"Normal html" attributes -- in fact all HTML markups -- are nothing but template text and have nothing to do with JSP processing. Custom tags are a completely different matter.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!