• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding response.sendredirect  RSS feed

 
sruthi sri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..i have a jsp page having two report links.If i click on a link it is getting opened in new window using response.sendRedirect.If the second link is clikced it should be opened in the previous window which was opened already.the user should not be able to see the two report pages at a time .

Please reply ..it is urgent ..Thanks in advance ..
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When you use the Anchor tag, <a> if you specify a target attribute with a value different than that of the current frame the response will open up a new window. Either don't specify the target attribute as it defaults to the same window or use target="_self".

Cheers,
Raj.
[ October 06, 2008: Message edited by: Raj Kamal ]
 
sruthi sri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I i am redirecting the page using response.sendredirect(URL).How can i check whether that window is already opened or not ?if it is opened i have to reload the page in the same window other wise new window should be opened.How will we check whether the window is already opened based on window name

thanks..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!