File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Page Redirection in a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Page Redirection in a JSP" Watch "Page Redirection in a JSP" New topic
Author

Page Redirection in a JSP

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9622
    
    2

Guys,

I have a scenario wherein I open a popup from a jsp page. I make some changes in that pop up which itself is a jsp page and when submitting I want to close the popup and refresh the parent page from which I open the popup. The problem I face here is that I use ATG and the navigations are not properly defined and I"m quite new to this technology. Any ideas on how to do this with simple javascript. My idea is to ship the actual url that I see in the address bar of the browser when I open the popup and when clicking the Submit button in the popup, refresh the url that I got when I opened the popup. Any ideas on this?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Please be sure to ask JavaScript questions in the HTML/JavaScript forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9622
    
    2

Thanks for moving this in the right forum. Any ideas on my post above?
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874


Jothi ,
If the parent window is GET request , you can go ahead with that approach.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9622
    
    2

How to get the actual URL that I see in the address bar of the browser?
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874



How to get the actual URL that I see in the address bar of the browser?

window.location will give the URL. howz that going to help you.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

What is ATG? Is it relevant to the question?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9622
    
    2

http://www.atg.com/ is a technology similiar to popular frameworks like Struts/Hibernate together.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Page Redirection in a JSP