Solved

JSP / Javascript popup to another  jsp page

Posted on 2011-03-22
5
712 Views
Last Modified: 2012-05-11
Hello,
From a basic javascript popup, is it possible to display another JSP page without going to the server.

<td>
<a href="javascript:popup('monitor.htm?count=${status.count}', 'monitor','${jobRunner.job.jobId}','${jobRunner.job.jobId}')">${jobRunner.job.jobName}</a>

Right now the popup function does a request, but I really want it to goto another jsp and have that page do the request (buttons/forms, etc)

function popup(mylink, windowname,auxEmailid,uniqueFormId)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string'){
            //alert(usePassword);
            href=mylink+'&origId='+uniqueFormId;
}else{
   href=mylink.href;
}
popUpWin = window.open(href, "_blank", 'resizable=1,width=500 height=550,scrollbars=yes');
return false;

}
</td>
0
Comment
Question by:Waponi
  • 2
  • 2
5 Comments
 
LVL 12

Assisted Solution

by:enachemc
enachemc earned 50 total points
ID: 35194656
you cannot display a jsp page on a client without going to the server (JSPs are interpreted ONLY on the server)
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 35196153
yaa u can ....

in ur jsut mention the fileName. jsp page then it will go to that jsp ...(dont mention .do or .htm then iwill go to the server )
0
 
LVL 20

Accepted Solution

by:
Sathish David  Kumar N earned 200 total points
ID: 35196258
in url u jsut mention like this url='/urprojectNmae/jsp/login.jsp'
0
 
LVL 12

Expert Comment

by:enachemc
ID: 35196830
you cannot display a JSP without going to the server
the browser cannot interpret a JSP, just HTML
0
 

Author Closing Comment

by:Waponi
ID: 35259646
Thanks,
The jsp in the url does do work..., (not sure why),
but I could see cases where it would not be the best practice.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to find Tomcat initial memory and Max memory through command line windows 12 143
MaxSpan challenge 9 79
scoreUp challenge 14 56
countHi2 challenge 7 52
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now