Error code from Servlet

Hello J2EE Gurus

I am posting to an external servlet. This servlet is outside my domain and all it does is transfer

my application to a jsp page in my domain after doing some work at his end.

99% is servlet throws a Error code of 500 and then I never get to my page.

How should I handle this situation using error codes ??. I don't have any access to this servlet. All

All I do is post to this servlet and it redirects to my JSP page

Thanks

Java_ProblemAsked:
Who is Participating?
 
GranModCommented:
PAQed with points refunded (50)

GranMod
Community Support Moderator
0
 
CEHJCommented:
Check that it's available before transferring control to it. Ulimately you'll have to get them to fix it if the problem's at their end
0
 
Java_ProblemAuthor Commented:
How can I check even before I send the parameters that this servlet expects from my page. ? I know that it does some back end calls after getting required parameters and then only forwards to my JSP page.

So I need to have the response that it throws 500 ERROR and handle that.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
CEHJCommented:
What i was getting at is POSTing programmatically to the servlet and reading the response before progressing further
0
 
Java_ProblemAuthor Commented:
I found the answer of this question. Please delete this question
0
 
Mayank SAssociate Director - Product EngineeringCommented:
What is the answer? Was there something wrong in the servlet URL or was there an internal compilation error or something?
0
 
Java_ProblemAuthor Commented:
     if(response.SC_INTERNAL_SERVER_ERROR == 500){
      RequestDispatcher rd = request.getRequestDispatcher("target.jsp");
      rd.forward(request, response);

**************

PLEASE DELETE THIS QUESTION

**************
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.