Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2006

Tip: Looking for answers? Try searching our database.

easy textbox question

Thread view: 
C_Kubie - 28 Apr 2006 04:41 GMT
This is a total newbie question...
<textarea rows="30" cols="50"  name="MyText" title="Title"></textarea>

How do I read the contents of the textbox?
Hal Rosser - 28 Apr 2006 04:57 GMT
> This is a total newbie question...
> <textarea rows="30" cols="50"  name="MyText" title="Title"></textarea>
>
> How do I read the contents of the textbox?

You may have java confused with javascript.
In javascript you could refer to the value property of the textarea.
You did not say what the name of the form is - where the textarea lives.
Assuming only one form:
alert (document.forms[0].elements['Title'].value);
=== (Or are you talking about server-side programs)===
if you're talking about java servlets look at doGet  of HttpServlet class
and   request.getParameter("Title")
Venkatesh - 28 Apr 2006 05:05 GMT
The tag u have put, I'm assuming is in some html page. Given that,
where do u want to read the contents of textarea ???? Do u want to read
inside a java program running on webserver? or just read within the
browser, when some event happens?

-Venkatesh


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.