Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

data struts 2 form being lost!!

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone!

I have a struts 2 form in which I collect some user information: name, surname, address... under a session variable.

In the same form, the user has a link to create a "workgroup", for what I have an <a href="<s:url action='YYY' namespace='/ZZZ'>"> linkX </a>
(I use s:submit to target a different action)

So, the problem is: the user fills some information, then she clicks on the link to create a new workgroup and when she returns to the previous page,
the data she entered is lost! (it seems data is not stored in session...)

I see the problem is using the href element to redirect to another action (data is not being transfered) but I can't figure out how to fix it, so any help, tip, advice, recommendation...
would be so much appreciated!!
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Without more details it'll be hard to help.

Clicking a link, however, won't submit a form, unless you write the JavaScript to make it do so.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic