473,395 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how to getting the value from data base and store into the temp file

kaleeswaran
132 100+
hi!
i am going to display list of 200 titles in my drop down box.it is from data base and show it over the jsp page.so each time i open the page then the drop down box value also loaded again and again.so what is my idea is it should be loaded once and have to select the particular thing that will be going to affect the sever...can i do that thing?...so my thinging is from the very first time the data will be loaded from the data base and i store into the some temp file and call it from the jsp page....
is it good idea?,,,
if so how can i do this?...give me solution
thank you,
kaleeswaran
Nov 13 '07 #1
3 1242
r035198x
13,262 8TB
hi!
i am going to display list of 200 titles in my drop down box.it is from data base and show it over the jsp page.so each time i open the page then the drop down box value also loaded again and again.so what is my idea is it should be loaded once and have to select the particular thing that will be going to affect the sever...can i do that thing?...so my thinging is from the very first time the data will be loaded from the data base and i store into the some temp file and call it from the jsp page....
is it good idea?,,,
if so how can i do this?...give me solution
thank you,
kaleeswaran
How often is the titles list changed/updated in the database?
Nov 13 '07 #2
kaleeswaran
132 100+
NO NO...
i am not going to change the title and all other thing.,..i am just displaying the list of things that's all...i want to make a copy of thing into my java file itself that's it....
Nov 13 '07 #3
r035198x
13,262 8TB
NO NO...
i am not going to change the title and all other thing.,..i am just displaying the list of things that's all...i want to make a copy of thing into my java file itself that's it....
So you don't need to be requerying the database everytime do you?
In fact you can even store all the titles in one field in the database(perhaps as a long string separated by commas). I suggest that you use a static method called say getTitles() which returns an ArrayList of the titles. The arraylist should be populated only once when the server is started (perhaps in a static initializer block of some utils class).
Nov 13 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: cwizard | last post by:
I'm calling on a function from within this form, and there are values set but every time it gets called I get slammed with a run time error... document.frmKitAmount.txtTotalKitValue is null or not...
21
by: Michael Bierman | last post by:
Please forgive the simplicy of this question. I have the following code which attempts to determine the color of some text and set other text to match that color. It works fine in Firefox, but does...
0
by: Michael Probst | last post by:
Hi all, I am new to .NET and the way XML data is handled in .NET I wrote a small application with .NET forms in C++ The application reads data from an XML file to fill-in the fields of the...
2
by: Joe | last post by:
Hi All, I am new to using the Access DB and I need some help if someone is able to give it to me. What I want to do is get the names of the columns of certain tables. Not the data in the table...
6
by: dtschoepe | last post by:
Hi all, Working on homework again... I've got a weird problem, I've been banging my head against the wall on what is causing it. I have a pointer to a typdef named Person. At one point in the...
0
by: rautsmita | last post by:
hello friends , i am using to jdk6 and JAXB2.0, i have geomtry.xsd file i am trying to compile this file using jaxb but i got some error i.e.The particle of the type is not a valid restriction of...
7
by: dana_livni2000 | last post by:
how do i print the acuale byte sequence that represent a vairable (let say a char - i want to see the 8 bits). thanks dana
3
by: Adrian | last post by:
In the following code example I am trying to create a generic interface for a bunch of objects. Each concrete type is stored in its own container and the a container of pointer's to base is used so I...
7
vikas251074
by: vikas251074 | last post by:
I am getting error above in following code since few days giving tension day and night. How can I solve this? I am facing since Oct.25. in line no. 362 After doing a lot of homework, I am...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.