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 6867935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:22:16+00:00 2026-05-27T03:22:16+00:00

I am making an web application for an iOS app I made. I want

  • 0

I am making an web application for an iOS app I made. I want to administrate the questions in the application that I have made, but now I also want users to have the oppertunity to submit questions to the web application. However, the questions from the users can’t just be added to the list becaus I want to approve that it is a valid question first.

I thought of making the following:

  • A page where the users can register and submit a question.
  • This is handled by a seperate backing bean (not the same as I use in the admin panel)
  • The question is so passed to the EJB which again persist the question.
  • Then I have a list of user submitted questions and I have the option to “Approve”, meaning that I will have the oppertunity to persist the question in the approved question table.

With this approach I must make a duplicate of the question table (as well as the answer and category table) and have a prefix or something (user_submitted_questions for example)

Is this a “good” way of doing it? Or can I do it better/more effcient?

  • 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-27T03:22:16+00:00Added an answer on May 27, 2026 at 3:22 am

    I wouldn’t duplicate the entire question. Instead, try adding a status field to the Question object. When questions come into the web application, they can be persisted with a SUBMITTED status. Once you review them, they can be updated to be either APPROVED or REJECTED. You can code your front-end to only show questions with status == APPROVED on the public view.

    This avoids the overhead of maintaining 2 question tables/objects (as you evolve the system, now you’ll only need to maintain 1 table/object as you add/remove fields). The performance of approving a question should improve as well since it is just updating a single field rather than inserting a whole new row. If your table grows too quickly, you can always build an archive (or truncate) job that purges or moves rejected questions.

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

Sidebar

Related Questions

I am making an web application that have to be integrated with other system
I'm making a web application for a customer that has clients who want to
I'm making a small web application in Seaside. I have a login component, and
I'm making a php web application which stores user specific information that is not
I have been making a little toy web application in C# along the lines
I am thinking of making an (initially) small Web Application, which would eventually have
I have a conceptual question... I am making an Intranet application (Web platform) for
I'm working on making a website/web application that displays images every 5 or so
Has anyone had success making an msbuild file that will publish a Web Application,
I have a web application made for several groups of people not connected with

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.