package com.test.post; import java.util.*; public class Posts{ public static List <Posts> getPosts() { List <Posts> posts = ArrayList <Posts>(); return posts; } }
org.apache.jasper.JasperException: Unable to compile class for JSP: The method getPosts(List <Posts>) in the type Posts is not applicable for the arguments () 要怎么改? 有这样的语法吗?应该是List <Posts> posts = new ArrayList <Posts>(); End_rbody_61072536//--> 该回复于2009-11-12 09:48:24被管理员删除