# Web Development

**URL:** https://discuss.kotlinlang.org/c/web-development/12.md?page=1

[Latest](https://discuss.kotlinlang.org/latest.md) · [Categories](https://discuss.kotlinlang.org/categories.md)

**Page:** 2

---

## [ELM like frontend development in Kotlin](https://discuss.kotlinlang.org/t/elm-like-frontend-development-in-kotlin/21146)

<div class="topic-metadata">

**Author:** [@sand](https://discuss.kotlinlang.org/u/sand)\
**Replies:** 1\
**Last updated:** [March 9, 2021, 10:59pm UTC](https://discuss.kotlinlang.org/t/elm-like-frontend-development-in-kotlin/21146 "2021-03-09T22:59:30Z")

</div>

Hi, what are currently all the frontend ELM like development possibilities in Kotlin community?

---

## [Wondering about Grails with Kotlin](https://discuss.kotlinlang.org/t/wondering-about-grails-with-kotlin/19110)

<div class="topic-metadata">

**Author:** [@bojan.milosavljevic95](https://discuss.kotlinlang.org/u/bojan.milosavljevic95)\
**Replies:** 10\
**Last updated:** [February 26, 2021, 6:40am UTC](https://discuss.kotlinlang.org/t/wondering-about-grails-with-kotlin/19110 "2021-02-26T06:40:27Z")

</div>

Hi, all. I am working in Spring/Spring Boot + Kotlin environment (plus DB’s, servers and whatnot, but not important) for a while now. I recently started eyeing Grails (https://grails.org/ ) and it kind of looks promisin…

---

## [\[Solved\] Kotlin compilation StackOverflow Failure](https://discuss.kotlinlang.org/t/solved-kotlin-compilation-stackoverflow-failure/20614)

<div class="topic-metadata">

**Author:** [@yqli](https://discuss.kotlinlang.org/u/yqli)\
**Replies:** 2\
**Last updated:** [February 20, 2021, 1:19am UTC](https://discuss.kotlinlang.org/t/solved-kotlin-compilation-stackoverflow-failure/20614 "2021-02-20T01:19:30Z")

</div>

Hi all, We are using Kotlin + Spring to develop a web application. Recently, we observed the compilation is not stable and sometimes the build failed with StackOverflow exception. The kotlin version is 1.4.21-2 (the la…

---

## [Is Ktor ready for product development?](https://discuss.kotlinlang.org/t/is-ktor-ready-for-product-development/18623)

<div class="topic-metadata">

**Author:** [@phucynwa](https://discuss.kotlinlang.org/u/phucynwa)\
**Replies:** 20\
**Last updated:** [December 17, 2020, 3:33am UTC](https://discuss.kotlinlang.org/t/is-ktor-ready-for-product-development/18623 "2020-12-17T03:33:01Z")

</div>

Ktor is an interesting web framework. I’ve learned it for several months. But is it ready for building a software product? And, Ktor vs Spring with Kotlin, which is better for Kotlin web development?

---

## [API development with Kotlin, are there any good reference projects?](https://discuss.kotlinlang.org/t/api-development-with-kotlin-are-there-any-good-reference-projects/19417)

<div class="topic-metadata">

**Author:** [@hward](https://discuss.kotlinlang.org/u/hward)\
**Replies:** 0\
**Last updated:** [October 8, 2020, 3:27am UTC](https://discuss.kotlinlang.org/t/api-development-with-kotlin-are-there-any-good-reference-projects/19417 "2020-10-08T03:27:57Z")

</div>

Hello, I am new to Kotlin. I want to play with Kotlin for backend API development. Are there any good code projects that I am reference to ? e.g. ktor or Spring boot. (I mean a workable project with database model, lo…

---

## [Are there any ways to simplify those codes?](https://discuss.kotlinlang.org/t/are-there-any-ways-to-simplify-those-codes/19148)

<div class="topic-metadata">

**Author:** [@FledgeXu](https://discuss.kotlinlang.org/u/FledgeXu)\
**Replies:** 2\
**Last updated:** [September 14, 2020, 7:35am UTC](https://discuss.kotlinlang.org/t/are-there-any-ways-to-simplify-those-codes/19148 "2020-09-14T07:35:35Z")

</div>

I’m using Kotlin and SpringBoot to write a website. I wrote these codes for my DAOs testing. //Change Password userDao.createUser("test5", "Test 5", "123456".toByteArray()) val changePasswordSalt …

---

## [How can I use something like turbolinks or a frontend js lib with ktor and kotlin?](https://discuss.kotlinlang.org/t/how-can-i-use-something-like-turbolinks-or-a-frontend-js-lib-with-ktor-and-kotlin/19021)

<div class="topic-metadata">

**Author:** [@zotako](https://discuss.kotlinlang.org/u/zotako)\
**Replies:** 0\
**Last updated:** [September 3, 2020, 9:19am UTC](https://discuss.kotlinlang.org/t/how-can-i-use-something-like-turbolinks-or-a-frontend-js-lib-with-ktor-and-kotlin/19021 "2020-09-03T09:19:48Z")

</div>

I’m developing a ktor+kotlin server-side rendered web application and I wanted to know is there a way to implement turbolinks into it. I’ve looked everywhere but couldn’t find an answer.

---

## [Kotlin Coroutines + Spring MVC](https://discuss.kotlinlang.org/t/kotlin-coroutines-spring-mvc/18867)

<div class="topic-metadata">

**Author:** [@bojan.milosavljevic95](https://discuss.kotlinlang.org/u/bojan.milosavljevic95)\
**Replies:** 6\
**Last updated:** [August 24, 2020, 11:41am UTC](https://discuss.kotlinlang.org/t/kotlin-coroutines-spring-mvc/18867 "2020-08-24T11:41:38Z")

</div>

I have been using Kotlin with Spring MVC (and Spring Boot) for 6 months or so, and now I have been looking into making non-blocking REST API based on Spring MVC and Kotlin Coroutines. I am well aware that Spring is synch…

---

## [Full blown HTML DSL Example](https://discuss.kotlinlang.org/t/full-blown-html-dsl-example/18768)

<div class="topic-metadata">

**Author:** [@abangkis](https://discuss.kotlinlang.org/u/abangkis)\
**Replies:** 8\
**Last updated:** [August 20, 2020, 12:47pm UTC](https://discuss.kotlinlang.org/t/full-blown-html-dsl-example/18768 "2020-08-20T12:47:15Z")

</div>

Hi, i’m trying to use kotlin HTML DSL as my main templating engine in ktor. Is there a full blown kotlin HTML DSL example? For example I’m trying to use buttonInput, but there’s no example how to handle the on click fun…

---

## [Opensource Kotlin DSL based on Vaadin to create Rich Web Application](https://discuss.kotlinlang.org/t/opensource-kotlin-dsl-based-on-vaadin-to-create-rich-web-application/18717)

<div class="topic-metadata">

**Author:** [@marcomanzi](https://discuss.kotlinlang.org/u/marcomanzi)\
**Replies:** 0\
**Last updated:** [August 8, 2020, 10:52pm UTC](https://discuss.kotlinlang.org/t/opensource-kotlin-dsl-based-on-vaadin-to-create-rich-web-application/18717 "2020-08-08T22:52:57Z")

</div>

Hello everyone, I have started a little opensource Kolin project, I would love to have some feedback on it. It is a DSL based on Vaadin 16 that enhances it. It handles all the communication between the client and the ba…

---

## [Handling Etags on the client side](https://discuss.kotlinlang.org/t/handling-etags-on-the-client-side/18465)

<div class="topic-metadata">

**Author:** [@matto](https://discuss.kotlinlang.org/u/matto)\
**Replies:** 0\
**Last updated:** [July 17, 2020, 4:41am UTC](https://discuss.kotlinlang.org/t/handling-etags-on-the-client-side/18465 "2020-07-17T04:41:19Z")

</div>

I’m trying to find some ideas on how to handle Etags on the client-side from within Webflux http client builder( WebClient.Builder ) Wondering if it would build the response based on the server’s response(cached payload…

---

## [How to use ktor auto reload (live refresh) that using gradle kotlin dsl?](https://discuss.kotlinlang.org/t/how-to-use-ktor-auto-reload-live-refresh-that-using-gradle-kotlin-dsl/17638)

<div class="topic-metadata">

**Author:** [@sombochea](https://discuss.kotlinlang.org/u/sombochea)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 5:56am UTC](https://discuss.kotlinlang.org/t/how-to-use-ktor-auto-reload-live-refresh-that-using-gradle-kotlin-dsl/17638 "2020-05-14T05:56:34Z")

</div>

I want to develop server and client web with ktor, but when coding I don’t want to restart application every time. How could I do with this option? This main application: fun main(args: Array\<String\>): Unit = io.ktor.s…

---

## [Block an asynchronous call from a foreign API](https://discuss.kotlinlang.org/t/block-an-asynchronous-call-from-a-foreign-api/17575)

<div class="topic-metadata">

**Author:** [@jmg.duarte](https://discuss.kotlinlang.org/u/jmg.duarte)\
**Replies:** 0\
**Last updated:** [May 10, 2020, 9:12am UTC](https://discuss.kotlinlang.org/t/block-an-asynchronous-call-from-a-foreign-api/17575 "2020-05-10T09:12:24Z")

</div>

Hello everyone! I’m currently developing an HTTP server with Ktor backed by the BFT-SMaRt library. The BFT-SMaRt library is a Byzantine Fault Tolerant State Machine Replication library, our usage is to replicate system…

---

## [Kotlin \> Spring Boot \> Using router DSL, POST Method body, unable to convert JSON to POJOs](https://discuss.kotlinlang.org/t/kotlin-spring-boot-using-router-dsl-post-method-body-unable-to-convert-json-to-pojos/17503)

<div class="topic-metadata">

**Author:** [@cchunduri](https://discuss.kotlinlang.org/u/cchunduri)\
**Replies:** 5\
**Last updated:** [May 9, 2020, 1:18pm UTC](https://discuss.kotlinlang.org/t/kotlin-spring-boot-using-router-dsl-post-method-body-unable-to-convert-json-to-pojos/17503 "2020-05-09T13:18:15Z")

</div>

I’m trying to build a Petstore Fullstack application using Kotlin Multiplatform. I’m using Spring Router DSL for defining rest endpoints. For the GET method, it worked fine. Then I started working on POST, below is the c…

---

## [How to authenticate with web form in Ktor?](https://discuss.kotlinlang.org/t/how-to-authenticate-with-web-form-in-ktor/11227)

<div class="topic-metadata">

**Author:** [@kha](https://discuss.kotlinlang.org/u/kha)\
**Replies:** 5\
**Last updated:** [April 24, 2020, 4:59pm UTC](https://discuss.kotlinlang.org/t/how-to-authenticate-with-web-form-in-ktor/11227 "2020-04-24T16:59:33Z")

</div>

I could not find a working example of authenticating with web form. Here is my setup. install(Authentication) { form("myFormAuth") { userParamName = "username" passwordParamName = "passwo…

---

## [Kotlin/JS: Unable to load Kotlin-Styled, kotlin-css-js](https://discuss.kotlinlang.org/t/kotlin-js-unable-to-load-kotlin-styled-kotlin-css-js/17127)

<div class="topic-metadata">

**Author:** [@cchunduri](https://discuss.kotlinlang.org/u/cchunduri)\
**Replies:** 6\
**Last updated:** [April 15, 2020, 2:13pm UTC](https://discuss.kotlinlang.org/t/kotlin-js-unable-to-load-kotlin-styled-kotlin-css-js/17127 "2020-04-15T14:13:40Z")

</div>

Hi, I’m preparing a talk on how to use Kotlin/JS for React JS applications. For the demo purpose i’ve created a project, and here is the link to my project, https://github.com/cchunduri/kotlin-js-demo But when i’m runn…

---

## [Kotlin HTML DSL](https://discuss.kotlinlang.org/t/kotlin-html-dsl/7378)

<div class="topic-metadata">

**Author:** [@daggerok](https://discuss.kotlinlang.org/u/daggerok)\
**Replies:** 8\
**Last updated:** [March 7, 2020, 7:11pm UTC](https://discuss.kotlinlang.org/t/kotlin-html-dsl/7378 "2020-03-07T19:11:31Z")

</div>

Hello everyone! I wrote a little kotlin-html DSL: @file:JvmName("DOM") // flatten Element.attributes fun Array\<out Pair\<String, String\>\>.join(quote: String = "'") = if (this.isEmpty()) "" else " " + this.map { "${it…

---

## [Vert.x Route handlers](https://discuss.kotlinlang.org/t/vert-x-route-handlers/16036)

<div class="topic-metadata">

**Author:** [@skfh82](https://discuss.kotlinlang.org/u/skfh82)\
**Replies:** 1\
**Last updated:** [January 24, 2020, 12:26pm UTC](https://discuss.kotlinlang.org/t/vert-x-route-handlers/16036 "2020-01-24T12:26:11Z")

</div>

I’m using Vert.x Kotlin. I have something like class MainVerticle : AbstractVerticle() { override fun start() { val router = Router.router(vertx) router.get(“/helloworld”).handler { ctx → helloWorld(ctx) } } privat…

---

## [How to create lambda of type ((KeyboardEvent) -\> dynamic)?](https://discuss.kotlinlang.org/t/how-to-create-lambda-of-type-keyboardevent-dynamic/15821)

<div class="topic-metadata">

**Author:** [@oleks.albul](https://discuss.kotlinlang.org/u/oleks.albul)\
**Replies:** 4\
**Last updated:** [January 10, 2020, 2:38pm UTC](https://discuss.kotlinlang.org/t/how-to-create-lambda-of-type-keyboardevent-dynamic/15821 "2020-01-10T14:38:22Z")

</div>

I want to listen keyboard events. So I set lambda to document.onkeypress , which should be of type: var onkeypress: ((KeyboardEvent) -\> dynamic)? Currently I’m getting this: Lambda should return dynamic type, and I…

---

## [Jaxb2 plugin in kotlin gradle](https://discuss.kotlinlang.org/t/jaxb2-plugin-in-kotlin-gradle/15353)

<div class="topic-metadata">

**Author:** [@anurag.sanagapalli](https://discuss.kotlinlang.org/u/anurag.sanagapalli)\
**Replies:** 3\
**Last updated:** [December 9, 2019, 9:16am UTC](https://discuss.kotlinlang.org/t/jaxb2-plugin-in-kotlin-gradle/15353 "2019-12-09T09:16:50Z")

</div>

Hi, I am trying to develop soap web services using Gradle with kotlin. But I am unable to get gradle jaxb2 plugin. I tried using gradle mentioned in spring.io site but getting issues in build.gradle.kts. Can anyone repl…

---

## [Kotlin web development training](https://discuss.kotlinlang.org/t/kotlin-web-development-training/14871)

<div class="topic-metadata">

**Author:** [@gagansab](https://discuss.kotlinlang.org/u/gagansab)\
**Replies:** 0\
**Last updated:** [November 3, 2019, 2:56pm UTC](https://discuss.kotlinlang.org/t/kotlin-web-development-training/14871 "2019-11-03T14:56:58Z")

</div>

Hi All, I have started learning Kotlin and intend to explore it for web development. Does jetbrains have any training partners for web development from scratch ?

---

## [REST Service fails with MessageBodyWriter not found](https://discuss.kotlinlang.org/t/rest-service-fails-with-messagebodywriter-not-found/13841)

<div class="topic-metadata">

**Author:** [@Dave](https://discuss.kotlinlang.org/u/Dave)\
**Replies:** 2\
**Last updated:** [August 13, 2019, 3:36am UTC](https://discuss.kotlinlang.org/t/rest-service-fails-with-messagebodywriter-not-found/13841 "2019-08-13T03:36:21Z")

</div>

Hello, I try to move a project with REST services from Java to Kotlin.It is a simple Java EE 8 application using JAX-RS. The code is running in the same application (ear file). The following Java code generates JSON an…

---

## [Kotlin-frontend-plugin and debugging](https://discuss.kotlinlang.org/t/kotlin-frontend-plugin-and-debugging/13833)

<div class="topic-metadata">

**Author:** [@echekanskiy](https://discuss.kotlinlang.org/u/echekanskiy)\
**Replies:** 0\
**Last updated:** [August 12, 2019, 8:29am UTC](https://discuss.kotlinlang.org/t/kotlin-frontend-plugin-and-debugging/13833 "2019-08-12T08:29:02Z")

</div>

Hi. I am trying to dive to web dev with kotlin. I was able to put everything in place and now I have kotlin-frontend-plugin to build and start all my dependecies, source maps are in place as well, but… Is it possible som…

---

## [GET request with body](https://discuss.kotlinlang.org/t/get-request-with-body/13814)

<div class="topic-metadata">

**Author:** [@ivanito111](https://discuss.kotlinlang.org/u/ivanito111)\
**Replies:** 5\
**Last updated:** [August 10, 2019, 11:59am UTC](https://discuss.kotlinlang.org/t/get-request-with-body/13814 "2019-08-10T11:59:06Z")

</div>

Hello, so I am making a request to elasticSearch and I want to filter the data received by Timestamp value, I want every data between 6 and 8 A.M. for example. In postman the Body → raw is something like this: \`\`{ "que…

---

## [Having a Body in a Get Request. RestTemplate](https://discuss.kotlinlang.org/t/having-a-body-in-a-get-request-resttemplate/13815)

<div class="topic-metadata">

**Author:** [@ivanito111](https://discuss.kotlinlang.org/u/ivanito111)\
**Replies:** 0\
**Last updated:** [August 9, 2019, 7:24pm UTC](https://discuss.kotlinlang.org/t/having-a-body-in-a-get-request-resttemplate/13815 "2019-08-09T19:24:54Z")

</div>

Hello, so I am making a request to elasticSearch and I want to filter the data received by Timestamp value, I want every data between 6 and 8 A.M. for example. In postman the Body → raw is something like this: \`\`{ "que…

---

## [Ktor: cause of cancelled, upstream prematurely closed?](https://discuss.kotlinlang.org/t/ktor-cause-of-cancelled-upstream-prematurely-closed/12919)

<div class="topic-metadata">

**Author:** [@rnikander](https://discuss.kotlinlang.org/u/rnikander)\
**Replies:** 0\
**Last updated:** [June 1, 2019, 10:47am UTC](https://discuss.kotlinlang.org/t/ktor-cause-of-cancelled-upstream-prematurely-closed/12919 "2019-06-01T10:47:07Z")

</div>

I’m seeing this occasionally in my nginx log: 13:05:20 \[error\] 4144#0: \*7074 upstream prematurely closed connection while sending to client, client: 192…, server: …, request: “GET /static/kotlin.js HTTP/1.1”, … In th…

---

## [Use ResponseEntityExceptionHandler in Kotlin](https://discuss.kotlinlang.org/t/use-responseentityexceptionhandler-in-kotlin/12605)

<div class="topic-metadata">

**Author:** [@juniorjrjl](https://discuss.kotlinlang.org/u/juniorjrjl)\
**Replies:** 1\
**Last updated:** [May 18, 2019, 3:15pm UTC](https://discuss.kotlinlang.org/t/use-responseentityexceptionhandler-in-kotlin/12605 "2019-05-18T15:15:58Z")

</div>

I try to use ExceptionHandler in my project with Spring Boot and Kotlin, follow my implementation: @ControllerAdvice class BlogApiExceptionHandler @Autowired constructor(private val messageSource: MessageSource ): Respo…

---

## [How to add a DOM node in HTML DSL?](https://discuss.kotlinlang.org/t/how-to-add-a-dom-node-in-html-dsl/12602)

<div class="topic-metadata">

**Author:** [@rnikander](https://discuss.kotlinlang.org/u/rnikander)\
**Replies:** 7\
**Last updated:** [May 6, 2019, 1:32pm UTC](https://discuss.kotlinlang.org/t/how-to-add-a-dom-node-in-html-dsl/12602 "2019-05-06T13:32:12Z")

</div>

Using kotlinx.html DSL on the browser side, how do you add a DOM node to the tree that you’re building? Is there something available on which I can call appendNode(domNode) or something like that? So that domNode becomes…

---

## [Creating and Deploying a RESTful Web Service with Spring Boot](https://discuss.kotlinlang.org/t/creating-and-deploying-a-restful-web-service-with-spring-boot/12118)

<div class="topic-metadata">

**Author:** [@ivalle89](https://discuss.kotlinlang.org/u/ivalle89)\
**Replies:** 3\
**Last updated:** [March 29, 2019, 10:42am UTC](https://discuss.kotlinlang.org/t/creating-and-deploying-a-restful-web-service-with-spring-boot/12118 "2019-03-29T10:42:19Z")

</div>

Hello, Following this guide, I have managed to create a restfull api with kotlin, and make it work with Intelji, but I can not find the way to deploy it on my Tomcat server, making it completely independent of the progr…

---

## [Use rabbit mq in kotlin](https://discuss.kotlinlang.org/t/use-rabbit-mq-in-kotlin/11625)

<div class="topic-metadata">

**Author:** [@viraz12](https://discuss.kotlinlang.org/u/viraz12)\
**Replies:** 0\
**Last updated:** [February 17, 2019, 3:56am UTC](https://discuss.kotlinlang.org/t/use-rabbit-mq-in-kotlin/11625 "2019-02-17T03:56:31Z")

</div>

hi I want to use rabbit mq in my kotlin app , so how can I manage that?

[Previous page](https://discuss.kotlinlang.org/c/web-development/12.md)

[Next page](https://discuss.kotlinlang.org/c/web-development/12.md?page=2)
