Tomasz Ducin

Greenhorn
+ Follow
since Jan 22, 2013
Tomasz likes ...
Hibernate Linux Spring
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 Tomasz Ducin

I've answered on your question you published on stackoverflow.
I can't see clear difference between those two tags. I've seen the docs and definitions for those tags are similar as well. Both tags just render attribute value. Can anyone eplain what's the difference?

For example, I can use both tags to render HTML page title. If insertDefinition does all the job that getAsString does, why is it separated? In what situations would it be useful?
Hi! I'm getting the same error, though in a different project. I'm using Spring 3 with Hibernate 4 and I try to follow most up-to-date tutorials (so if I'm using something old, please let me know).

My bean config file with hibernate settings is:



And this is the error, below. I have included lastest hibernate 4 (version 4.1.9) all required jars in the classpath.



Please give me a hint on what should I do - download apache dbcp? Somebody mentioned that basic data source is deprecated ("very old") - what should I use instead?
6 years ago
In spring web mvc I couldn't find some fundamental layout features such as decorating templates (separating columns, footers, headers, etc. into reusable jsp files). I read several opinions on the web that the best UI to use along with spring web mvc is apache tiles. Some said that it can also be sitemesh.

Lately I've been trying to use Apache Tiles with my spring project and I'm somehow disappointed, because it is not as developer-friendly as I expected. Tiles implement composite view, whereas sitemesh implement decorator pattern. This is fundamental difference, since decorator is easier for developer to use and - imho - more flexible (e.g. it enables to override variables in the child views, not in xml definitions). I would like to get your opinions on where Tiles (a composite-view-based templating engine) can be better than a decorator pattern? And what do you use?

Yep, as you can see, I'm a JEE newbie ;) I've been working in PHP until now and I must say that almost every PHP templating engine has all important features built in (no need to include .tld files). In JEE you've got to use JSP + JSF or Tiles or Sitemesh - I wonder why isn't it just all included in spring web mvc? I can't imagine a big website that doesn't have a well-implemented templating engine (e.g. inheritance) - this forces the developer to choose several tools to build only the UI part of a system (django, ruby on rails, symfony - they cover all those topics all by theirselves).
6 years ago
Thanks for your answer. This Maven reminds me of PHP's composer and packagist.
6 years ago
Well, that sounds great. As far as I know Maven is the descendant of Ant, right?
6 years ago
I'm developing a spring3 project and decided to include tiles3 there. I have downloaded tiles3.0.1 (latest stable) and created an IDE Library inside my NetBeans IDE. I thought that .war files shuld be kept as small as possible so I'd just incude only those .jar files which are needed. This resulted in reading tomcat logs most of the time and including more and more jars (NoClassDefFound exceptions). Finally, I added all jar files and continued to develop the application in peace .

Since I'm a JEE newbie, this could have been not such a good idea ;). What do you think? What are your practices?
6 years ago
Many thanks for your reply. It's easier to get a valuable response here than on stack overflow
Hello everyone

I'd like to get a better understanding of how JDBC works.

As far as I understood, JDBC is (originally) Sun's interface for connecting dbs. Each implementation is a db driver, such as mysql or derby. JDBC URL is just a pattern, e.g. jdbc:driver://localhost:port/database_name, so it's parametrized.

If I want to connect to a database from any application without an IDE, say a small console application, I need to include a .jar with the driver and configure the connection inside the app (url, user, password, etc.). Is it all I should take care of? I mean - inside the NetBeans IDE there is 'services' tab next to 'projects' and 'files', where I add and remove jdbc connections. Are these just shortcuts to existing database so that I can access them (by clicking) faster or are they some kind of connection objects stored anywhere so that I shall create such objects in my console application?

Please correct me if I misunderstood anything. I'm a newbie, so forgive me silly questions... Thanks in advance!