File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

data struts 2 form being lost!!

 
Lucas Grijander
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • 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!!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic