JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Yes. That is correct.Originally posted by Carol Murphy:
Okay let me explain my frustration before I trash my computer!
The only way I know of (or can find by looking at examples) to set the text inside of a text field within a form is by using value=.
I have no string literal to put after value= since I don't know what the user will type into the blank text field in the form.
Can you create a new html form containing a text field and a submit button from the servlet?How do I get the String that I have retrieved from the first form and reversed back into the text field???
True.I can send the reversed string to out.println, but it won't appear inside the text field.
Set the text to the String literal you got from the user (reversed). The servlet should create another html document with the value=theStringYouGotFromTheUserReversedIf I create another html document with another text filed inside a form, I can't set the text without having a literal to put after value=.
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
what?
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
what?
Originally posted by jason adam:
... like out.print( "<HTML>..." ); or have a String that holds all that already and just print that variable, like String stuff = "< HTML>....";
out.print( stuff );
Ignore the extra single quotes, I can't remember how to put in html code in these posts
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt