일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Ajax
- Android
- appspresso
- phonegap
- 가우스
- sencha touch
- jsr 296
- 전자정부프레임워크
- ibsheet
- GPS
- PLSQL
- jQuery
- PHP
- 선택적조인
- node.js
- MySQL
- tomcat
- oracle
- JSON
- rowspan
- swingx
- Eclipse
- JDOM
- dock
- MFC
- Spring
- iBATIS
- WebLogic
- Struts
- Google Map
- Today
- Total
목록Struts (4)
Where The Streets Have No Name
http://javaboutique.internet.com/tutorials/excep_struts/index-2.html http://stackoverflow.com/questions/2403194/struts-1-how-to-display-actionmessages http://sunhuili.springnote.com/pages/4757213
First define a Bean called StudentGrades: Package example; public StudentGrades { private String name, biology, chemistry, physics, english, math; public String getName () { return this.name; } public String getBiology () { return this.biology; } public String getChemisty () { return this.chemistry; } public String getPhysics () { return this.physics; } public String getEnglish () { return this...
출처 : http://blog.naver.com/julymorning4/100018922244 스트럿츠가 제공 하는 예외 처리 스트럿츠 1.1.이후에는 작지만 효율적인 예외처리 프레임워크를 추가 했습니다. 또한org.apache.struts.util.AppException 클래스는 ActionError를 포함하며java.lang.Exception을 확장한 클래스 입니다. 아래와 같이 스트럿츠에서 사용하면 되는데 throw new AppException(“error.password.invalid”); 생성자의 “error.password.invalid”는 리소스 번들의 key 이며 프레임웍에서는 자동적으로 예외의ActionError 객체를 생성하고 적절한 scope에 저장 합니다. 물론 애플리케이션에서 A..
출처 : http://blog.naver.com/julymorning4/100018922231 자바의 예외는 애플리케이션에서 비정상적인 상황이 발생 할 때 생성되는 객체 입니다. 자바에서 예외가 발생하면java.lang.Throwable 객체를 상속한 객체를 생성하는 것입니다. Throwable 아래에는java.lang.Error와 java.lang.Exception등이 있습니다. 일반적으로 Exception의 경우 Application에서 처리 가능한 예외이며 스트럿츠에서의 모든 예외는 Exception 클래스의 서브 클래스로 생성하고 발생해야 합니다. Exception을 제외한 Error 부분은 심각한 문제들을 위해 예약되어 있습니다. 예를 들어 애플리케이션에서 사용 할 시스템 메모리가 부족한에러 등..