This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Grokking Bitcoin and have Kalle Rosenbaum on-line!
See this thread for details.
Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

base path resolving problem  RSS feed

 
Ranch Hand
Posts: 45
Fedora Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using



variable for generating relative path for navigation in my JSP pages,
Now I have to make the host entry in "${Windows}/system32/driver/etc/hosts" as 'mysite'
In this condition I am not being able to generate links for my images(and everything else) as they are missing '/mysite/'
a big problem.

I got the path some how by

code.

But now when I am trying to use it with include tag as it was
.
And it throws exception with unterminated tag '%'.

I hope you got my problem. I want shortest way to resolve the problem. (And systematic also. )

Regards,
Rudradutt Joshi.
 
Marshal
Posts: 67256
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't use a run-time variable in a compile-time directive.

But in this specific case, why do you feel you need to? The URL used in the include directive is context-relative and does not need the context path.
 
CLUCK LIKE A CHICKEN! Now look at this tiny ad:
ScroogeXHTML - the small and fast RTF to HTML converter library
https://coderanch.com/t/707504/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!