Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > forward the request to a window with specific parameters (please help)

Reply
Thread Tools

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

 
 
jrefactors@hotmail.com
Guest
Posts: n/a
 
      12-23-2004
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,menuba r=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!!

 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      12-23-2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
request.getRequestDispatcher(url).forward(request,response); problem jrefactors@hotmail.com Java 1 12-29-2004 05:13 AM
forward the request to a window with specific parameters (please help) jrefactors@hotmail.com Javascript 2 12-23-2004 11:30 PM
forward the request to a window with specific parameters (please help) jrefactors@hotmail.com Java 1 12-23-2004 10:37 PM
Re-forward declaration of types which were already forward declared qazmlp C++ 1 02-15-2004 07:00 PM
How do you make sure a frameset is loaded? I'm trying to open a frameset in a new window which shows a specific html page in a specific frame ck388 Javascript 1 09-24-2003 08:32 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57