第六天

第六天

p377
<?xml version="1.0" encoding="UTF-8"?>
<taglib xmlns="http://java.sun.com/xmlns/j2ee"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="thtp://java.sun.com/xml/ns/j2ee http:/java.sun.com/xml/ns/j2ee/web-jsptaglibrary 2 O.xsd" version="2.0">
     <description>BookStep tag</description>
     <display-name>Name </display-name>
     <tlib-version> 1.0</tlib-version>
     <short-name>BName </short-name>
<tag>
<description>通过ID获取图书的等级</description>
 <name>bookStep</name>
<tag-class>tags.GetBookSep</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
      <description>通过ID获取图书的书名</description>
<name>bookName</name>
<tag-class>tags.GetBookame </tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
      <description>通过ID获取图书的出版社</description>
<name>bookcom</name>
<tag-class>tags.GetBookCom</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
      <description>通过ID获取图书信息</description>
<name>bookinfo</name>
<tag-class>tags.GetBooklnfo</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
     <description>通过ID获取用户姓名</description>
<name>userame</name>
<tag-class>tags.GetUserName</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
      <description>通过ID获取用户城市信息</description>
<name>usercity</name>
<tag-class>tags.GetUserCity<tag-class>
<body-content> JSP</body-content>
</tag>
<tag>
      <description>通过ID获取日期</description>
<name>date</name>
<tag-class>tags.DateOptionTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
      <description>通过ID获取用户等级</description>
<name>userstep</name>
<tag-class>tags.GetUserStep<tag-class>
<body-content> JSP</body-content>
</tag>
<tag>
      <description>通过ID获取用户的订单数</description>
<name>userordercount</name>
<tag-class>tags.GetUserOrderCount </tag-class>
<body-content> JSP</body-content>
</tag>
</taglib>
p385
public dass BooklnfActionFom extends ActionForm {
      //bookld 属性
      private String bookld;
      //bookCompany 属性
      private String bookCompany,
      //bookName 属性
      private Slring bookName;
      //bookPenster 属性
      private String bookPenster;
      //bookPrice 属性
      private Slring bookPrice;
      //bookStorage 属性
      private String bookStorage;
      //bookSynopsis 属性
      private Slring bookSynopsis;
      //bookType 属性
      private Slring bookType;
      /**
      * bookCompany 的getter 方法
      *
      * @return
      */
      public String getBookCompary(){
return bookCompany;
}
/**
*bookCompary的selter方法
*
*@param bookCompary
*/
publlc vold setBookCompany(String bookCompany){
this bockCompany=bookCompany;
}
/**
*bookSynopsis的setter方法
*
*@param tokSynopsis
*/
public void setBookSynopsis(String bookSynopsis){
this.bockSynopsis = bookSynopsis;
}
/**
* bookStorage 属性的setter方法
*
* @param bookSlornge
*/
publlic void setBookStorage(String bookStorage){
this.bookStorage = bookSorage;
}
/**
*bookPrice的setter方法
*
* @param bookPnice
*/
public void setBookPrice(String bookPrice){
this.bookPrice = bookPrice;
}
/**
* bookPenster的setter方法
*
*@param bookPenster
*/
public void setBookPenster(String bookPenster){
this.bookPenster = bookPenster;
}
/**
* bookName的setter方法
*
*@param tockName.
*/
public void setBookName(String bookName){
      this.bookName = bookName;
}
/**
*bookld的setter方法.
*
* @param bookld
*/
public void setBookld(Sring bookld){
      this.bookld = bookld;
}
/**
*bookType的setter方法
*
*@param bookType.
*/
pubic void setBookType(Sring bookType){
      this.bookType = bookType;
}
/**
*bookName l?g getler 5#
*
*@return
*/
public String getBookName(){
      return bookName;
}
/**
*bookPenster的getter方法.
*
*@return.
*/
public String getBookPenster(){
      return bookPenster;
}
/**
*bookPrice的getter方法
*
*@return
*/
public String getBookPrice(){
return bookPrice;
}
/**
*bookSxorage的getter方法
*
*@return
*/
public String getBookSlorage(){
return bookSlorage;
}
/**
*bookSynopsis的getter方法
*
*@return
*/
public String getBookSynopsis(){
return bookSynopsis,
}
/**
*bookld的getter方法
*
*@return
*/
public String getBookld(){
relum bookld
}
/**
*bookType的getter方法
*
*@return
*/
public String getBookType(){
return bookType;
}
public ActioErrars validate(ActionMapping actionMapping,
HttpServletRequest httpServeletRequest){
/**@todo: finish this method, this is just the skeleton.*/
return null;
}
public void reset(ActionMapping actionMapping,
HttpServletRequest httpServeletRequest){}
}
p389
 public class LoginActionForm extends ActionForm{
//userName属性
private String userName;
//userPwd属性
private String userPwd;
/**
*serName属性的getter方法
*
*@return.
*/
public String getUserNmae() [
return userNmae;
}
/**
*userName属性的setter方法
*
*@param userNmae.
*/
public void setUserNmaeString userNmae)[
this.userNmae = userNmae;
}
/**
*userPwd属性的setter方法
*
*@param userPwd.
*/
public void setUserPwd(String userPwd){
 this.userPwd = userPwd;
}
/**
*userPwd属性的getter方法
*
*@return
*/
public String getUserPwd(){
retum userPwd;
}
public ActionErrors validate(ActionMapping actionMapping,
HttpServletRequest httpServletRequest){
/** @todo: finish this method, this is just the skeleton. */
return null;
}
public void reset(ActionMapping actionMapping,
HttpServletRequest httpServletRequest){
}
}
昨天:编写代码;
今天:编写代码;
明天:整合代码,调试程序;
posted @ 2018-11-20 22:17  sjztd-张鑫  阅读(84)  评论(0编辑  收藏  举报