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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:37:36+00:00 2026-05-12T05:37:36+00:00

I make a web application to upload a tsv file JDK -> 1.4 Struts

  • 0

I make a web application to upload a tsv file

  1. JDK -> 1.4
  2. Struts -> 1
  3. Resin -> 3.0.9

TSV file parsed with “\t”,”\n”,”\r”

Validation is.

 1. Is the file name along a naming convention?

 2. Is it TSV file?

How should I do validation of a picture or Office document similar to TSV?

  • 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-12T05:37:36+00:00Added an answer on May 12, 2026 at 5:37 am

    that depends on your definition of a TSV file.

    Do they all have the same amount of columns ? or is it possible to omit the last empty columns ?

    If they all have the same amount of columns then you can do a first validation on that. If it fails then you know the file is not valid.

    Do they all have a header row ? if so you can use it to answer the above question and validate the file parsing.

    Is quoting allowed ? if so is it allowed to place carriage returns or tabs on the quotes ? (will not necessarily help in validation but you’ll have to think about it when parsing)

    Is your text strictly text ? you can test for non printable characters and reject it on that basis. Again be careful here on the character encoding used for the file (UTF vs ASCII etc).
    this can be placed in the code that does the first parsing from flat files into a data structure (list of map for example).

    Further drilling in the file itself, if it is fixed format or the type of some data is known you can make a secondary parser to validate this data (dates, timestamps or other fixed format strings).
    This second level can be done when you have discovered more about the content and are processing the data from the above structure.

    The above are all empirical analysis as such you must expect false positives to fall though, though a false negative should not happen if you pick rules for which your entry files MUST adhere. Therefore all along the processing stack expect to encounter invalid data and be prepared to invalidate the whole file input, in other words never assume that the tests done give complete assurance that the file is correct.

    I hope this helps.

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

Sidebar

Ask A Question

Stats

  • Questions 165k
  • Answers 165k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If I understand correctly what you are trying to do… May 12, 2026 at 12:31 pm
  • Editorial Team
    Editorial Team added an answer It is possible for VB6 to get quite confused when… May 12, 2026 at 12:31 pm
  • Editorial Team
    Editorial Team added an answer We can build this up out of any turing-complete language.… May 12, 2026 at 12:31 pm

Related Questions

i am currently working on a web application that needs to accept video uploaded
I am currently working on a web application that uses PHP and MySQL, but
I'm looking to implement a simple web-based application. The main reason I want to
We have created a web application, using ASP.NET, that allows users to upload documents
I need to provide a means for a user to upload photos to their

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.