aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Getting java.lang.StackOverflowError - HFSJ pg 379 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Getting java.lang.StackOverflowError - HFSJ pg 379" Watch "Getting java.lang.StackOverflowError - HFSJ pg 379" New topic
Author

Getting java.lang.StackOverflowError - HFSJ pg 379

K Bala
Greenhorn

Joined: Jul 14, 2005
Posts: 28
I am trying to do the exercise given in pg 379 - compose the EL for this output.

When I try to run the code, I am getting java.lang.StackOverflowError. I commented the EL code in my JSP and just put a template text and still got the same error.

What am I doing wrong? Pls. help.

I have the following code.

ELform.html



ELresult.jsp - You can see that I have commented the EL code and just put a template text for testing.



PersonServlet.java



web.xml



Quitters never win; Winners NEVER QUIT!!!
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

You are looping to ELresult.jsp, which will cause the StackOverflow.

ELform.html -submit-> PersonServlet -forward-> PersonServlet -forward-> PersonServlet -forward-> ......

Forwarding to the jsp file will cause the servlet to be called again and again. You should change your HTML action.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Getting java.lang.StackOverflowError - HFSJ pg 379
 
Similar Threads
problem in jsp:useBean
El property not found problem
Jsps and Servlets
showing one jsp instead of other
HTTP status 405 Error