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

How to get object from Valuestack and pass it to another action?

 
Davie Lin
Ranch Hand
Posts: 294
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an employee object on ValueStack and I know it's there because in menu.jsp



is displaying properly, so how do I pass this employee to another action?

I have



and confuse on what to put for value attribute, anything in "" will be interpreted as String, and I get noSuchMethod exception

setEmployee(Ljava.lang.String) I have setEmploye(Employee employee) instead. I didn't think I need a EmployeeTypeConverter class because I want to take the current Employee object from ValueStack not instantiate another Employee object.

any suggestion is appreciated
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't pass "an object" as a URL parameter--the only thing HTTP passes in URLs or form submissions is strings.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic