KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class AuthorPage extends Page
11 {
12    public AuthorPage()
13    {
14       super();
15    }
16    
17    public String JavaDoc handleRequest() throws SQLException
18    {
19       String JavaDoc authorId = ServletUtils.getRequestParam(request, "id");
20       //String cmd = ServletUtils.getRequestParam(request, "cmd");
21

22       Author author = Author.fetchAuthor(conn, Integer.parseInt(authorId));
23       request.setAttribute("author", author);
24       
25       return null;
26    }
27    
28 }
29
Popular Tags