Submit Button Open a new Page

Posted on 2006-05-04
Last Modified: 2012-06-27
Hi I am inew to JSP ..

I have a JSP page with a submit button which directs to the next page ..I was wondering if the new processed page can be opened in a new page so that I still have the original page opened.

Is that Possible ?

Question by:micro_learner
    LVL 14

    Accepted Solution

    Yes, just add target="_blank" on your <form> tag, it will submit the page to a new window.
        <form action="..." method="post" target="_blank">
    LVL 11

    Assisted Solution

    when u submit the first page say to the next page (b.jsp). The following should be the code of b.jsp

    out.println( "'/whatever/page.jsp','_blank','menubar=yes,left=0,top=0,height=768,width=1024,scrollbars,resizable=yes');" );
    // The blank page will still remain open.

    /whatever/page.jsp --> this will be page link u wish to open in a new window.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    For Sennheiser, comfort, quality and security are high priority areas. This paper addresses the security of Bluetooth technology and the supplementary security that Sennheiser’s Contact Center and Office (CC&O) headsets provide.  
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now