摘要 |
PURPOSE: A search condition maintenance method in a web application using a session cookie and a system thereof are provided to considerably reduce the amount of coding by reusing search conditions which are stored in a search condition maintenance module after searching. CONSTITUTION: Search transaction is divided into an initialization mode, search mode and request mode, and search conditions are initialized in the initialization mode. A search is performed according to the search conditions, and the search conditions are stored in a session cookie. A search condition maintenance module obtains the search conditions stored in the session cookie in the request mode and performs a search again. [Reference numerals] (AA) //searching condition maintaining module pseudo code; (BB) Public-accessible method{; (CC) If(searching mode) {; (DD) Searching conditions are stored in a session cookie; (EE) Else if(request mode) {; (FF) If(there is search information in the session cookie.){; (GG) Objects which can be extracted from a realization page such as HttpServletRequest receives the search information in the session cookie; (HH) Else { //initialization mode; (II) Searching condition maintaining module is initialized as the search information is removed from the session cookie |