• 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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


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. )

Rudradutt Joshi.
Posts: 67224
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.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!