Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Open new window using Struts

 
Tanu Gulati
Ranch Hand
Posts: 113
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I tried opening a new window using html:link attribute but could not do so. I got to know that it is possible only through javascript window.open method.(is it true that struts 1.1 do not provide this functionality)

Any way when i tried using window.popup my jsp page did not load since the page which I am giving to javascript method is relative path (like /jsp/projectLeader.jsp) do I need to pass a full path (I dont think so there must be some way)


 
Chandan Sarma
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Please use it <a href="/SelectName.do" target="Name">Select</a> . for me its opening a new window.
 
Tomas Bilek
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must use attribute "target".

<s:a href="" target="_blank"/>

_blank Open in a new window or tab
_self Open in the same frame as it was clicked
_parent Open in the parent frameset
_top Open in the full body of the window
framename Open in a named frame
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic