S
Steven
Hi All,
I'm just a beginner with JSP so excuse me if this is a 'stupid' question.
I'm building an Application that uses MySQL database everything works ok,
but
I would like to know if there is a way to have a variable that I can use on
every page.
The reason is, is because I have lots of pages (and growing) where I have
the
database connect string with username password, but due to security reason
the user/pass for the database will change every now and then.
I'm familiar with Coldfusion and in Coldfusion you can setup an
Application.cfm file. This file is called before every other .cfm file. Is
there something like that
in JSP?
The solution I thought of is, putting the connect string into a session
variable.
Is this a could idea?
If not, are there any other better ways of achiving this?
Thanks for any help!
Steven.
I'm just a beginner with JSP so excuse me if this is a 'stupid' question.
I'm building an Application that uses MySQL database everything works ok,
but
I would like to know if there is a way to have a variable that I can use on
every page.
The reason is, is because I have lots of pages (and growing) where I have
the
database connect string with username password, but due to security reason
the user/pass for the database will change every now and then.
I'm familiar with Coldfusion and in Coldfusion you can setup an
Application.cfm file. This file is called before every other .cfm file. Is
there something like that
in JSP?
The solution I thought of is, putting the connect string into a session
variable.
Is this a could idea?
If not, are there any other better ways of achiving this?
Thanks for any help!
Steven.