English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am passing a large string from jsp to servlets. When it comes to my servlet, through this error-

String str = request.getParameter("myString"); // ERROR

2006-09-21 03:04:37 · 3 answers · asked by saurabh srivastava 1 in Computers & Internet Programming & Design

3 answers

You may have to increase the memory of the JVM (Java Virtual Machine). You can only do this if/when you start the JVM.

It is a non-standard option, and may change without notice. When you start the JVM, use the -Xmx like
java -Xmx 80M
to get a JVM with 80 Mega Bytes. It has been a while since I used this command, so it may be 80m

To see help type 'java -X', it is not much help.

2006-09-24 21:45:50 · answer #1 · answered by Mark aka jack573 7 · 0 0

Where are you getting the value for your parameter 'myString", if you are reading it off a file (if not, is then is it possible to read it off the file) pass it as a stream instead of bytes.

2006-09-21 12:43:42 · answer #2 · answered by SmartSpider 4 · 0 0

Try this web page

2006-09-21 11:21:52 · answer #3 · answered by AnalProgrammer 7 · 0 0

fedest.com, questions and answers