Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5937115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:29:38+00:00 2026-05-22T15:29:38+00:00

In my web application there is a need to customize the UI. For example,

  • 0

In my web application there is a need to customize the UI. For example, hide menu(s) or menu section, hide some columns or buttons etc.

What is the best practice to follow in this situation? The application should be able to restore the settings for a user, if he has modified it. the application does not have any database. Is XML the way to go? I need a good reference example.

-Nik.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:29:38+00:00Added an answer on May 22, 2026 at 3:29 pm

    The application does not have any database

    Do you store any state? If so, where and how? If the answer is “in xml on the filesystem,” then I suppose in xml on the filesystem is a fine place to store your preferences.

    Are the user’s choices persistent across sessions? Are there sessions? If there aren’t, or there’s no need for persistence, then storing them as parameters you pass around might be fine.

    As far as a reference, I’m not sure. What is your web app using? Is it just a java server you wrote yourself? A collection of jsp pages running in tomcat? A struts/spring/whatever application? If you just want a trivial example, check out a xerces tutorial. Perhaps the xml document looks like this, with a unique key for the user determining which file to read from the filesystem.

    user_preferences_1341342134.xml

    <preferences>
      <pref name="show_graphs" value="false"/>
      <pref name="background_color" value="#ffffff"/>
      <pref name="rounded_corners" value="true"/>
    </preferences>
    

    Or maybe you want a specific element for each preference type:

    <preferences>
      <show_graphs>false</show_graphs>
      <background_color>#ffffff</background_color>
      <rounded_corners>true</rounded_corners>
    </preferences>
    

    Anyway, if you have a default_preferences.xml, you can use that to restore things.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we need reports in our web application and there is the free ReportViewer Control
I'm working on a Wicket-based web application. In the application there are buttons that
I'm developing a Web application. I need to display some decimal data correctly so
Currently, web application need to offer some kind of cross-domain HTTP header to access
Are there any prerequisites I need to know before I build a website/web application
In my web application there is a process that queries data from all over
There are lots of web application frameworks available these days, for pretty much every
Is there any difference between website and web application project? What if you are
Is there a general rule of thumb to follow when storing web application data
Are there any other ways to avoid LazyInitializationExceptions in a Hibernate web application besides

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.