Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

database connection in struts 1.1

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am totally new to struts
I want to connect to database get result set and display result on jsp
Pls send me code for that
Tx for ur co operation
Rakesh
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using a DataSource and Connection Pooling? Are you creating the Connections manually everytime you need them? Have you tried anything? Are you getting errors?
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gregg,
Donno if this is kinda intrusion but I am running into errors with the same issue. need your help. I am using struts 1.1/tomcat 4.0/oracle 8.1.7. This oracle is on a remote machine. I have a login page. Entering the values in this will check the DB and produce the result(general way ) I am using DataSource. The problem is after I enter the values, and submit them, I get an error page saying " HTTP Status 503 - Servlet action is currently unavailable
type Status report
message Servlet action is currently unavailable
description The requested service (Servlet action is currently unavailable) is not currently available.
I cannot track down why I get this error. I have all the classpath set in my local machine.(pointing to struts*.jar, rt.jar etc). Is this because my DB is located remotely? Do I need to add up any parameters for this? I have the DB info stored in struts-config.xml. Also, I connect to the DB through VPN.
Please help me out.
Padma.
 
WARNING! Do not activate jet boots indoors or you will see a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic