This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "contextpath in javscript" Watch "contextpath in javscript" New topic
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 63227
    
  69

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: contextpath in javscript
 
It's not a secret anymore!