Click here to Skip to main content
15,891,704 members
Home / Discussions / Java
   

Java

 
QuestionCreating the Quartz Database Structure Pin
R V Reddy2-May-11 21:02
R V Reddy2-May-11 21:02 
AnswerRe: Creating the Quartz Database Structure Pin
DaveAuld2-May-11 21:54
professionalDaveAuld2-May-11 21:54 
GeneralRe: Creating the Quartz Database Structure Pin
R V Reddy2-May-11 23:31
R V Reddy2-May-11 23:31 
GeneralRe: Creating the Quartz Database Structure Pin
DaveAuld2-May-11 23:37
professionalDaveAuld2-May-11 23:37 
QuestionConnection Information to DB in Java Web ? Pin
tannghia1-May-11 17:12
tannghia1-May-11 17:12 
AnswerRe: Connection Information to DB in Java Web ? Pin
Richard MacCutchan1-May-11 23:21
mveRichard MacCutchan1-May-11 23:21 
AnswerRe: Connection Information to DB in Java Web ? Pin
jschell2-May-11 7:50
jschell2-May-11 7:50 
AnswerRe: Connection Information to DB in Java Web ? Pin
all_in_flames8-Jun-11 7:56
professionalall_in_flames8-Jun-11 7:56 
If your Java web application is not using HttpServletContext (and by association, the rest of the Java Servlet API), there's no robust best-practice way to configure resources outside of simple property files. You can look up any file by context, if you're aware of the layout of your application (I'll assume EAR/WAR/JAR, but since you don't seem to be using JEE based on your HttpServletContext comment, that might be a flawed assumption).

If you had a "resources" project, you should know where it will live in relation to your main web project: i.e. EAR file contains WAR file, which contains a WEB-INF/lib folder, which then contains the rest of your project jars. Based on this knowledge, you should be able to use the standard Java FileStream objects to load those files and read the connection properties you want to store.

I would recommend researching JEE best practices for web resources, however, as there are ways to store connection information for data sources (JDBC) that follow the JEE standards, and can be used with any compatible web container (Tomcat, JBoss, IBM WebSphere, etc).

Cheers!
Questionxml parsing in java applets Pin
bala_brim30-Apr-11 0:27
bala_brim30-Apr-11 0:27 
AnswerRe: xml parsing in java applets Pin
Richard MacCutchan30-Apr-11 5:35
mveRichard MacCutchan30-Apr-11 5:35 
GeneralRe: xml parsing in java applets Pin
Nagy Vilmos1-May-11 22:39
professionalNagy Vilmos1-May-11 22:39 
AnswerRe: xml parsing in java applets [modified] Pin
all_in_flames8-Jun-11 8:00
professionalall_in_flames8-Jun-11 8:00 
QuestionBest way to display news from DB in jsp Pin
Aljaz11128-Apr-11 6:38
Aljaz11128-Apr-11 6:38 
AnswerRe: Best way to display news from DB in jsp Pin
TorstenH.28-Apr-11 18:55
TorstenH.28-Apr-11 18:55 
GeneralRe: Best way to display news from DB in jsp [modified] Pin
Aljaz11129-Apr-11 4:53
Aljaz11129-Apr-11 4:53 
GeneralRe: Best way to display news from DB in jsp Pin
all_in_flames8-Jun-11 8:10
professionalall_in_flames8-Jun-11 8:10 
Questioncore java Pin
debu900227-Apr-11 22:04
debu900227-Apr-11 22:04 
AnswerRe: core java Pin
Richard MacCutchan27-Apr-11 23:05
mveRichard MacCutchan27-Apr-11 23:05 
AnswerRe: core java Pin
RaviRanjanKr29-Apr-11 9:59
professionalRaviRanjanKr29-Apr-11 9:59 
AnswerRe: core java Pin
Dhruv Arya30-Apr-11 8:04
Dhruv Arya30-Apr-11 8:04 
AnswerRe: core java Pin
JP_Rocks29-May-11 22:37
JP_Rocks29-May-11 22:37 
Questionjni and using Data Structures Pin
harzemli27-Apr-11 3:23
harzemli27-Apr-11 3:23 
AnswerRe: jni and using Data Structures Pin
Richard MacCutchan27-Apr-11 4:47
mveRichard MacCutchan27-Apr-11 4:47 
GeneralRe: jni and using Data Structures Pin
harzemli27-Apr-11 4:54
harzemli27-Apr-11 4:54 
GeneralRe: jni and using Data Structures Pin
Richard MacCutchan27-Apr-11 6:52
mveRichard MacCutchan27-Apr-11 6:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.