display data without retrieving from database

Posted on 2004-11-05
Last Modified: 2010-03-31

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?
Question by:widiyanto
    LVL 37

    Accepted Solution

    >> 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?

    Author Comment

    haha.. honestly.. I also don't know...
    but my supervisor asked me to do it... hehe..
    LVL 37

    Expert Comment

    Why are you not allowed to connect to the database?
    You have to connect to get the other data...
    Better ask your supervisor again...
    LVL 21

    Assisted Solution

    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)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now