JSP / Javascript popup to another jsp page

From a basic javascript popup, is it possible to display another JSP page without going to the server.

<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'){
popUpWin = window.open(href, "_blank", 'resizable=1,width=500 height=550,scrollbars=yes');
return false;

Who is Participating?
Sathish David Kumar NConnect With a Mentor ArchitectCommented:
in url u jsut mention like this url='/urprojectNmae/jsp/login.jsp'
enachemcConnect With a Mentor Commented:
you cannot display a jsp page on a client without going to the server (JSPs are interpreted ONLY on the server)
Sathish David Kumar NArchitectCommented:
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 )
you cannot display a JSP without going to the server
the browser cannot interpret a JSP, just HTML
WaponiAuthor Commented:
The jsp in the url does do work..., (not sure why),
but I could see cases where it would not be the best practice.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.