how to make the connection between sclate,the servlet and classes

71 views Asked by At

I'm new with the architecture of scalatra and devloppement scala .. i want to do a project with these new technilogies with templates but the problem that I can not understand how to realize the connection between the class or object, the servlet and Scalate..

I followed the site Scalate http://scalate.fusesource.org/ but I think it is not as easy.. I wanted to make html page and servlet with well-specified classes (like jsp,servlet and class java) but I unknown if faissable and If I to follow in this way the architecture of scalatra.

Can someone help me with documentation or explain to me how to do..I will be very grateful

2

There are 2 answers

0
dimitrisli On BEST ANSWER

You can use this scalatra-http-client working example published by Scalatra in Github. It's the bare minimum you need and can't get any easier than this.

The next step is to take a look at the other scalatra-website-examples webapp implemented examples that demonstrate things like: authentication, file uploading, forms handling and all this nicely wrapped with Bootstrap.

0
Stefan Ollinger On

You can follow the Getting started guide. By following this guide, you create a SBT build definition which is based on the scalatra-sbt.g8 Template. This already includes a setup for scalatra-scalate. The build definition encodes the project structure, dependencies and build characteristics. It allows SBT for example to download all dependencies and compile your project.

Then there are SBT plugins to create IDE projects for all common IDEs: sbt-eclipse, sbt-idea.

Here is explained how to use them with a Scalatra project: IDE Support. Note that IDEA for example can directly import SBT or Maven projects.