src/com/itbaizhan/action/IndexAction.java

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.itbaizhan.action;

import java.util.List;

import javax.annotation.Resource;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import com.itbaizhan.entity.Book;
import com.itbaizhan.entity.Category;
import com.itbaizhan.entity.Indent;
import com.itbaizhan.entity.Users;
import com.itbaizhan.service.BookService;
import com.itbaizhan.service.CategoryService;
import com.itbaizhan.service.IndentService;
import com.itbaizhan.service.UserService;
import com.itbaizhan.util.PageUtil;

@Namespace("/index")
@Results({
	@Result(name="index",location="/index/index.jsp"),
	@Result(name="about",location="/index/about.jsp"),
	@Result(name="category",location="/index/category.jsp"),
	@Result(name="special",location="/index/special.jsp"),
	@Result(name="new",location="/index/new.jsp"),
	@Result(name="sale",location="/index/sale.jsp"),
	@Result(name="login",location="/index/login.jsp"),
	@Result(name="register",location="/index/register.jsp"),
	@Result(name="detail",location="/index/detail.jsp"),
	@Result(name="right",location="/index/right.jsp"),
	@Result(name="cart",location="/index/cart.jsp"),
	@Result(name="order",location="/index/order.jsp"),
	@Result(name="search",location="/index/search.jsp"),
})	
public class IndexAction extends BaseAction{
	private static final long serialVersionUID = 1L;
	
	private static final String indentKey = "indent";

	private int bookid;
	private int category;
	private int flag;
	private Book book;
	private Indent indent;
	private String searchName;
	
	private List<Book> bookList;
	private List<Book> specialList;
	private List<Book> newList;
	private List<Book> saleList;
	private List<Category> categoryList;
	private List<Indent> indentList;
	
	@Resource
	private UserService userService;
	@Resource
	private BookService bookService;
后面还有 325 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。