Vita Rara: A Life Uncommon

Don't forget the getter

Great example. I can find answers in this site not in Struts2 books or other sites. At any rate, the above example works great as long as you remember to have a getter in your action for the object you want to access from the stack. I typically don't want to clutter up my actions code with unnecessary getters when only a setter is sufficient. Took me a minute to figure out I had forgotten the getter in order for the example to pick my ID off the stack. Thanks again for the new knowledge!

Reply

Please solve the math problem above and type in the result. e.g. for 1+1, type 2
  • Allowed HTML tags: <a> <img> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <h1> <h2> <h3>
  • Lines and paragraphs break automatically.
More information about formatting options