Thanks, yet again :-)
The getString(); method was used in the given working code and it did not give any error when the MessageForm class was extending the TextBox class in the original given code as shown above. Only, when I made the class extend Form, it starting showing the error message of not being able to find the function.
What was happening in the original code was that it was collecting the input from the user as the "Message" string and submitted at the server.
ie.
Message(A Text Box for entering our details)
--so any input by the user in the text box, would be stored as "Message" string which was assigned to the message string in the Client MIDlet class (through the lines--
) ,
and different students used to enter their message through the above and that "Message" string was stored at the server.
Now, they want us to change the TextBox that used to appear for inputting any user input, into a form with different fields, so that the data recd. at the server end is in the format:
"
Name: Radha
Class: 11
Roll Number:12
"
instead of what come in the existing version
ie. "Message:my name is radha; ive been told to enter details in any format in the MessageTextBox that was shoen to me. Im in 11 std. and my roll is 12"
Hope the above conveys the requirements of the assignment. Please let me know if I need to give any other information.
As far as the codes are concerned, the MessageForm class is only being called by the ClientMidlet. It is not linked to any other class. After it takes in the user message, it gives this string to the client which further submits it at the server.
Both codes of the Client.java ie. the midlet and of MessageForm.java have been given in the previous
thread.
Thanks again for all your time and help.