Last active
December 12, 2015 07:48
-
-
Save tototoshi/4739295 to your computer and use it in GitHub Desktop.
[play_ja:504]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers | |
import play.api._ | |
import play.api.mvc._ | |
object Application extends Controller { | |
def index = Action { | |
Ok(views.html.index()) | |
} | |
def test = Action { implicit request => | |
Ok(request.body.asFormUrlEncoded.mkString) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form method="post" id="" action="@routes.Application.test"> | |
<img name="name" src="data:image/jpg;base64,@io.Source.fromFile("conf/testimage.jpg").getLines.mkString" class="" alt="" /> | |
<input type="text" name="text01" value="foo" /> | |
<input type="submit" name="submit" value="submit" /> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET / controllers.Application.index | |
POST /test controllers.Application.test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment