I wonder whether i can use 1 action to load data and update it?
It mean i have a page call about.jsp, manager will click a link to access this page. after redirect into this page, this page load content of about and update content if user edited data but two tasks can be use 1 action.
my i dea is, user use a action call AboutAction to load data to about.jsp page, after end user edited data on about.jsp and click submit, it will send data to AboutAction and update it?
Can i do that? and how?
First thing What you asked is one of the beauty of Struts2
xml :
Action :