KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ashkelon > pages > SearchPage


1 package org.ashkelon.pages;
2
3 import org.ashkelon.util.*;
4 import java.sql.*;
5
6
7 /**
8  * @author Eitan Suez
9  */

10 public class SearchPage extends Page
11 {
12    public SearchPage() throws SQLException
13    {
14       super();
15    }
16    
17    public String JavaDoc handleRequest() throws SQLException
18    {
19       String JavaDoc simple = ServletUtils.getRequestParam(request, "simple");
20       if (StringUtils.isBlank(simple)) // to distinguish from initial page visit and actual search form submissions
21
{
22          return null;
23       }
24
25       String JavaDoc searchType = ServletUtils.getRequestParam(request, "srch_type");
26       if ("class".equals(searchType))
27       {
28          return "cls";
29       }
30       else
31       {
32          return "member";
33       }
34    }
35 }
36
Popular Tags