Solved

JSP / Javascript popup to another  jsp page

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
topping1 challenge 7 90
java 8 lambda expresssions exception handling 3 88
micro services spring boot application error 3 183
custom annotations 9 38
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
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 …
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.

785 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