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

  • SEARCH
  • Home
  • 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 8949283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:11:17+00:00 2026-06-15T13:11:17+00:00

Either I am searching wrong, or I simply can’t find the answer. I want

  • 0

Either I am searching wrong, or I simply can’t find the answer.

I want to make a simple Chat application using JSP. I want to take text from one field (input) and append it into the big text area (output) and then clear the text field (input) and refresh the page. Each entry should be on it’s own line.

Coming from Java this seems very confusing, and I’ve been at it for quite some time now to try and figure it out. Could you help me please?

<html>
    <head>
        <script>
            function send() {

            }
        </script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Simple Chat</title>
    </head>
    <body>
        <h1>Simple Chat</h1>
        <textarea rows="30" cols="100" name="output">Welcome to the Chat!</textarea>
        <form name="input">
            <input type="text" name="input">
            <input type="button" name="sendBtn" value="Send" onClick="send()">
            <input type="button" name="refreshBtn" value="Refresh" onClick="location.href='chat.jsp'">
        </form>
    </body>
</html>
  • 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-06-15T13:11:18+00:00Added an answer on June 15, 2026 at 1:11 pm
    <!DOCTYPE html>
    <html>
        <head>
            <script src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
            <script>
                function send() 
                {
                    $("#txtArea").append("\n" + $("#txt").val());
                    $("#txt").val("");
                }
            </script>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Simple Chat</title>
        </head>
        <body>
            <h1>Simple Chat</h1>
            <textarea id="txtArea" rows="30" cols="100" name="output">Welcome to the Chat!</textarea>
            <div name="input">
                <input id="txt" type="text" name="input">
                <input type="button" name="sendBtn" value="Send" onClick="send()">
                <input type="button" name="refreshBtn" value="Refresh" onClick="location.href='chat.jsp'">
            </div>
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Searching a log file Where I can either enter a binary file
I've been searching around for days trying to find the answer to this, and
I've been searching around trying to find an answer both here and google, although
I've been searching for a library that can render organisation charts in either flash
I am searching for a free charting library, either in Java, JS, or Flash,
either I'm missing something or the ( patterns & practices Composite Application Guidance for
I don't know if I'm searching for the wrong queries in google but I
I am currently working on securing a web application using spring-security 3.0. I have
This is a very trivial problem but I can't seem to find a way
I have a text field that I'm searching against using an array of keywords

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.