Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

window.open()

 
Jay Abrahm
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have an html popup which was working just fine.

When I have moved all the jsps into WEB-INF/views I was unable to get window.open("./popUp.jsp") to work. The calling jsp also resides in the same folder.

Many of the other files in the page I have managed to link by using c:url and c:include. Can I do something similar here.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Page-relative URLs are death in a web application. See the JSP FAQ for forming proper server-relative URLs.
 
Jay Abrahm
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried all of that out..

var test = window.open("/WEB-INF/views/popUp.jsp","welcome","width=300,height=200");



I am wondering if my view resolver has something to do with it.



 
Jay Abrahm
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got this fixed. This shouldn't be in this forum....



Will redirect the html to the file in
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic