I'm new to JAVA and even newer to servlets...here's my problem.
I am passing an author and a quote from one servlet to another using the following code...
out.println( "<input type=hidden name=sAuthor value=" + sAuthor + ">" );
out.println( "<input type=hidden name=sQuote value=" + sQuote + ">" );
I am receiving the author & quote in the second servlet using the following code...
String sAuthor = request.getParameter( "sAuthor" );
String sQuote = request.getParameter( "sQuote" );
The problem is that for some reason I am only getting the first word of the author, and the first word of the quote and everything else is getting truncated.
Any ideas on what I am doing wrong?
Thanks in advance,
Climax11
I am passing an author and a quote from one servlet to another using the following code...
out.println( "<input type=hidden name=sAuthor value=" + sAuthor + ">" );
out.println( "<input type=hidden name=sQuote value=" + sQuote + ">" );
I am receiving the author & quote in the second servlet using the following code...
String sAuthor = request.getParameter( "sAuthor" );
String sQuote = request.getParameter( "sQuote" );
The problem is that for some reason I am only getting the first word of the author, and the first word of the quote and everything else is getting truncated.
Any ideas on what I am doing wrong?
Thanks in advance,
Climax11