• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

Problem with invocation of a single instance of a jsp page

Hi experts...
Lets say that i have a link and when i click that link i go into that jsp page.
But when i click that link again another instance of that page is got when the previous page is already present.Now there a two instances of the same jsp page.
How can i restrict that link to invoke only a single instance of that jsp page???
Please help...
0
gaugeta
Asked:
gaugeta
  • 7
  • 6
1 Solution
 
objectsCommented:
check that the a tag does not have a target attribute
if it does then remove it
0
 
objectsCommented:
if you actually want it to open a new window then give it a name instead
eg.  target="mywindow"
0
 
Sathish David Kumar NCommented:
Check ur windows option . you will set as open in new window !
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
gaugetaAuthor Commented:
@objects & @dravidnsr:Currently the jsp page is opeaned by the code
<a href="javascript:openInternalReports('defaultInternal.jsp');"></a>
I want the jsp page to be open in a anew jsp page but only a single instance of it.
Please help...
0
 
objectsCommented:
problem looks like its in your javascript
0
 
gaugetaAuthor Commented:
@objects:
function openInternalReports( pLoc )
{
  window.open(pLoc, '_blank', 'height=800,width=900,resizable=1,menubar=0,toolbar=0');
}
This is my javascript function opeaning that jsp page.
Please help...
0
 
objectsCommented:
>   window.open(pLoc, '_blank', 'height=800,width=900,resizable=1,menubar=0,toolbar=0');

change it to :


  window.open(pLoc, 'mywindow', 'height=800,width=900,resizable=1,menubar=0,toolbar=0');
0
 
gaugetaAuthor Commented:
@objects:It worked like a charm.Can you explain the solution.
0
 
gaugetaAuthor Commented:
@objects:If any user clicks on it ifor the second time onwards without closing the previously opeaned page I need to display already opeaned.How do i do it???
Please help...
0
 
objectsCommented:
> If any user clicks on it ifor the second time onwards without closing the previously opeaned page I need to display already opeaned.How do i do it???

sorry, I don't understand what you mean
0
 
gaugetaAuthor Commented:
If any user tries to open the jsp page even when an instance of the jsp page is already present
i.e If a user tries to open that jsp page without closing the previously opeaned page.
I need to display a message in an alert like already opeaned.
How do i do it...
Please help...
0
 
objectsCommented:
not sure you can easily.
What it will currently do is reload the opened page
0
 
gaugetaAuthor Commented:
@objects:How to prevent it to reload and save the page contents as it is if any changes in the further locations take place.
It would be better if that page would not reload.
Please help...
0
 
objectsCommented:
not sure how you would achieve that
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now