• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP directive attribute from expression

 
Martin Lira
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can we do this for a jsp directive:


I tried the first one and the jsp page does not compile and gives me error for the tag I am using <MS:tt/>

Is there a work around or as its a directive you have to hard code the uri attribute.

Thanks
Martin
[ October 21, 2004: Message edited by: Martin Lira ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. There is no work-around.

I cannot imagine a scenario where you need to do this. What is your actual issue?
 
Martin Lira
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear,
Its just incase uri location might be changed in future. You will not have to modify the jsp page. You just change a property file. We have multiple installations of our web-apps at our development facility, client place etc.

Martin
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps you could use a build-time mechanism to substitute the appropriate URI in place (Ant has such tools), but there's no run-time mechansim to do so.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And, if you like (I don't), you can abstract the URI in the web.xml file so that, in the event of a change, only the web.xml would need to be updated.
[ October 21, 2004: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic