User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 373,522 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,769 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 12448 | Replies: 2
Reply
Join Date: Mar 2003
Posts: 2
Reputation: bebacha is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bebacha bebacha is offline Offline
Newbie Poster

JSP and Oracle

  #1  
Mar 31st, 2003
I am building a JSP app running on Tomcat.
The app uses an Oracle backend for data management and things like passwords and so on.
There are several objects created by the app called cards. Each card will make use of different but similar groups of data, attributes of tables.
There will also be the capability of creating a new card with a new group of data.
I am assuming that this group of data will be accessed via an sql string but nothing is written in stone at this point except the technologies of jsp and Oracle.
Some of these sql strings will be VERY long.
Does anyone have any idea where I can store and manage these strings? Text files? Stored Procedures? CallableStatements?
HELP!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2002
Location: Long Island, NY
Posts: 1,134
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Rep Power: 12
Solved Threads: 2
Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor
  #2  
Mar 31st, 2003
What do you mean manage? What do you exactly want to do with the SQL statements? If you just want to save them, I'd just put them in a file. I don't see why though, unless you're not using the SQL statements. Maybe you can be a bit more specific.
_.:: my websites ::._
blog @ www.samaru.net * engi No Jutsu @ www.narutorp.net * portfolio @ shinylight.com
deviantART: inscissor
Reply With Quote  
Join Date: Mar 2003
Posts: 2
Reputation: bebacha is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bebacha bebacha is offline Offline
Newbie Poster

SQL Strings

  #3  
Mar 31st, 2003
Each card will use different attributes from different tables.
Each SQL string will select these attributes specific to the card.
When a new card is created, a new select statement will be created to identify which attributes this card will use.
That string will tell the jsp which fields to display on the page when the user selects a specific type of card. Then the user can add data, edit data, delete data, search through the data using drop down lists or print the data for a particular combination specific to that kind of card.
The reason I need to use these strings (I think) is that they are going to be different for every kind of card, and there is an infinite (within reason) number of card possibilities, and therefore an infinite number of attribute combinations.
So the sql strings themselves will be static but linked to a card type in the database, either as a very long string stored in the database, or as a path to a text file that holds the string, or possibly, as a callableStatement or stored procedure.
Does that explain?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 6:29 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC