programming err

programming err

<%@page import="java.lang.*" %>
<%! int i; %>
<form>
<input type=text name="t" >

<%
{
String s=request.getParameter(t);
String[] sa=s.split(" ");
for (i=0;i<sa.length;i++)
{out.println(sa[i]+"<br>");
out.println();}}
%>
</form>

how to take string from textarea and display output in textbox
Please reply me sir .
Thank you...
View Answers

January 28, 2010 at 10:29 AM

Hi Friend,

We are providing you two different codes. For the first one, we have used onkeyup event and for another one, we have performed an action on button.

1)
<%@page language="java"%>
<html>
<head>
<script language="JavaScript">
function function1() {
document.getElementById("text2").value=document.getElementById("text1").value;
}
</script></head>
<textarea id="text1" cols="15" rows="2" onkeyup="function1()"></textarea><br>
<input type="text" id="text2" >
</body>
</html>

2)
<%@page language="java"%>
<html>
<form method="post" action="textarea.jsp">
<textarea name="text" cols="20", rows="10"></textarea>
<input type="submit" value="submit">
</form>
</html>
<%String data=request.getParameter("text");
%>
<input type="text" value="<%=data%>

Hope that it will be helpful for you.

Thanks









Related Tutorials/Questions & Answers:
programming err - JSP-Servlet
programming err   how to take string from textarea and display output in textbox Please reply me sir . Thank you...  Hi Friend, We are providing you two different codes. For the first one, we have
ModuleNotFoundError: No module named 'err'
ModuleNotFoundError: No module named 'err'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'err' How to remove the ModuleNotFoundError: No module named 'err' error
Advertisements
ModuleNotFoundError: No module named 'err-hunter'
ModuleNotFoundError: No module named 'err-hunter'  Hi, My Python... 'err-hunter' How to remove the ModuleNotFoundError: No module named 'err... have to install padas library. You can install err-hunter python
Programming
Programming  Given a number n, write a programming to determine its square root if it is possible, in the contraly case print an appropriate massege on the screen
programming
Java Constructor programming for single and double constructor  write a program which have no argument constructor ,single parameter constructor constructor,double parameter constor,and the now when we create a object
Err while reading CSV file using POI - Java Beginners
Err while reading CSV file using POI  Hi, When i am trying to read a CSV file using POI Dile system, the below error is coming up. java.io.IOException: Invalid header signature; read 2334956330951926093, expected
network programming
network programming   Tutorial for Network programming and administration
Programming with JSP
Programming with JSP  Who will post me the answer
Java Programming
Java Programming  Hi, What is Java Programming? How I can learn Java Programming in one month? Thanks
Java programming 1 - Java Beginners
Java programming 1  Thx sir for reply me ^^ err how bout if using scanner class or further method to solve that code? instead of using array?   Hi friend, For more information on Scanner class visit to : http
r programming
r programming  Hi, How r programming is playing a big role in the Big Data time? These days companies are employing programmers with R Programming... in the market. Whey r programming is so important? Thanks   R
Ajax programming
Ajax programming  Hi, How I can start ajax programming easily? I... concept. What should be my starting point for Ajax programming? Thanks   Hi, If you have prior programming experience in any web development
Programming with JSP
Programming with JSP  Write a program using jsp that accepts a course code as input and displays the course title the program to which it belongs
Programming (general)
Programming (general)  I haven't yet started college/university but I'm interested in studying programming. I wondering if programming is difficult or confusing with all the codes you have to learn? Also how many languages would
programming of foxpro
programming of foxpro  hello sir , sir i am use the foxpro . but i know about c . sir how can i learn fox pro . i know about something about foxpro
programming concept
programming concept  Write a program that allows the user to input a total dollar amount for an online shopping order and computes and outputs the shipping cost based on the following schedule
Socket Programming
Socket Programming  How to connect a computer through IP only and check whether it is up and running? I can't see any method in Socket programming where I can pass only IP address as argument. I need the pass port number also
C Programming
C Programming  hi,how can i write a program in C programming to place reservation in air plane from the menu let the user to inter his/her gender(W or M)and draw seats by using ascii codes and choose where he/she will sit
programming error
programming error  I got an error when i did the following program the prg. is to "select the name from database when the age is given for the respective name" error i got is:SQL exception please give me the solution by providing
programming c#
programming c#   create and make use of at least one class with appropriate instance methods to solve the programming problem. use console-based menus to navigate between the functionality offered by the application. at least one
Programming Assignment
Programming Assignment  Hey there, We were given an assignment to write a program to read 10 student marks from the keyboard without using an Array (only using switch statements, if statements or loops). As each mark is input
PROGRAMMING
Programming
programming
programming
programming
programming
programming
programming
programming
programming
programming
programming
programming
programming
programming
programming
programming
programming questions
programming questions  this is my assignment questions please help me... the programs in c# language Describe the following with respect to creating Web Forms in .Net environment: a. Web Form Life Cycle b. Creating a Web Form
ajax programming
Ajax Programming What is Ajax Programming? Asynchronous JavaScript and XML... is based on the HTML, Java Script, CSS, and XML. Why Ajax Programming? When you... Programming? Before starting, you must be familiar with the following
java programming
java programming   Companies and people often buy and sell stocks... programming method you want to accomplish this task. Both your stack and queue... in question Implement the program described above using the Java programming language
java programming
java programming   Companies and people often buy and sell stocks... programming method you want to accomplish this task. Both your stack and queue... in question Implement the program described above using the Java programming language
What is programming logic ?
What is programming logic ?  What is programming logic
programming - Java Beginners
programming for java beginners  How to start programming for java beginners
programming - Java Beginners
Start programming in Java  Programming in Java - Can any one please suggest how to start programming in Java
programming problem
programming problem   Kingdom of Maplewood is a beautiful country comprising of a lot of small islands of different areas. All the islands are in a straight row. King Rosewood is getting old and has decided to divide the islands
Java Programming
Java Programming  Write a Java program that prompt user to input a number of students in a class. Then, prompt user to input the studentÃ?¢ââ??‰â??¢s programming mark. Determine how many student get A+ and A for their grade
java programming
java programming  Write a Java program that prompt user to input a number of students in a class. Then, prompt user to input the studentâ??s programming mark. Determine how many student get A+ and A for their grade and how many
object oriented programming protocol
object oriented programming protocol  What is object oriented programming protocol? Is it different from objective c protocol programming?? Thanks
Programming - JSP-Servlet
Programming jsp servlet   Couple of examples that can help to start programming jsp servlet

Ads