wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 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
Marshal

Joined: Jan 10, 2002
Posts: 60048
    
  65

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
easy uri context path req.getRequestURI()
WAR file issue
Tomcat not reading context.xml on deployment
web app deployment
JSF context problem