playframework tag

12 questions


1 answers
106 views
0
SQL Injection Countermeasures Using Slick in Playframework 2

Currently, I am trying to list the words entered from the form that match the title.defindByWord(word:String): Future [Seq[Item]]=db.run{ Query.filter(row=>(row.title like % + word+%).result}This i...


1 answers
169 views
0
How do I define when the constructor arguments and table column names do not match in Skinny-ORM?

Assume you have the following tables and classes:sqlcreate table `sample`.`member`(id serial, name varchar(64));class case class member (id: Long, hoge: String)I would like to map the name column of t...


1 answers
130 views
0
How to Handle Uncaught Exceptions in GlobalSettings.onError

Is there any way to comprehensively capture the supplementation of exceptions in play framework (2.3)?GlobalSettings.onError captures exceptions during normal request processing.defaction=Action{ Ok.c...

2 years ago

1 answers
88 views
0
How to Handle Uncaught Exceptions in GlobalSettings.onError

Is there any way to comprehensively capture the supplementation of exceptions in play framework (2.3)?GlobalSettings.onError captures exceptions during normal request processing.defaction=Action{ Ok.c...

2 years ago

1 answers
120 views
0
To empty the DB value when editing in Play

I have created the following forms in playframework (2.5.6) case class User (age: Option [Int])value form = Form( mapping( age - > optional (number) (User.apply) (User.unapply))println(form.bindFro...

2 years ago

1 answers
111 views
0
I want to specify the escape character when performing a LIKE search.

We created a Model class for a table and implemented the following actions to perform an ambiguous search.List<Model class>result=Model class.find.where().or().like(column name, %search string %...

2 years ago

1 answers
150 views
0
missing parameter type on file upload with silhouette

It's been a few months since I started learning scala+play.I'm trying to implement fileupload, and I'd like to have a view that displays identity using silhouette, but I don't know how to write it.The...

2 years ago

1 answers
111 views
0
Typeface Activator did not compile CoffeeScript and auto-reloading stopped working

I use Scala to develop web applications in Play Framework.Until yesterday, the development was going well, but Activator(sbt) did not compile CoffeeScript and auto-reloading did not work anymore.I can...

2 years ago

1 answers
98 views
0
Error if url parameter in restfulAPI contains %

I am creating a WEB API in playframework 2.x, but I get a Bad Request error when the url parameter contains %.For example, when searching with the string 20% off...Bad Request For request 'GET/search?...

2 years ago

1 answers
115 views
0
About updating on scala scaleikejdbc

We are developing at scala.I wanted to process CRUD with code created automatically by scalikejdbc.Only update statements are not allowed. object hoge extensions SQLSyntaxSupport [hoge] { def save(ent...

- 1 - »

© 2024 OneMinuteCode. All rights reserved.