aspose file tools*
The moose likes JSP and the fly likes JSP directive attribute from expression Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP directive attribute from expression" Watch "JSP directive attribute from expression" New topic
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: 61768
    
  67

No. There is no work-around.

I cannot imagine a scenario where you need to do this. What is your actual issue?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 61768
    
  67

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: 61768
    
  67

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP directive attribute from expression