Testing your application Writing tests Writing functional tests Testing with Guice Testing with databases Testing web service clients Main concepts Section contents Configuration API HTTP programming Asynchronous HTTP programming The Twirl template engine Form submission and validation Working with Json Working with XML Handling file upload Accessing an SQL database Using the Cache Calling REST AP
@(parents: List[models.Parent]) <!DOCTYPE html> <html> <head> <title>DBの中身</title> <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")"> <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")"> <script src="@routes.Assets.at("javascripts/jquery-1.7.1.min.js")" type="text/javascript"></script> </head> <body> @for(parent <- parents)
Play frameworkのDB操作を楽にするEBeanの基礎知識:Javaの常識を変えるPlay framework入門(2)(3/3 ページ) package controllers; import java.util.List; import models.Child; import models.Parent; import play.db.ebean.Model.Finder; import play.mvc.Controller; import play.mvc.Result; public class Application extends Controller { public static Result index() { // 親1の作成 Parent parent1 = new Parent(); parent1.name = "渋谷太郎"; // 子1の追加 Ch
第3回Playframework勉強会 #play_ja - 日本Playframeworkユーザー会 USTREAM: Playframework勉強会 #play_ja: Playframework勉強会 #play_ja ハッシュタグ: #play_ja. Ustream.tv: ユーザー ikeike443: 第三回Playframework勉強会 7/14, Recorded on 7/14/12. Web Playframeworkについてはここ最近興味関心を強く寄せており、写経等を踏まえて実践・実装スキルを磨いていた所にこの勉強会の告知があったので告知発表即申込み、参加してきました! と、その前に過去2回の勉強会についておさらい。情報を漁ってみると、とても多くのブログレポートが書かれていました。 この分量・クオリティは凄いですね。おさらいする身からしても非常に助かります。 第
Play frameworkアプリを起動 コマンドプロンプトを開き、先ほど作成したプロジェクトのディレクトリに移動します。 コンソールの起動 「play」と入力し、プロジェクトのコンソールを起動します。初回の起動では必要なファイルをダウンロードします。以下のような画面になれば、プロジェクトのコンソールは起動が完了です。 アプリの起動 次に、「run」と入力します。はじめに、必要なファイルのアップデートが行われます。そして、「[info] play - Listening for HTTP on port 9000...」という文字がコマンドプロンプトに出力されるまで待ちます。 ポート番号が競合する場合 なお、PHPのXDebugを利用している場合など、ポート番号が競合する場合があります。その場合は「run」の後にスペースを空けポート番号を指定することで、別のポート番号で起動可能です。例えば
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く