我用的SSM框架 这是java类
@Controller
@RequestMapping("/studentController")
public class StudentController {
@Autowired
private StudentServices studentServices;
public StudentServices getStudentServices() {
return studentServices;
}
public void setStudentServices(StudentServices studentServices) {
thisstudentServices = studentServices;
}
@RequestMapping("showStudent")
public String showStudents(Model model,>
1从JSP页面里传数据到SpringMVC中的Controller处理
a直接读取表单的数据。在控制器里的方法里,按照这种格式写。
@RequestMapping(value="/loginaction")
public void login(>
以上就是关于java从数据库中读取的数据怎样显示在jsp的网页当中全部的内容,包括:java从数据库中读取的数据怎样显示在jsp的网页当中、在jsp中怎样从数据库中获取信息到页面的相应位置、SSM框架下jsp页面怎么获取数据库的数据等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)