I’m new to Struts 2, and I’ve done some exercises, but I haven’t found an example that explains to me how to insert/retrieve the data into/from a database.
I know I can use Hibernate, but I have to do it without using Hibernate, so my question is how do I insert/retrieve the data into/from a Postgres database using only Struts 2?
You should look at the GeoTools java toolkit project. It deals with several types of datastores through JDBC. Here’s some documentation with samples: