File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

to open jsp on different window if request is from someother jsp page & in same windo

 
prashant wath
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i had 3 pages
home.html
mail.jsp
chat.jsp
My requirement is
if user requests for mail/chat.jsp from home.html then the page should openn in same window.
Otherwise if requests for mail.jsp from chat.jsp , Page should open in other window.
If anybody has solution pls help me.
If possible pls mail at prashant_wath@yahoo.co.in
thanks
 
Mahajan Bhupendra
Ranch Hand
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
on home.html
links should be..
<a href="mail.jsp">Check Mail</a><br>
<a href="chat.jsp">Chat</a>
on mail.jsp
<a href="#" onClick="javascript:window.open('chat.jsp')">Chat here</a>
this should work..
bhupendra
 
Terence Doyle
Ranch Hand
Posts: 328
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
You can also do it this way:
<a href="mail.jsp" target="blank">Check Mail</a><br>
<a href="chat.jsp" target="blank">Chat</a>
------------------
Terry Doyle
Sun Certified Programmer for Java 2 Platform
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic