Action
2つのクラス間でデータを渡そうとしています。私は現在これをやっています
私の最初のアクションクラスで
doExecute(){
request.setAttribute("Order_ID", 2);
// code to find forward to next Action class
}
次のアクションクラスで
doExecute(){
Object id = request.getAttribute("Order_ID");
// code to process id
}
ただし、getAttribute()
メソッドは常にnullを返します。相互に続く2つのアクションフォーム間でデータをプロパティで渡すにはどうすればよいですか?
前もって感謝します