Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / December 2004

Tip: Looking for answers? Try searching our database.

JSP forward POST requests to new window

Thread view: 
jrefactors@hotmail.com - 29 Dec 2004 06:25 GMT
request.getRequestDispatcher(url).forward(request,response);

will forward the POST request from previous page to the next page, but
they are on the same window.

I want to forward the POST request to a new window:

i.e.
window.open("http://localhost"+"<=url>",'url_win','menubar=no,scrollbars=no,width=800,height=800');
Is it possible? any ideas?? thanks!!
Andrew Thompson - 29 Dec 2004 06:34 GMT
> request.getRequestDispatcher(url).forward(request,response);

I would like to think this is a repost of
"request.getRequestDispatcher(url).forward(request,response); problem"
on c.l.j.p some, ..4 and a half hours ago now, taking hints from Ryan
Stewart's advice to ask an actual question.  Unfortunately, since you
merely reposted the text, that seems unlikely.

Why did you repost it?

[ F'Ups set to c.l.j.help ]

Signature

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

Ryan Stewart - 29 Dec 2004 17:11 GMT
>> request.getRequestDispatcher(url).forward(request,response);
>
[quoted text clipped - 7 lines]
>
> [ F'Ups set to c.l.j.help ]

Actually, I understand this one a little better. My first answer is still
the same: popups are evil. Take into account that even IE has popup blocking
now. Do you really want to use a popup? If you still think so, then then
next answer is: I think you're confused. You don't "POST to a window". A
POST is a type of request from a browser to a server. Do you mean you want
the response of a request to go to a different browser? Sorry, that doesn't
work, and rightly so. To get the effect you seem to be searching for, you'd
have to include all request parameters as part of the query string to your
URL so it can send a similar request to what was already sent and get a
response itself. But again, popups are very widely regarded as a Bad Idea.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.