wood burning stoves 2.0*
The moose likes Servlets and the fly likes to open jsp on different window if request is from someother jsp page & in same windo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "to open jsp on different window if request is from someother jsp page & in same windo" Watch "to open jsp on different window if request is from someother jsp page & in same windo" New topic
Author

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

prashant wath
Greenhorn

Joined: Oct 19, 2001
Posts: 9
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

Joined: Dec 01, 2000
Posts: 118
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

<B>Bhupendra Mahajan</B>
Terence Doyle
Ranch Hand

Joined: May 30, 2001
Posts: 328
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


Raising Flares debut album 'Ignition' out now

http://www.raisingflares.com

Terry Doyle <br />SCPJ 1.4 , SCWCD , SCMAD(Beta)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: to open jsp on different window if request is from someother jsp page & in same windo
 
Similar Threads
how to redirect servlet to jsp on weblogic
Struts 2 result in New Window
issue in javascript
XML and JSP (Weird!!)
FullScreen mode??