It's not a secret anymore!
The moose likes HTML, CSS and JavaScript and the fly likes contextpath in javscript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "contextpath in javscript" Watch "contextpath in javscript" New topic

contextpath in javscript

trinadh reddy
Ranch Hand

Joined: Sep 22, 2005
Posts: 60
how can i get the contextpath in javscript file
i mean to say i need to get contextpath in .js file
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

You can't. That's a server-side concept. You'll need to embed it in the page using JSP.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: contextpath in javscript
jQuery in Action, 3rd edition