JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java Book » JSP 2.0 技術手冊  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 Re:JSP2.0技術手冊-勘誤表 [討論] [Re:koji]
tiffeny3199





發文: 15
積分: 0
於 2005-12-12 15:23 user profilesend a private message to usersend email to tiffeny3199reply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
CH7
7-45 中間
1
<c:import url="ftp://ftp.cse.yzu.edu.tw/data.txt" />


應改成
1
<c:import url="ftp://ftp.javaworld.com.tw/data.txt" />


browser edited on 2005-12-12 15:23
reply to postreply to post
作者 Re:JSP2.0技術手冊-勘誤表 [討論] [Re:koji]
tiffeny3199





發文: 15
積分: 0
於 2005-12-12 15:27 user profilesend a private message to usersend email to tiffeny3199reply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
7-48 [程]

還是錯

${output1 / }

應改成
${output1 }
多了一個 /


reply to postreply to post
作者 Re:JSP2.0技術手冊-勘誤表 [討論] [Re:koji]
tiffeny3199





發文: 15
積分: 0
於 2005-12-12 15:29 user profilesend a private message to usersend email to tiffeny3199reply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
還是錯
7-49 [程]
1
2
${input1 / }
<c:out value="${param.input2}"escapeXml="true" />

應改成
1
2
${input1 }</br>
<c:out value="${param.input2}" escapeXml="true" />

ps:程式碼中是對的,書上是錯誤的


reply to postreply to post
作者 Re:JSP2.0技術手冊-勘誤表 [討論] [Re:koji]
tiffeny3199





發文: 15
積分: 0
於 2005-12-19 14:39 user profilesend a private message to usersend email to tiffeny3199reply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
CH7
7-119
上 程式碼中classis 應該改為classic


reply to postreply to post
作者 Re:JSP2.0技術手冊-勘誤表 [討論] [Re:koji]
tiffeny3199





發文: 15
積分: 0
於 2005-12-19 14:41 user profilesend a private message to usersend email to tiffeny3199reply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Ch7 另外一個錯誤

7-119 下
下程式碼中第5行應該為
1
</x:param>

少一個 /


reply to postreply to post
作者 Re:JSP2.0技術手冊-勘誤表 [討論] [Re:koji]
simon0304





發文: 2
積分: 0
於 2005-12-30 14:30 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
CH8
8-31之code
<jsp:useBean id="myBean" scope="application" class="javabean.Counter" />應修改為
<jsp:useBean id="myBean" scope="application" class="tw.com.javaworld.CH8.Counter" />


reply to postreply to post
作者 Re:JSP2.0技術手冊-勘誤表 [討論] [Re:koji]
simon0304





發文: 2
積分: 0
於 2005-12-30 22:47 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
CH5
5-12
Integer Year = (Interger)session.getAttribute("Year");
應修改為
Integer Year = (Integer)session.getAttribute("Year");


reply to postreply to post
作者 Re:JSP2.0技術手冊-勘誤表 [討論] [Re:koji]
millertime





發文: 29
積分: 0
於 2006-01-22 11:53 user profilesend a private message to usersend email to millertimereply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
第11-27
<filter-mapping>  
<filter-name>WrapperSample</filter-name>  
<url-pattern>/CH11/*</url-pattern>
</filter-mapping>

在url-pattern應該是要設/CH11/*,原本為/*


reply to postreply to post
作者 Re:JSP2.0技術手冊-勘誤表 [討論] [Re:koji]
mavericklu





發文: 8
積分: 0
於 2006-06-09 15:52 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
CH4 -23

第一類 :有三個action元素,他們都來存取javabean,因此這部份將在第"五"章

\\應該是第八章

\\同樣的錯誤也發生在 4-33頁

有關<jsp:useBean> <jsp:setProperty> <jsp:getProperty> 在第"五"章

\\我是初版五刷


reply to postreply to post
虛心,多看,多聽,多學
作者 Re:JSP2.0技術手冊-勘誤表 [討論] [Re:koji]
xiyuan1999





發文: 4
積分: 0
於 2006-06-18 23:29 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
好象那个简体和繁体怎么转换啊

reply to postreply to post
你我之间是一条时间和距离的斑马线
作者 Re:JSP2.0技術手冊-勘誤表 [討論] [Re:koji]
yaj803





發文: 111
積分: 0
於 2006-08-21 11:26 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
好不容易啃到第15章了
發現有幾個小小的地方不夠完美:

1. 第15-34頁程式碼的倒數第 9 行 (或 如下片斷第4行)
1
2
3
4
5
6
7
..........
out.print("<table border=" + border + " bordercolor=" + bordercolor);
if (width != null) {
   out.print(" WIDTH=\"" + width + "\" >");
}
out.print("><TD bgcolor=" + bgColor + ">");
...........
是不是多了一個 ">" 呀?

2. 附錄 C-2 上半頁內容和下半頁內容完全一樣耶... (可能是排版的問題吧)

不好意思呵...
我的書是2005/07初版五刷


yaj803 edited on 2006-08-22 13:39
reply to postreply to post
作者 Re:JSP2.0技術手冊-勘誤表 [討論] [Re:koji]
fanacy





發文: 2
積分: 0
於 2007-07-14 09:59 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
這本書我最近買的「初版 第七刷」
當我看第17-2章時,發現有個地方怪怪的,想跟大家求證!

以下是剖析XML文件的 MyHandler.java,我po出一小段
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) {
 
    // 判斷重複的屬性名稱         
    int count = 1;
    echoText();
    if (atts != null) {
      for (int i = 0; i < atts.getLength(); i++) {
        // 屬性名稱 
        String aName = atts.getLocalName(i);
        if ("".equals(aName))
          aName = atts.getQName(i);
        String temp = aName;
        while (hm_TagData.get(temp) != null) {
          temp = aName + count;
          count++;
        }
        hm_TagData.put(aName, atts.getValue(i));
      }
    }
  }

在紅色部份我在實作時,發現應該是要改成temp,而且我在光碟中的source code中找到的也是temp。而在endElement的mothed中也應該要把eName改為temp,如此才能做到元素名不重覆的功能。


reply to postreply to post
作者 Re:JSP2.0技術手冊-勘誤表 [討論] [Re:koji]
crystal26





發文: 2
積分: 0
於 2008-07-11 11:04 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
6-4 第八行
此時,data 是一個變數,假若 data 的值為字串sex時...。因此,假若我們要動態取值時,就可以用上述的方法來做,但.無法做到動態取值。

後面那句話是多出來的嗎?還是我誤會它了?看不太懂...Orz


reply to postreply to post
作者 Re:JSP2.0技術手冊-勘誤表 [討論] [Re:koji]
asazark





發文: 4
積分: 0
於 2008-07-26 19:18 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不好意思 我是新新新手 剛接觸JSP 想請問一下

10-28最底下兩行
session.setAttribute(itme_name,itme_name)
session.setAttribute(itme_name+"count",new Integer(1))
既然在10-32第一行
String real_name = name.substring(0,length-5)

那10-28倒數第二行的session.setAttribute(itme_name,itme_name)
是不是就可以不用寫了呢
在10-31倒數第四行也就不用if的這個判斷式了


reply to postreply to post
go to first page go to previous page  1   2   3   4  go to next page go to last page
» JWorld@TW »  Java Book » JSP 2.0 技術手冊

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8