File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes RequestDispatcher + Forward + Popup Window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "RequestDispatcher + Forward + Popup Window" Watch "RequestDispatcher + Forward + Popup Window" New topic
Author

RequestDispatcher + Forward + Popup Window

Harshil Mehta
Ranch Hand

Joined: Mar 17, 2005
Posts: 64
Hello Ranchers,

Please help me in a strange problem which I am facing since last two days.
My requirement is one of the simple requirements. e.g. in a simple web application, user generally creates a web report. Among other input fields like report title, report data, etc. there is one input fields named 'report owner'. It is a select box with options populated from database by a DAO.

Now when the user tries to create report and finds no entry for say person named 'A' in the dropdown select box of 'report owner', he should be able to add the person 'A' in the user table and continue report creating.

I need to incorporate this functionality into this MVC web application. App has single controller which serves requests based on the querystring. Now on the report page, when user clicks on 'new', a popup window opens in which the form is present to capture name of user. Now when user clicks on 'Save' on the page, the form gets submitted to a handler and db operation takes place. Now I want to show result of the operation on the popup window which is still open.

For this I forward the request to url of popup window, however even after finishing forward, nothing gets displayed in popup window. No server error log messages are also displayed.

I am unable to understand that when user clicked on 'new', the same url was passed to window.open() function. That time it travelled to the page via controller only and page was displayed on popped up window, now when i submit form on the popped up window whose action is same url, respons does not reach to that page.

I am using iPlaner app server v6.0. I tried in Tomcat 5, and it is running fine. Am i missing something?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

I am using iPlaner app server v6.0. I tried in Tomcat 5, and it is running fine. Am i missing something?

Are you saying that your problem doesn't exist when running in Tomcat but does exist for iPlanet?


GenRocket - Experts at Building Test Data
Harshil Mehta
Ranch Hand

Joined: Mar 17, 2005
Posts: 64
Hey Gregg,
I am sorry for not putting the sentence properly.
Yeah, it is the case that it is running fine with Tomcat 5, but not with iPlanet 6.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RequestDispatcher + Forward + Popup Window