Skip to Content
author's profile photo Former Member
Former Member

AJAX in EP

Hi,

Recently I have developed an AJAX implementation project in EP,where I am creating a .txt file in the server thru java code, which stores the name as entered by the user(in registration.jsp).Now the registration.jsp has a "check" button which checks if the new entry made by the user is there in the file or not. Here comes the role of AJAX, which asynchronously calls a Servlet along with the input param.If it already exists then it shows the message that user is not available to regiser again as it is currently stored in the file.

Now, this backend file is everytime overwritten; ie; its current content is erased, and the entry made by the user is saved using java code.

The problem I face here is:

Suppose I am running this application in continuity for say, 10 times. Then if I provide a new value which has not been used before, it runs fine, but the moment I provide a name which has been used before in testing (now erased, and no longer exists in the file), then it pops up a value which was stored(in the java file) at that time when this value was compared.

It seems as if there is a value pool, which is referenced every time when the form entry is checked against the file entry.

If first verifies:"Has it been compared before?" If yes, then what was the file content read? And returns the value .

Otherwise a new input, the file is read again, and the comparison is done afresh.

Is my understanding correct?That is what my question is?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2009 at 08:01 AM

    Closed.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.