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

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: 67162
169
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!