Questions tagged [scalatra]

Scalatra is a tiny Scala web framework, inspired by Sinatra.

Scalatra is a microframework written in Scala. It is a port of the Sinatra framework written in Ruby. Scalatra can be expanded into a minimal but full-featured model-view-controller web framework.

Website: http://scalatra.org/

Source: https://github.com/scalatra/scalatra

309 questions
0
votes
1 answer

Accessing flash map from Jade template in Scalatra

I'm creating application using Scalatra and I'm using Scalate/Jade for templating. I try to add flash support to my application. I mixed FlashMapSupport into into my Servlet and I'm able to access flash helper. Anyway, if I'm trying to get it from…
Yura Taras
  • 1,293
  • 14
  • 26
0
votes
1 answer

scalatra case t: Throwable => t.printStacktrace()

I am just beginning with scala and scalatra. Following the guidline at http://www.scalatra.org/getting-started/first-project.html I am running into a compilation error that I am not sure how to handle: [error]…
c11z
  • 1
  • 1
0
votes
1 answer

ScalatraServlet with AkkaSupport with GZipSupport

I'm trying to use Scalatra with AkkaSupport and the newly introduced (2.2.0 RC2) GZipSupport. It fails and I'm trying to figure out if I'm doing something wrong, before I file a bug report. The code is the default Scalatra/Akka example, including…
0
votes
1 answer

Scalatra host static

I can host scalatra static files (eg js) from /static if i register the default servlet for /static, How can I specify /static outside of the classpath, ie c:/path/static So that-way i can develop the web part separate from the embedded hosting.
maxfridbe
  • 5,872
  • 10
  • 58
  • 80
0
votes
1 answer

Trying to define Scalatra webservice with JSON parameters

I am trying to define a webservice, using Scalatra, where the parameters are passed in in the body, preferably as JSON, not having everything on the url, as I have it now. So, I would like this test to pass, but the commented out code is what passes…
James Black
  • 41,583
  • 10
  • 86
  • 166
0
votes
0 answers

Unit testing a Scalatra POST service with specs2

I am trying to use this test to test my webservice: "POST /phaseupdate" should { "return status 200" in { put("/phaseupdate", Map("filename" -> "test1", "entryaddress" -> "address 1","name" -> "starting","percentcomplete" -> "10")) { …
James Black
  • 41,583
  • 10
  • 86
  • 166
0
votes
1 answer

GlassFish 3.1.2 + Cluster + Web Container Properties

I have an issue in Glassfish regarding dealing with properties wehn setting up a web application We are moving from using Jetty to a clustered environment setup with GlassFish on Amazon AWS Conventionally speaking when dealing with Servlets you are…
mdedetrich
  • 1,899
  • 1
  • 18
  • 29
0
votes
1 answer

Scalatra on nginx : how to set up?

Would like to set up Scalatra to run on a box running nginx. Already have nginx set up correctly, and am able to serve static html pages, however, I now wish to point it to a Scalatra app. All of the documents available appear to assume that the…
bguiz
  • 27,371
  • 47
  • 154
  • 243
0
votes
2 answers

error deploying scala app on GAE

Iam trying to develop a scala web app and try to deploy in to GAE. While deploying app from the sbt appengine prompt (appengine-deploy), I get this error. I have no clue why its happening but deploying on a local works…
prassee
  • 3,651
  • 6
  • 30
  • 49
1 2 3
20
21