블로그 이미지
헤이장

Notice

Recent Post

Recent Comment

Recent Trackback

calendar

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
  • total
  • today
  • yesterday
2009. 7. 27. 13:10 Web/Framework

- struts.xml - 

<action name="*/*" class="action.{1}Action" method="{2}">
     <result name="success">{2}.jsp</result>
</action>

첫번째 * 은 {1} 에, 두번째 * 은 {2} 에 해당된다

http://localhost:8084/Struts2/First/second.action

이 경우에
action/FirstAction.java 에서 second() 를 실행하고
second.jsp 로 결과를 보낸다

posted by 헤이장