Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

RequestDispatcher + Forward + Popup Window

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Harshil Mehta
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 don't get it. A whale wearing overalls? How does that even work? It's like a tiny ad wearing overalls.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic