Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

base path resolving problem

 
Rudradutt Joshi
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!