Questions tagged [activeweb]

ActiveWeb is a Java web framework inspired by Ruby on Rails. It is optimized to be sustainable, productive, and familiar for Java developers.

49 questions
2
votes
1 answer

Multiple tables with same model

I am using Active JDBC. I have a use case where I wanted to read from table_date on any given date where the structure/model of the table will be same for all the tables of this type. eg: registrations_29_10_2015, registrations_10_11_2015, etc..…
1
vote
1 answer

javalite Activeweb how to get response body string for logging purpose in HttpSupportFilter

How to get responseBody string for logging purpose in HttpSupportFilter? Common log solution is create wrapper and insert it to the standar filter If we use standar filter we cannot access activejdbc db connection layer I tried to apply wrapper but…
xanana
  • 13
  • 2
1
vote
1 answer

ConnectionSpecWrapper no longer present in recent releases

Why the activejdbc class ConnectionSpecWrapper has disappeared in recent releases? in the 3.0 (and also 2.3.2-j8) activejdbc jar we have:…
1
vote
0 answers

ProGuard to obfuscate only one class

My project is based on activeweb + activejdbc, and put db migrator in the app, and I want to obfuscate only one class(named app.util.SecretClass) by proguard. The pom.xml lists below:
Jack Tang
  • 59
  • 5
1
vote
1 answer

ActiveWeb - rendering parent attribute value

Suppose Author belongs_to Boook. Is it possible to do the same as in Rails templates in a Freemarker template: "author": ${book.author.last_name} I tried without success. May be my syntax is wrong or I'm missing something ?
belgoros
  • 3,590
  • 7
  • 38
  • 76
1
vote
2 answers

ActiveWeb : custom controllers in sub-packages do not work

I created a RouteConfig class in app.config package as follows: public class RouteConfig extends AbstractRouteConfig { @Override public void init(AppContext appContext) { …
belgoros
  • 3,590
  • 7
  • 38
  • 76
1
vote
1 answer

Activeweb CORS Option Preflight in Restful Controllers

When trying to connect to a restful controller in activeweb from a nodejs application chrome is sending options preflight request for delete and put methods, the preflight request needs to be handled by emitting a 200 response from the server. As…
Partha
  • 15
  • 4
1
vote
1 answer

Proper activeweb configuration for pages with foreign language characters

I have just created new web application based on activeweb framework and by default it shows me "?" for all foreign language characters. Something like this: ? ????????? ?????? ???? ????????? ?? ?????? ?????????? ? ??? ???? ?????????? …
1
vote
0 answers

A required class was missing while executing org.mortbay.jetty:maven-jetty-plugin:6.1.26:run: org/mortbay/util/Attributes

I have just trying to run ActiveWeb example https://github.com/javalite/activeweb-bootstrap Cloning code: D:\Users\Dims\Design\!Pure>git clone https://github.com/javalite/activeweb-bootstrap.git Cloning into 'activeweb-bootstrap'... remote: Counting…
Dims
  • 47,675
  • 117
  • 331
  • 600
1
vote
1 answer

ActiveWeb web application does not run under Jetty

I have created sample web application, packaged it into WAR, then put it into webapps folder into jetty. And it does not work. Proof, windows from top to bottom: 1) The content of GreetingController.java 2) The compiled file is present inside WAR…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

Java Package Name(s) for Javalite Application

I'm quite new to Javalite and have coded my first application. My first question is about Java package names to use - all examples I've found have top-level package name as 'app'. Can I define and use my own package names assuming that package names…
Nick S
  • 11
  • 2
0
votes
1 answer

Mock RequestContext to run a test

I have a class that uses Active Web - HttpSupport View - in a service class. I know that is wrong but I cannot change right now. So, when I am running a test I receive a null pointer at this point: Because request context.getValues() is null. How I…
0
votes
1 answer

How to optimize connection managment in ActiveJDBC?

I am using ActiveJDBC as an alternative to Hibernate. I am using a Filter to start the connection whenever I run the application, but the connection will be there even when it is not needed by the application. Also, when I try to run any query by…
0
votes
1 answer

How to return raw response from JavaLite.io activeweb controller

It is possible to return raw response from JavaLite.io Activeweb controller without chaining it with embedded FreeMarker template engine ?
0
votes
1 answer

How do I suppress additional content in freemarker template file?

My company uses java lite (active web) and freemarker templates for display in some legacy web pages. I wrote an active web AppController which is forwarding to an ftl display file (freemarker template) and I'm able to see the 'hello world' content.…
George
  • 1,021
  • 15
  • 32
1
2 3 4