| Author |
JSP directive attribute from expression
|
Martin Lira
Ranch Hand
Joined: May 26, 2004
Posts: 97
|
|
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
Joined: Jan 10, 2002
Posts: 56185
|
|
No. There is no work-around. I cannot imagine a scenario where you need to do this. What is your actual issue?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Martin Lira
Ranch Hand
Joined: May 26, 2004
Posts: 97
|
|
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
Joined: Jan 10, 2002
Posts: 56185
|
|
|
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
Joined: Jan 10, 2002
Posts: 56185
|
|
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 ]
|
 |
 |
|
|
subject: JSP directive attribute from expression
|
|
|