• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

'Submit' button in a different page? (frames)

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,
I just wanted to check if it was at all possible with struts to be able to have 1 page contain values that must be submitted/saved and the button to save/submit is on a different page? (We use iframes for this, in the design, we have the values in one page, and the buttons in another page = in the end it looks just like it was on a single page, it just have a 'panel' like design).
I tried to have the execute method of the action call (the action that will happen when the button is clicked) the form of the page that has the values like below (sample code):

They end up not having any values at all when I check them. I just want to confirm whether or not it was possible to do this. Sorry if ever my explanation don't makes much sense, I'm not quite sure how to explain it myself :-)
Thanks!
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This problem actually is not related to Struts. Moving to the HTML and JavaScript forum.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<button name="HMM" value="Submit" onclick="document.FrameName.FormName.submit()">
 
reply
    Bookmark Topic Watch Topic
  • New Topic