728x90
반응형

2009/05 4

스키드러쉬 5월 감사의 달 이벤트가 열리네요.

위 이미지는 그냥 복사해 온 거구요... 신규 유저로 게임 하고 싶으신 분은 아래 링크 클릭해서 가입하시면 상부상조가 됩니다. ㅎㅎ http://hani.hangame.com/exfriend/skidrush.nhn?cardid=124236977302800661 http://hani.hangame.com/exfriend/skidrush.nhn?cardid=124236973105081238 http://hani.hangame.com/exfriend/skidrush.nhn?cardid=124236975616153987 http://hani.hangame.com/exfriend/skidrush.nhn?cardid=124236978666474882 http://hani.hangame.com/exfriend/ski..

스트럿츠를 사용하여 객체 출력하기

일반 프로퍼티 또는 List 타입의 프로퍼티를 출력하는 방법은 이미 살펴 보았다. 프로퍼티가 아닌 객체 자체를 출력하는 경우는 다음과 같이 할 수 있다. struts.xml /chapter2/printObject.jsp example.model.Product.java package example.model; public class Product { private String name; private String modelNo; public Product() {} public Product(String name, String modelNo) { this.name = name; this.modelNo = modelNo; } public String getName() { return name; } public..

Java/Struts2 2009.05.11

스트럿츠를 사용하여 List 출력하기

이번에는 스트럿츠를 사용하여 List를 출력해 보자. 일단 Action 파일과 result 파일 정의를 struts.xml에 정의하면 다음과 같다. /chapter2/printStringList.jsp 위에서 정의한 대로 PrintStringListAction.java 파일을 example.chapter2 패키지에 만든다. package example.chapter2; import java.util.ArrayList; import java.util.List; public class PrintStringListAction { private List listString; public String execute() throws Exception { listString = new ArrayList(); list..

Java/Struts2 2009.05.06
728x90
반응형