String username = request.getParameter("username");
int strlength = username.length();
username.getChars(0,strlength,store);
and have this is my error:
C:\Program Files\Tomcat 5.5\webapps\ROOT\WEB-INF\classes
request2.java:25: cannot find symbol
symbol : method getChars(int,int,byte[])
location: class java.lang.String
username.getChars(0,strlength,store);
^
1 error
I know this function .getChars exsists as its documented, but it wont let me use it? My array hasn't been filled with anything yet either.
This program is part of a java servlet, I am trying to read in a string from an HTML form (which I have done )and send it using a UDP packet to the server. The string needs to be converted into a char array to do this hence the help needed.
Message was edited by:
Lisa_g