Questions tagged [jodd]

Jodd is an open-source Java utility library and complete set of micro-frameworks.

Jodd is an open-source Java utility library and set of micro frameworks. Jodd tools enriches JDK with many powerful and feature rich utilities. It helps with everyday task, makes code more robust and reliable. Jodd frameworks is set of lightweight application frameworks, compact yet powerful. Designed following the CoC, DRY and SCS principles, it makes development simple, but not simpler; you get 90% of the features with 10% of usual effort.

Special attention is put into creating reusable and fastest possible code and still keeping it small, under 1.5 MB.

Jodd is free software, released under the terms of the BSD license.

Jodd = tools + ioc + mvc + db + aop + tx + html + json

More details :

68 questions
1
vote
1 answer

How to upload multiple files with jodd-http?

How do I upload muliple files in the same request using jodd HTTP? I've tried something like the following but only the first file was posted. HttpRequest httpRequest = HttpRequest .post("http://srv:8080/api/dlapp/add-file-entry") …
Chris Bekas
  • 27
  • 1
  • 6
1
vote
1 answer

Why @PetiteInject cannot inject service in DecoraManager?

I have a DecoraManager implementation : AppDecoraManager, and want to inject a service e.g.: FooService as: @PetiteInject FooService fooService; When resolveDecorator() is called I want to use fooService to determine some parameters, but it has…
papgyo
  • 87
  • 4
1
vote
1 answer

How to set maxFileSize for FileUploadFactory when using Joy?

Can someone please let me know how to configure the maxFileSize for fileUploads in Jodd, when using Joy? I've tried in joy.props, even under [joy.madvoc] section with the earlier working: madvocConfig.fileUploadFactory.maxFileSize=-1 But have no…
papgyo
  • 87
  • 4
1
vote
2 answers

Jodd: Not To Serialize Empty Object

Currently we are using JODD lib to do the JSON serialization. But it always serialize the empty object. I want object non-empty object to be serialized to a Json string. How can we do that? Expecting: {payload={app={id=xxx, version=0, hash=asdf,…
Tianhao Wang
  • 178
  • 9
1
vote
1 answer

How to display the conversation between server and client with Jodd

In upgrading from an older version of Jodd I cannot identify how to display the conversation between the server and the client. In the past I wrote: smtpServer.debug(true); imapServer.setProperty("mail.debug", "true"); Now I tried to…
Ken Fogel
  • 56
  • 6
1
vote
1 answer

jodd mail EmailFilter does not work

I use receiveEmailAndMarkSeen(EmailFilter.filter().flag(Flags.Flag.SEEN,true)); to filter the message which I don't read, but the function returns empty array. If I set false it returns all the message. I test many times, I don't know what's…
Hertz
  • 13
  • 2
1
vote
2 answers

ActionResult , exception with new Jodd version

I have some code which works Ok with jodd 3.9.1 and I want to upgrade it to jodd version 4.1.4. but I have some errors: Example: @POST @Action public String save(){ ... some code for validation if (!valid){ return VTOR_JSON; …
Solic
  • 21
  • 4
1
vote
2 answers

Using JoddHttp put request to send JSON with the .body() corrupts Chinese text

My method is as follows: public String submitMaterials(String url,JSONObject params) { return HttpRequest .create("put", url) .mediaType(MediaType.APPLICATION_JSON_UTF8_VALUE) .body(params.toJSONString()) .send() …
D.D
  • 13
  • 2
1
vote
1 answer

jodd HttpRequest form set content-type invalid

HttpRequest set form content-type invalid @Test public void getImgCode() { Map param = new HashMap<>(); param.put("userId", "11111"); HttpRequest request = HttpRequest.post(baseUrl + "openapi/api/v2/getCode") …
senz
  • 79
  • 3
  • 11
1
vote
1 answer

Jodd Message parsing failed

I'm using Jodd version 3.7 and I would like to read an outlook account (outlook.it). Outlook SMTP is : server: smtp-mail.outlook.com port: 587 with TLS and IMAP is : server: imap-mail.outlook.com port: 993 with SSL Sending email is fine, but when…
afterbit
  • 383
  • 7
  • 20
1
vote
1 answer

Setting timeout for Jodd Imap or Pop3

I'm using Jodd Email library to send and receive emails. With Jodd SmtpServer I can set connection timeout. I have tried to read the documentation but I have not found anything. I would like to set a timeout with Imap or Pop3.
afterbit
  • 383
  • 7
  • 20
1
vote
1 answer

How to tell the target JSP to use in Jodd?

Looking at the tutorial on http://joddframework.org/, one thing I cant figure out is how the target JSP is choosen. Would you help? Thank you.
1
vote
1 answer

Jodd jDateTime TimeZone: How to change timezone?

http://jodd.org/doc/jdatetime.html#timezones-and-dst The following example shows the current time in Japan: JDateTime jdt = new JDateTime(); jdt.setTimeZone(TimeZone.getTimeZone("Japan")); System.out.println(jdt); I've tried the above example,…
James
  • 11
  • 1
1
vote
1 answer

Is there a way how to run madvoc inside of spring boot?

Is there a way to run Madvoc web microframework inside of Spring Boot? Spring Boot allows integration of other technologies (we experimented with Apache Wicket running under Spring Boot). Is this possible for JODD madvoc? Is there any proper…
David Marko
  • 2,477
  • 3
  • 27
  • 58
1
vote
1 answer

After issuing an DBQuery with an insert, how can I get the generated id, so I can add it back to the DAO?

Its more than just insert, really. If I already have a partially loaded DAO, how can I load the rest of it? What I'm going to do is to do a select query, and then use BeanCopy. I'd rather have the result set mapper directly set the properties on…
aim4min
  • 81
  • 2