( ( ( )

Similar documents
Cubby in Action


10 (1) s 10.2 rails c Rails 7 > item = PlanItem.new => #<PlanItem id nil, name nil,...> > item.name = "" => "" > item.valid? => true valid? true false

Dolteng Scaffoldに対する機能追加とマスタ-ディテールScaffoldの紹介

6 (1) app.html.eex 28 lib/nano_planner_web/templates/layout/app.html.eex 27 <footer> Oiax Inc <%= this_year() %> Oiax Inc. 29 </footer>

untitled

Web JavaScript Java Applet Flash ActionScript CGI (C, perl, ruby ) PHP Servlet, JSP (JavaServer Pages) ASP 7-2

メディプロ1 Javaサーブレット補足資料.ppt

untitled


: : : TSTank 2

"CAS を利用した Single Sign On 環境の構築"

Oracle JDeveloper 10g ADF Creation Date: Jul 07, 2004 Last Update: Jul 08, 2004 Version 1.0

Microsoft PowerPoint - Lecture_2

java_servlet2_見本

H indd

HTML/JSP/Servlet... 7 JSP... 7 Servlet Struts Struts Struts FormBean LoginForm

8 4 end 5 6 private def message 7 'Hello' 8 end 9 end g = Greeting.new 12 g.hello $ ruby lib/lessons/greeting.rb Hello Ruby public method protec

2

15 Phoenix HTML 15.1 ModestGreeter RAVT web/router.ex web/router.ex : 12 scope "/", ModestGreeter do 13 pipe_through :browser get "/", TopCont

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

9iAS_DEV.PDF

Client client = ClientBuilder.newClient(); WebTarget webtarget = client.target(" " "); Invo

Microsoft PowerPoint - Lecture_3

Wiki

19 3!! (+) (>) (++) (+=) for while 3.1!! (20, 20) (1)(Blocks1.java) import javax.swing.japplet; import java.awt.graphics;

T2でつなごう! -つなぐつながるWebフレームワーク「T2」の紹介

WebOTXマニュアル

[1]...1 [2]...1 [3] Java Web...3 [4] Java Web...18 [

untitled

Java演習(2) -- 簡単なプログラム --

PowerPoint Presentation

Javaで体験するスクリプト言語の威力

Sinatra と MongoDB 今回は Sinatra で MongoDB の操作を体験してみます 進捗に合わせて ドライバから Ruby で使える便利な ORM の紹介をします

Kumagai09-hi-2.indd

JAVA H13 OISA JAVA 1

Java (5) 1 Lesson 3: x 2 +4x +5 f(x) =x 2 +4x +5 x f(10) x Java , 3.0,..., 10.0, 1.0, 2.0,... flow rate (m**3/s) "flow

宅建練馬表478号1_4ol [更新済み].eps

地域と文化資産


第2回_416.ppt

CodeIgniter Con 2011, Tokyo Japan, February

AJAXを使用した高い対話性を誇るポートレットの構築

Servlet JSP JSP Servlet/JSP における 日 本 語 の 処 理 - 1

03_さらなる開発生産性向上へ.pptx

II 2 p.2 2 GET POST form action URL Aisatsu 2.1 Servlet GET GET : Query String QueryStringTest.java 1 import java.io.ioexception; 2 import java.io.pri

PowerPoint プレゼンテーション

Web Servlet/JSP JSP

B2-Servlet-0112.PDF


2

endo.PDF

-2-

2 Java 35 Java Java HTML/CSS/JavaScript Java Java JSP MySQL Java 9:00 17:30 12:00 13: 項目 日数 時間 習得目標スキル Java 2 15 Web Java Java J

平成20年度内部評価実施結果報告書《本編》

untitled

55 7 Java C Java TCP/IP TCP/IP TCP TCP_RO.java import java.net.*; import java.io.*; public class TCP_RO { public static void main(string[] a

3 top#index 1 web router.ex web/router.ex 12 scope "/", NanoPlanner do 13 pipe_through browser get "/", TopController, index 16 end URL / to

ID010-2

- 1 -

%

2

第 7 回の内容 動的な Web サイト フォーム Web システムの構成

(Microsoft PowerPoint - ClickFramework.ppt [\214\335\212\267\203\202\201[\203h])

3 Java 3.1 Hello World! Hello World public class HelloWorld { public static void main(string[] args) { System.out.println("Hello World");

intra-mart im-J2EE Framework

1-4 int a; std::cin >> a; std::cout << "a = " << a << std::endl; C++( 1-4 ) stdio.h iostream iostream.h C++ include.h 1-4 scanf() std::cin >>

Javaと マルチスレッド

Java updated

untitled

920P-1



広報しもつけp01ol

ONPRESS190


本文(B5×40)0614三校責了.indd


PowerPoint Presentation

progate-team

03アプリ操作方法_v3.0_120924tf.doc

Transaction

allows attackers to steal the username-password pair saved in the password manager if the login page or other pages in the same domain are vulnerable

untitled

表紙.PDF

untitled


新築_PDF用

表紙a


AFASパンフ表.ai

.....w...j...[.X55..

cover_jinzai_21

fukushi-yotsukaido113

untitled

URL :





Transcription:

Cubby Web BABA Yasuyuki <baba@nulab.co.jp>

( ( ( http://www.nulab.co.jp )

Cubby Cubby Maven2

Cubby Java Web 0.9.2 1.0 seasar.org sandbox Cubby =

Cubby http://cubby.sandbox.seasar.org/

HTTP HTTP URL Seasar2 ( ( JSP

Cubby Struts URI

Cubby

HTML JSP Struts <html:text property="username"/> <html:select property="type"> <html:optionscollection property="choices" value="id" label="name"/> </html:select>

HTML JSP Cubby <t:input type="text" name="username" /> <t:select name="typeid" items="${action.todotypes}" labelproperty="name" valueproperty="id"/> HTML

JSP 5 t:form t:input t:select t:textarea t:token

Cubby

Struts struts-config.xml <form-beans> <form-bean name="todoform type="example.form.todoform" /> </form-beans> <action-mappings> <action path="/todoedit.do type="ex.action.todoeditaction name="todo"> <forward name="success" path="/todo/edit.jsp" /> </action> </action-mappings>

Cubby public class TodoAction extends Action { public ValidationRules editvalidation = new DefaultValidationRules( todo.") { @Override public void initialize() { add("userid", new RequiredValidator());... } }; @Validation(rules="editValidation", (" todo/edit.jsp /" errorpage = public ActionResult edit() {... return new Forward("/todo/confirm.jsp"); } }

@Path ( (URL @Accept ( HTTP (GET POST @Form ( ( @Validation

Cubby

http://d.hatena.ne.jp/m-hashimoto/ 20071231/

http://ja.wikipedia.org/wiki/rest

https://backlog.backlog.jp/view/ BLG-35

Cool URI Cool URI http://www.w3.org/provider/style/uri.html http://www.kanzaki.com/docs/style/uri.html URI URI

mod_rewrite httpd.conf RewriteRule ^\/todo\/([0-9]+)? /todo.do?id=$1

Ruby on Rails config/routes.rb ActionController::Routing::Routes.draw do map map.connect '/todo/:id', :controller => "todo", :action=> "show" end

Cubby // http://example.com/todo/1 public class TodoAction extends Action { public String id; ("{ Path("/todo/{id @ public ActionResult show() { System.out.println(id); } // ("{+[ Path("{id,[0-9 @ // }

Cubby 4

Mayaa HTML Mayaa login.html <form id="form"> ID:<input id="userid" type="text" name="userid" /> :<input id="password" type="password" name="password"/> </form> login.mayaa <t:form m:id="form" action="${contextpath}/todo/login/ process" method="post" value="${action}"/> <t:input m:id="username" type="text" name="username" /> <t:input m:id="password" type="text" name="password" />

Maven2 Maven2 Archetype Struts blank.war Rails rails Cubby Cubby pom.xml Hello World

Maven2 $> mvn archetype:create ( :com.foo.bar -DgroupId=( ID -DartifactId=( ID ( :barapp ( :1.0-SNAPSHOT -Dversion=( -DarchetypeGroupId=org.seasar.cubby -DarchetypeArtifactId=cubby-archetype -DremoteRepositories=http://maven.seasar.org/maven2/ $> mvn eclipse:eclipse $> mvn tomcat:run

Cubby URI 1

Maven2 URI Scaffold

https://ml.seasar.org/mailman/listinfo/cubbyuser