This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Changing the Target of a submitted form  RSS feed

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a scenario as follows.
My webpage has 2 frames and I am submitting a form in the first frame (which has the target as the second frame) to a servlet and currently the response is writtten to the second frame. I have a new requirement now. Upon submitting the form, I have to interface with another app and based on the response I have to do either one of this:
Case A: Write the results to the second frame
Case B: Pop-up a new window providing the user with some options and requesting him to select one and then submit the form in it to write the results in the second frame.

The first Case is simple and is existing currently.

If the response from the other app is the second case, then Can I change the target of the servelet dynamically to write to a new window instead of the second frame?
How do I do this?
Any suggestions would be greatly appreciated.

Thanks
 
Author and ninkuma
Marshal
Posts: 66807
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't. Once a request is sent to a specific target, there's no way to change which target the response will appear within. You will either need to use Javascript within that response to trigger further activity, or rework your requirements.
[ July 23, 2004: Message edited by: Bear Bibeault ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!