Hi,

also reconsider using recursion for this purpose. All
recursions can be implemented in loops and not incur
the stack problem.

ron

--- Eddie Sheffield <[EMAIL PROTECTED]> wrote:
> Well, it doesn't necessarily mean that you're in an
> infinite loop. As
> another poster pointed out though it does mean
> you're running out of stack
> space. Without going into the gory details every
> time you call a function a
> bit of information is put on the stack, and when the
> function returns the
> info is pulled back off. Recursion can be a bit
> touchy and it is very easy
> to get into an infinite loop (or more precisely
> infinite recursion). And
> since every iteration is a new function call, more
> info is pushed onto the
> stack every call. Eventually all the space is used
> up.
>
> But more to your problem, I would take a serious
> look at the design. Not so
> much of the code that generates the strings as how
> much is being generated.
> Do you really want to present a user with a combobox
> of 600 or more entries?
> That doesn't sound very user-friendly. I've come
> across some pretty long
> ones at times, and they are aggravating to navigate.
> Perhaps you should look
> into reorganizing your pages in some way so that you
> won't have to generate
> such a long list.
>
> HTH!
>
> Eddie
>
> ----- Original Message -----
> From: Liza J Alenchery <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 02, 2000 7:12 AM
> Subject: StackOverflowError
>
>
> > Hello people
> >
> > I am using recusrion to fill up a combobox with
> strings in my JSP
> > program. It works fine when the number of strings
> is less, but throws
> > a StackOverflowError when the number of strings is
> 600 or more. I
> > found in the documentation that StackOverflowError
> means that "an
> > application recurses too deeply."  Does that mean
> I am going into a
> > infinite loop? If not, what can be done in the
> situation? Is a
> > re-design the only way out?
> >
> > Thanks in advance
> > liza
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Photos -- now, 100 FREE prints!
> > http://photos.yahoo.com
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found
> at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to