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???
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=theStringYouGotFromTheUserReversed
If 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=.
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