以下是一个简单的SSH框架在JSP上显示数据库表格的实例:

1. 项目结构

```

project

├── src

│ ├── com

│ │ └── example

│ │ ├── controller

│ │ │ └── StudentController.java

│ │ ├── dao

│ │ │ └── StudentDao.java

│ │ ├── model

│ │ │ └── Student.java

│ │ └── service

│ │ └── StudentService.java

│ ├── web

│ │ ├──WEB-INF

│ │ │ ├──web.xml

│ │ │ └── views

│ │ │ └── studentList.jsp

│ │ └── index.jsp

│ └── resources

│ └── application.properties

└── pom.xml

```

2. 实体类Student

```java

package com.example.model;

public class Student {

private int id;

private String name;

private int age;

// getter和setter省略

}

```

3. StudentDao

```java

package com.example.dao;

import com.example.model.Student;

import java.util.List;

public interface StudentDao {

List getAllStudents();

}

```

4. StudentService

```java

package com.example.service;

import com.example.dao.StudentDao;

import com.example.model.Student;

import java.util.List;

public class StudentService {

private StudentDao studentDao;

public List getAllStudents() {

return studentDao.getAllStudents();

}

// setter和getter省略

}

```

5. StudentController

```java

package com.example.controller;

import com.example.model.Student;

import com.example.service.StudentService;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import java.io.IOException;

public class StudentController {

private StudentService studentService;

public void listStudents(HttpServletRequest request, HttpServletResponse response) throws IOException {

List students = studentService.getAllStudents();

request.setAttribute("