About 2007年06月

2007年06月?????sanryuブログ??????????????????????????????????????????

????????2007年05月???

????????2007年07月???

????????????????????????????????????????

Powered by
Movable Type 3.35

« 2007年05月 | ??? | 2007年07月 »

2007年06月 ?????

2007年06月01日

Eclipse Plug In

?????????/
????????UNICODE??????????????

Middlegen
MiddlegenIDE??Eclipse???Middlegen?????????????
Heibernate???????????JAVA??????????

JDK

Java SE Downloads
JDK???????

2007年06月06日

JAVA

???????? | ?????????

IT??????

????????? ??????

Movable Type 3.3 ?????: ????????? ??????
Movable Type?????????????????

2007年06月11日

?????

???Java???????????

Java?SJCP?????????????????????????????????
?????????????????????????????

?????????????ColdFusion?PL/SQL????????????????????????

Java??????????????????????????????

Java?????????????????????????????

?? ?Access?????????????????

????????????????????????

???????????

2007年06月14日

????????? CSS

??? ???HTML?????????????????????????????IE?????
??????????????IE?????OK??????????

?????????????????????
????????????????
????????????????????????????????????
?XHTML????????
?FireFox???????IE??????????

???????????????????
FireFox????????????????IE????????????
????????IE?????????????????????????????????????
??????????????HTML,CSS????????????????????
?????????????????????????

?????????
Alternative Design Project by Momomo

??????????????

?????????-???????-Web????

????????????

???????????

XHTML?????????

????????

2007年06月18日

MiddlegenIDE

Middlegen???Hibernate??????????????????Java????????????
Ant???????????????
Eclipse?????????MiddlegenIDE????????GUI???Middlegen???????

??????
1.????????????
2.[????]-[??]-[???]-[Middlegen]-[Middlegen Build File]
3.[??]????[JDBC jar]????????????????????
4.[?????????]??????
5.?????????[??]?????
6.Middlegen?????????????????????[Generate]???
7.POJO???????????Hibernate???????????

Spring??

Spring???Java/J2EE?????????????????
???????????????????????

???????????

Spring2.0?? Java?????????Web??????

??????????????????????
??Spring?????????????????????????????????

Java?J2EE???????? Spring?? ~????Web??????????????

???Spring?????????????????????????
?????????

Spring???Web????????????????

???CD??????????????????????????????????????????????
??????????????
????????????Hebernate????Struts????????????????????
???????????????Spring???Spring??2.0????????????????????

?????????

?????4????????

???????????????

??????????

?????????????????????????????

??????????????????

????????????????????????????

???????????????????

??????????????????

??????????????????????????????

?????????????????

???????? > ????? > ?????

?????????

??????

????????????????????????

???????????????????????????????

?????????????????????

????????????????????

Java?????????

Runtime.exec()??Oracle?Exp??????????????????

????????????????????????????

??????????????????????????????????

Trouble 11: Java ??????????????

J2SE ???????????

2007年06月19日

Eclipse?JavaDoc??????

JavaDoc?????????????
/** ??????Enter???????????JavaDoc???????????

Hibernate??

O/R????? ??????

HIBERNATE ?? ?????

????????????????????
??????????????

WTP??

WTP(Web Tools Platform)?Eclipse?????????
J2EE???????????????????

???????????????

?Web Standard Tools(WST)
?J2EE Standard Tools(JST)
?JavaServer Faces Tools(JSF)

Eclipse??

?????????????????

Eclipse 3.2 ????

?????????????????????
???Eclipse???????????

Struts??

J2EE?Web???????????????????????

?????????????
??????????????

Apache Struts????????????

2007年06月20日

?????????

Java?Oracle??????????????(Exp.exe)???????
???????????????
???Ftp.exe???????????????????

???? ????
???? System.in ????? -
???? System.out?? ????????????????
??????? System.err?? ????????

??

?2??Eclipse?Java?????????

I/O Streams

Ftp???

???FTP?????????
??????????PC??????????????

1.FTP ???????????????
?nekosogiftpd

2.FTP ?????????????????
?FFFTP

3.?????????????????

4.?????????????PG????

?????????

2007年06月21日

JAVA???????

Commons IO??????

Commons IO?java.io???????????????????????API?????
??????????????????????

Ftp.exe???

Microsoft TecNet Ftp

2007年06月22日

???????????

File f = new File("c:/temp/test.txt");
byte[] b = new byte[(int) f.length()];
FileInputStream fi = new FileInputStream(f);
fi.read(b);
buf = new String(b);
fi.close();

java.lang.NoClassDefFoundError???

Eclips + Tomcat + wtp
???java.lang.NoClassDefFoundError???????
Tomcat?shared???jar???????????????????????????????
Eclipse???????????????????????????????

??????????

2007年06月25日

FTP?GET??

[ftp????????????]


ftp -s:e:/ftp/ftpconfig.txt

[e:/ftp/ftpconfig.txt]


open 127.0.0.1      <=ftp server
ftpuser      <=user
ftpuser      <=pass
asc          <=asc mode
cd download      <=?????????
get hoge1.TXT e:/ftp/ hoge1.TXT      <=?????get
get hoge2.TXT e:/ftp/ hoge2.TXT      <=?????get
close      <=??
bye       <=FTP??

Hibernate???????

Hibernate??setDate???????????????
????????????setTimestamp???????


public void updateTest() throws Exception{
    HibernateTemplate template = getHibernateTemplate();
    final String hql = new StringBuffer()
      .append("update hoge h set h.hogeDate=:hogeDate, ")
      .append("where h.hogeId='1'").toString();
    
    if (logger.isDebugEnabled()) logger.debug(hql);
    
    final Date today = DateUtils.parseDate(DateFormatUtils.format(
              Calendar.getInstance().getTime(), "yyyy/MM/dd HH:mm:ss"), parsePatterns);
    
    template.execute(new HibernateCallback() {
      public Object doInHibernate(Session session)
          throws HibernateException {
        
        session.createQuery(hql)
        .setTimestamp("hogeDate", today)
        .executeUpdate();
        return null;
      }
    }, true);
    
  }

Strus??ActionMessage???

??????????


package hoge.actions;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;
 
public class HogeAction extends Action {
 
  /**
   * Method execute
   * @param ActionMapping mapping
   * @param ActionForm form
   * @param HttpServletRequest request
   * @param HttpServletResponse response
   * @return ActionForward
   * @throws Exception
   */
  public ActionForward execute(
    ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws Exception {
 
  // ?????
 
    if (hoge.equals("hoge")) {
      ActionMessages am = new ActionMessages();
   //???????????????????????
      am.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("errors.hoge"));
   //??????
      saveErrors(request, am);
    }
    return mapping.findForward("success");
  }
}

2007年06月29日

?????

???Oracle??????
SI Object Browser??????????
?????????????????????
????????????????????????????????????????????

???Oracle??????????????Oracle SQL Developer??????
JDeveloper????????????Oracle SQL Developer?????????????

PL/SQL???????

10g??DBMS_DEBUG?????PL/SQL???????????

???????????????DEBUG CONNECT SESSION??????????

????EXECUTE???DEBUG???

Oracle Sql Developer???Compiler Options???

Oracle Sql Developer?????????????????
?????????????????
?????PLW-XXXXX???????????????????????????????
????????????

1.???????[Tools]-[Preferences]???
2.[PL/SQL Compiler Options ]???
3.[Generate PL/SQL Debug Information]?????????
4.???[DISABLE]???

?????????????????????????????????

10g Enterprise Manager Database Control????

[????]
http://????:?????/em

[????????]
$ORACLE_HOME/install/portlist.ini????????

[?]
http://127.0.0.1:5500/em

2011年03月
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31