Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

JSP / Javascript popup to another  jsp page

Posted on 2011-03-22
5
717 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Setting strict transport security header in header not working 1 110
jsp login check 12 42
ejb entity bean example 2 12
ejb mdb examples 1 8
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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.

856 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