Hello there, i read one of the post indicating this issues, i have some question as my application also similar to Kuching's problems...
(A) page 1 ==> (B) servlet 1==> (C) manager (DB retrieve) ==> (B) servlet 1==> (D) page 2
From (A) to (B), i am using the web.xml help to pass the request to servlet. In the doGet method(), i call the managerObject that is doing the connection and logic. Once the calculation and logic is done in (C), i will return it back to the (B). In (B) now, i will set the result (the return of the (C)) as a session and the redirect to (D) as a session. In (D) i will get the result as a session.
I am wondering if i would like to include a MessageObject for this application where should i put it in? I know all the database transaction are happend in the Manager (C) level, but then where should i include this MessageObject operation in?
public String main_message="";
public String sub_message="";
public String target_url="";
public String source_url="";
public String flat =""; //indication is a error message or a success_message;
1. i am wondering if i put it in (C), which is all the transaction of the DB take place, how am i suppose to pass the targe_url and source_url?
2. if i put it in the (B) which is the servlet, handling the traffic of the application, i would not able to know the error happend during the DB transaction as most of the error happend there.
Thus, how is the common practise for this kind of "message" handling things happend in web applicaiton? please share with me...