display data without retrieving from database


Is there any way that we can display data without retrieve from database?
For example,

if inside the database:
code description
cm_123 coffee 123
cm_124 coffee 124
te_234 tea 234
te_235 tea 235

then I want to add another column called type which consist of 2 types tea and coffee so that in the html:

code description type
cm_123 coffee 123 coffee
cm_124 coffee 124 coffee
te_234 tea 234 tea
te_235 tea 235 tea

so when the user add and update the type, we just display it. is there any way of doing this without connecting to database?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zzynxSoftware engineerCommented:
>> then I want to add another column
Visually, not in the database?

>>so when the user add and update the type, we just display it. is there any way of doing this without connecting to database?
Well, if you store your information in a certain class MyData, give that class an extra data member
       String type
and fill it in and display it.

Just don't know where you're going to "save" that information if not in the database?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
widiyantoAuthor Commented:
haha.. honestly.. I also don't know...
but my supervisor asked me to do it... hehe..
zzynxSoftware engineerCommented:
Why are you not allowed to connect to the database?
You have to connect to get the other data...
Better ask your supervisor again...
You could cache the database records in an XML file.   Then the display could read the XML file and display it (Maybe using XSLT).

Another process could update the XML file when the database changes (or through a manually accessed web page)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.