0

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?

4
  • It doesn't sound like this is a GIS question. Maybe this question would be better suited for stackoverflow? Commented Aug 24, 2011 at 17:28
  • Sorry, I'm using PostGIS but I thought it wasn't necessary to specify, can this question be moved to stackoverflow? Commented Aug 24, 2011 at 17:30
  • I'm not sure. I'll flag it for a moderator to look at. If you're using PostGIS and you're moving geographic data around, I guess it technically is a GIS question. You'll probably have better luck over there, though. Commented Aug 24, 2011 at 17:42
  • 2
    I this that should be possible to use "good-old" JDBC. Commented Aug 24, 2011 at 18:34

1 Answer 1

1

You should look at the GeoTools java toolkit project. It deals with several types of datastores through JDBC. Here's some documentation with samples:

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.