Roberto Tucci

Greenhorn
+ Follow
since Mar 04, 2014
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Roberto Tucci

K. Tsang wrote:

Roberto Tucci wrote:Actually, I'm thinking to use the Spring properties file to manage all labels but I have some questions to ask: if I add a new message in my properties file, do I need to redeploy my webapp on Tomcat (stop server -> deploy -> run server)?



You should use Spring resource bundle configuration to read your messages.

If your properties file is inside your WAR, updating it will need redeploying.


Roberto Tucci wrote:
The second question is this: could be the database driven resource the best approach for this? In this case, i could avoid to redeploy the webapp on Tomcat (because my message resources are managed in my database)...



True putting such labels in DB will avoid redeploying. However, think about how you will access these messages since fetching every time is not a good idea.



Thanks!

I'm thinking to store a static object with all labels from DB (loaded on first deploy and available always without access on db every time)...could be a good idea? the application should be deployed anyway when i change a label on db...it's right?
6 years ago
Hi,
I'm building a new web app using Spring MVC 4 (under Tomcat) and I need to know what is the best approach to store the message source in my webapp.
Actually, I'm thinking to use the Spring properties file to manage all labels but I have some questions to ask: if I add a new message in my properties file, do I need to redeploy my webapp on Tomcat (stop server -> deploy -> run server)?
The second question is this: could be the database driven resource the best approach for this? In this case, i could avoid to redeploy the webapp on Tomcat (because my message resources are managed in my database)...

Thank you!!
6 years ago
Hi!

I'm trying to build some web pages in JSP (framework Spring MVC 4) using Polymer 1.0.

I would like to see some values from the Java object "User" in the web page but I can't understand how can I do to retrieve these values on Polymer.

First, I set a new object User in the Spring Controller and the method test() will retrieve a ModelAndView object:



After this, I put the ModelAndView object in my custom element in Polymer:


Finally, I create my "custom-element" using Polymer library:



When I launch the webpage, I can't see the value "fname" in the page...why? What I'm doing wrong?

Thanks in advance
6 years ago

Carey Brown wrote:On line 39 you are using count_coc to get dtJs element. You need an independent index into dtJs.



Thanks man for reply!
Yes, you're right...Anyway, there is something wrong in the logic of my code. I'm trying other solutions but it's very complex case...I'm losing all hopes...
7 years ago
Hi guys!
I've a complex (maybe) problem with my java application. Pratically, I've a date list (days of month) from a query and a date list (CoC) with a random number of dates.
I'm developing a java application to scan the days of month and write in output all the days of month and the relative date of other list when it changes.
I know, I'm uncleary but I've writed a simple code to make it clear to you. (I'm using JodaTime libs)

This is my (wrong) code:



This is the result:



This is my expected result:



Thanks so much!!
7 years ago
Thanks for reply!
I've fixed my problem as is:



Thanks!!
7 years ago
Hi Guys,
I'm trying to calculate the weeks of the month but I'm very confused how can I do... (I'm using JodaTime)

I considered, for example, current month (variable in input):



I would like see in output this result (based on Local date, possibly):

1 week: 03-30-2014 --- 04-05-2014
2 week: 04-06-2014 --- 04-12-2014
3 week: 04-13-2014 --- 04-19-2014
4 week: 04-20-2014 --- 04-26-2014
5 week: 04-27-2014 --- 05-03-2014

How can I do?? :-S

Thanks!!!
7 years ago
Thanks for your reply!
So, I understood. Mmm...is not an easy task.
According to you, are there similar alternative to HtmlUnit? Mainly, I need to get html and simulate a button click...

Thanks!
7 years ago
Hi,
I'm developing an app and I need to retrieve data from html code. In addition, i would like manage the event (for example, click the button and redirect in other page) in html code.
I searched on Google and I've found a beautiful library that meet my needs: HtmlUnit.
The problem is the compatibility with Android SDK: there are conflicts with Android classes and maybe, I must to recompile the source code for Android compatibility.
Are there alternative to HtmlUnit? I don't know how to build this library...Can you help me?

Any help would be most welcome...thank you!

PS: sorry for my poor english!
7 years ago