cool_baba
asked on
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
Thanks
i assume u are working with struts so, /Page.do
otherwise replace it with, /whateverjsppage.jsp
otherwise replace it with, /whateverjsppage.jsp
here are the details of the attributes used in window.open
http://www.javascripter.net/faq/openinga.htm
http://www.javascripter.net/faq/openinga.htm
ASKER
and what about passing parameters?
say for example the url to open is "/whateverjsppage.jsp" then u can append parameters as in normal html link like
/whateverjsppage.jsp?param 1=value1&p aram2=valu e2¶m3= value3
then the link will become
<a href='' onClick="window.open('/wha teverjsppa ge.jsp?par am1=value1 ¶m2=va lue2¶m 3=value3', '_blank',' menubar=no ,left=50,t op=50,heig ht=500,wid th=1000,sc rollbars,r esizable=y es');">Lin k</a>
/whateverjsppage.jsp?param
then the link will become
<a href='' onClick="window.open('/wha
ASKER
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.
I would appreciate if you could give me a small example, with one field on html and displaying it on JSP page.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Its working.. thanks alot .
<a href='' onClick="window.open('/Pag