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

Passing form data into and out of popup windows

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to figure out how to code a jsp page that contains a form of at least one field that has the capability to lookup the field value in the backend database. I have a simple Struts app that is connected to MySQL database. Not sure how to generate a popup window, provide the end user the ability to search the database to find the field value, and pass the value back to the parent screen with the selected value in the form field.

I looked into the Struts Layout tag library and it has the openpopup and closepopup javascript functions, but I can't seem to find a simple example of using these functions. Does anyone have (or can point me to) a sample code file that uses these functions - successfully?

I know there must be many alternatives, but can't seem to get a solid example to use a basis for my own application.

Please forward any information/examples that you may have. I would really appreciate it.

Scott
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic