Opening JSP in new custom-sized window.

I have three html pages and a JSP page. I want to add a link(could be a form "submit" button) to JSP on each html page so that when user clicks on that link,  JSP page opens on a separate custom-sized browser window with fields values of html page displayed on it.

Thanks
cool_babaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

fargoCommented:
for opening a custom size window
<a href='' onClick="window.open('/Page.do','_blank','menubar=no,left=50,top=50,height=500,width=1000,scrollbars,resizable=yes');">Link</a>

fargoCommented:
i assume u are working with struts so, /Page.do
otherwise replace it with, /whateverjsppage.jsp

fargoCommented:
here are the details of the attributes used in window.open
http://www.javascripter.net/faq/openinga.htm
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

cool_babaAuthor Commented:
and what about passing parameters?
fargoCommented:
say for example the url to open is "/whateverjsppage.jsp" then u can append parameters as in normal html link like
/whateverjsppage.jsp?param1=value1&param2=value2&param3=value3

then the link will become
<a href='' onClick="window.open('/whateverjsppage.jsp?param1=value1&param2=value2&param3=value3','_blank','menubar=no,left=50,top=50,height=500,width=1000,scrollbars,resizable=yes');">Link</a>

cool_babaAuthor Commented:
can i retrieve parameters by request.getparameter(); As i couldnot get variable values on jsp page.
 
 I would appreciate if you could give me a small example, with one field on html and displaying it on JSP page.
fargoCommented:
>> can i retrieve parameters by request.getparameter(); As i couldnot get variable values on jsp page.
where? in target jsp? Sure, as the link is pointing to whateverjsppage.jsp...u can get the appended parameters in this jsp like follows

String param1Value = request.getParameter("param1");
String param2Value = request.getParameter("param2");
String param3Value = request.getParameter("param3");

>>  I would appreciate if you could give me a small example, with one field on html and displaying it on JSP page.
please explain more what exactly do u wish? i couldn't understand it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cool_babaAuthor Commented:
Its working.. thanks alot .
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.