• 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

Saving user enter values in a form

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a struts form. Inside the form, there is a hyperlink that will redirect the user to the "Create email address" page, which the user can submit the 2nd page to create the email address. Once the submission is completed, it will redirect back to the first page. Now my problem is, any info the user enters on the first page is lost since it is a hyperlink redirect, not form submission so Struts won't populate the form bean on the first page.

Any suggestions on how to solve the problem?
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, for your pbm, I have done a similer one and it works.

U said Once the submission is completed, it will redirect back to the first page, but it is a hyperlink redirect. I use meta to redirect the page to an action but not a static page, like this:

<META HTTP-EQUIV="refresh" CONTENT="0;URL=http://localhost:8080/myApp/action/ShowEntryFormAction.do">

So I guess you can do this:
I believe to display the first page (which is that form), you should have an action class right? So just in the create email page (second page), you redirect it to call your first page's action class again, so all the form Bean's info will be displayed again.

Hope this helps.
 
reply
    Bookmark Topic Watch Topic
  • New Topic