Forums Register Login

how to get an editable text field in a servlet( out.println) statement

+Pie Number of slices to send: Send
Hi ,

I have a situation where i need to show a prepopulated text field which should be editable in a servlet. This editable text area should then be saved in to an oracle table.
Can someone please help me as to how can I implement this.

Thanks

+Pie Number of slices to send: Send
Have you been though this? Its a good place to start.

If you have what part are you stuck on? What have you got so far?
+Pie Number of slices to send: Send
I have written this code but cannot get the value of the variable in the text field:



The value printed in the text field is <%=name%> but the value of the String owner variable should be printed

Please can some point out where I am making mistake?

Thanks
+Pie Number of slices to send: Send
"<%=name%>" is JSP notation, but you're not using JSP. Any anyway, the name of your variable is "owner", not "name". Try this:

out.println("<input type='text' name='owner' value='"+owner+"'>");
+Pie Number of slices to send: Send
Hi Ulf,

The issue got resolved with your statement!!!

Many Thanks

Moieen
You ought to ventilate your mind and let the cobwebs out of it. Use this cup to catch the tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1737 times.
Similar Threads
enabling and disabling text fields and buttons
disabling text field after clicking on the checkbox
text wrap in combo box.
B&S: Booking Contractor / Swing Qs
how to make Jtable Cells non Editable
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 22:04:10.