forward the request to a window with specific parameters (please help)

Discussion in 'HTML' started by jrefactors@hotmail.com, Dec 23, 2004.

  1. Guest

    page0.asp->page1.jsp

    When the user click submit button in page0.asp, it will post the form
    request to page1.jsp.
    page0.asp and page1.jsp are in separate machines. In page1.jsp, based
    on the parameter
    interfaceName, it will forward to different jsp pages. However, we want
    to forward the request
    to a window with parameter like the following, without the menu bar and
    toolbar.

    The question is how to forward the request to a window like that?

    window.open("test2.jsp",null,

    "height=500,width=500,status=yes,toolbar=no,menubar=no,location=no");


    //page1.jsp
    <%
    String interfaceName = request.getParameter("interfaceName");
    if (interfaceName != null)
    { if (interfaceName.equalsIgnoreCase("id1"))
    url="/id1.jsp";
    else if (interfaceName.equalsIgnoreCase("id2"))
    url="/id2.jsp";
    else if (interfaceName.equalsIgnoreCase("id3"))
    url="/id3.jsp";
    //etc...

    request.getRequestDispatcher(url).forward(request,response);
    }
    %>


    Please help and advise. thanks!!
     
    , Dec 23, 2004
    #1
    1. Advertising

  2. On 23 Dec 2004 13:56:42 -0800, wrote:

    > However, we want
    > to forward the request
    > to a window with parameter like the following, without the menu bar and
    > toolbar.


    A 'pop-up'?

    Controlled intranet, or on the wilds of the internet?

    If it is the internet, toss what you want. The *user* generally
    wants *no* friggin* *pop-ups*. This is of major relevance to a
    web application, since browser and plug-in manufacturers are finally
    listenning to users and including pop-up blockers as default.
    Your web-app. will have a high maintentance/suppport overhead if
    you attempt to release an internet based web-app. with pop-ups.

    F'Ups set to c.l.javascript, as those folks have fought the hard
    yards when it comes to pop-ups.

    --
    Andrew Thompson
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.PhySci.org/ Open-source software suite
    http://www.1point1C.org/ Science & Technology
    http://www.LensEscapes.com/ Images that escape the mundane
     
    Andrew Thompson, Dec 23, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    302
    Andrew Thompson
    Dec 23, 2004
  2. Replies:
    1
    Views:
    6,308
    Ryan Stewart
    Dec 29, 2004
  3. KK
    Replies:
    2
    Views:
    646
    Big Brian
    Oct 14, 2003
  4. qazmlp
    Replies:
    1
    Views:
    614
    Jonathan Turkanis
    Feb 15, 2004
  5. Replies:
    2
    Views:
    249
Loading...

Share This Page