SAStruts


    teeaki(http://ameblo.jp/teeaki/)
SAStruts

After Rails

Java
SAStruts


Super Agile Struts

Seasar Foundation    FW

Struts 1x
1:
    http://localhost:8080/context/book/search
public class BookAction {
      @Execute(validator=true, input=”top.jsp”)...
1:
    http://localhost:8080/context/book/search
public class BookAction {
                                       Action
 ...
1:
    http://localhost:8080/context/book/search
public class BookAction {
                                       Action
 ...
2:Action               LS        Request
http://localhost:8080/context/book/search?name=aaa
public class BookAction {
    ...
2:Action               LS        Request
http://localhost:8080/context/book/search?name=aaa
public class BookAction {
    ...
SAStruts
=   FW
FW
FW
4,5          FW




      →

      →XML
FW
FW
FW
2005                 Ruby on Rails


  CoC(Conversion Over Configuration)
FW
FW



     FW CoC
http://localhost:8080/context/book/search
public class BookAction {
      @Required
      String name;
      @Execute(vali...
http://localhost:8080/context/book/search
public class BookAction {
      @Required
      String name;
      @Execute(vali...
http://localhost:8080/context/book/search
public class BookAction {
      @Required
      String name;
      @Execute(vali...
Eclipse
SAStrutsから読み取るFWの進化
SAStrutsから読み取るFWの進化
Upcoming SlideShare
Loading in …5
×

SAStrutsから読み取るFWの進化

1,610 views

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,610
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
39
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

SAStrutsから読み取るFWの進化

  1. 1. SAStruts teeaki(http://ameblo.jp/teeaki/)
  2. 2. SAStruts After Rails Java
  3. 3. SAStruts Super Agile Struts Seasar Foundation FW Struts 1x
  4. 4. 1: http://localhost:8080/context/book/search public class BookAction { @Execute(validator=true, input=”top.jsp”) public String search() { return “search.jsp” } } WEB-INF/view/book/search.jsp
  5. 5. 1: http://localhost:8080/context/book/search public class BookAction { Action @Execute(validator=true, input=”top.jsp”) public String search() { return “search.jsp” } } WEB-INF/view/book/search.jsp
  6. 6. 1: http://localhost:8080/context/book/search public class BookAction { Action @Execute(validator=true, input=”top.jsp”) public String search() { return “search.jsp” } } WEB-INF/view WEB-INF/view/book/search.jsp jsp forward
  7. 7. 2:Action LS Request http://localhost:8080/context/book/search?name=aaa public class BookAction { @Required “aaa” public String name; @Execute(validator=true, input=”top.jsp”) public String search() { return “search.jsp” } }
  8. 8. 2:Action LS Request http://localhost:8080/context/book/search?name=aaa public class BookAction { @Required “aaa” public String name; @Execute(validator=true, input=”top.jsp”) public String search() { return “search.jsp” } }
  9. 9. SAStruts
  10. 10. = FW
  11. 11. FW
  12. 12. FW 4,5 FW → →XML
  13. 13. FW
  14. 14. FW
  15. 15. FW 2005 Ruby on Rails CoC(Conversion Over Configuration)
  16. 16. FW
  17. 17. FW FW CoC
  18. 18. http://localhost:8080/context/book/search public class BookAction { @Required String name; @Execute(validator=false) public String search() { return “search.jsp” } }
  19. 19. http://localhost:8080/context/book/search public class BookAction { @Required String name; @Execute(validator=false) public String search() { return “search.jsp” } }
  20. 20. http://localhost:8080/context/book/search public class BookAction { @Required String name; @Execute(validator=false) public String search() { return “search.jsp” } }
  21. 21. Eclipse

×