Question

I am trying to parsing JSON with scala.

So I make a scala Play Framework project. I heard if I want to use HttpUrlConnection like java, I need to import dispath classes.

I got that, but problem is I can guess where to install(?) this.

I visited dispatch homepage which explain install that library.

Link : http://dispatch.databinder.net/Dispatch.html

Follows are what I did :

  1. make an folder for library. names 'lib' and I put right under my project folder(where other folders are, like app, conf, target...)

  2. move inside 'lib' folder and make an script like dispatch homepage says. after I command 'sbt console', I got target folder and project folder.

Now, I do not know where to put this. My Project directory looks like this.

test01/lib
      /project
      /app
      /target
      /logs
      /public
      /test   

And this is under lib, which I just made to install dispatch library.

../../lib/build.sbt
         /target
         /project/target
Was it helpful?

Solution

Please refer to the WS API in the Play documentation for easy Http calls examples.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top