• Post Reply Bookmark Topic Watch Topic
  • New Topic

can't put "%= %" inside another one ?

 
Artemesia Lakener
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ACTION="<%= response.encodeURL(<%= url %> %>" doesn't work ??

I need to pass the "url" as a variable anyway. But it doesn't compile well.
 
peng xiaocheng
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please show your error code,
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No you can't nest scriptlet expressions. Why would you need to? If url is a scripting variable, just use:



Of course I'd further recommend dumping scriplets entirely and using the JSTL <c:url> tag to format urls.
[ August 01, 2005: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!