Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

contextpath in javscript

 
trinadh reddy
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't. That's a server-side concept. You'll need to embed it in the page using JSP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic