aspose file tools*
The moose likes JSP and the fly likes textbox text should not empty Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "textbox text should not empty " Watch "textbox text should not empty " New topic
Author

textbox text should not empty

thippareddy mallikarjuna reddy
Greenhorn

Joined: Mar 08, 2006
Posts: 19
Hi pals

Please help me. i am using one text box and one enter button. i entered some text in the Textbox after i preshed enter button.The entered text in the textbox become empty. i have to see textbox text after i entered.

Thanks
Mallikarjuna
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61414
    
  67

Put the text back when you return to the page using the value attribute.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
srinivasa v reddy
Greenhorn

Joined: Mar 17, 2006
Posts: 7
Hi Reddy,
If you are using struts

use
<html:textarea property="question"rows="10" cols="43" ></html:textarea></p>

The text area values are persist when you click on button.
Try this,
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by srinivasa v reddy:
Hi Reddy,
If you are using struts

use
<html:textarea property="question"rows="10" cols="43" ></html:textarea></p>

The text area values are persist when you click on button.
Try this,


Since JavaRanch has both a JSP and a Struts forum, and since the original poster has posted this in the JSP forum, it should be assumed that he/she isn't using Struts.

thippareddy,
How best to go about re-populating your form fields depends on how you've structured your application. For one example of how to do this, download the SimpleMVC war file from my site http://simple.souther.us.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: textbox text should not empty