wood burning stoves*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 58
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: 60810

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: contextpath in javscript
Similar Threads
JSF context problem
Tomcat not reading context.xml on deployment
easy uri context path req.getRequestURI()
WAR file issue
web app deployment