• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts 1.3 Database

 
Greenhorn
Posts: 21
Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

I'm learning Struts Framework 1.3.

I have to create an JSP page with the ReasulSet of the query on the Database, by a Collection or an ArrayList.

Someone can explain me, how to create a JSP with this characteristic, using Struts 1.3?!

Thanks in advance!
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What in particular is causing you problems?
 
Lorenzo Tagliaferro
Greenhorn
Posts: 21
Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have not understood how to create by MVC model 2 , that INSERT an SQL rows, QUERY database, then show on an JSP page.
I have created an ActionForm and an Action with Collection of ActionForm.
But, where have I insert the code to connect the database (MySql Driver, Statement, ect) usig Struts?!
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should never have a collection of ActionForms.

Database logic is best handled in a service class, but could also be put directly in the action (makes testing more difficult).
 
Lorenzo Tagliaferro
Greenhorn
Posts: 21
Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Great!!

Can you counsel me, a site or a book where can I find a example about that?!

I'm studiyng on "Struts 1, Best Pratices", but it isn't enough to understand Struts 1.3!!!

Thank you, so much!!
 
Ranch Hand
Posts: 64
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

David Newton wrote:You should never have a collection of ActionForms.

Database logic is best handled in a service class, but could also be put directly in the action (makes testing more difficult).



Hi there,

Can you please provide some link of using service class......
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic