[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Error code from Servlet

Posted on 2006-05-10
Medium Priority
Last Modified: 2013-11-24
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


Question by:Java_Problem
LVL 86

Expert Comment

ID: 16651823
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

Author Comment

ID: 16652000
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.
LVL 86

Expert Comment

ID: 16652047
What i was getting at is POSTing programmatically to the servlet and reading the response before progressing further
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Author Comment

ID: 16652169
I found the answer of this question. Please delete this question
LVL 30

Expert Comment

by:Mayank S
ID: 16659824
What is the answer? Was there something wrong in the servlet URL or was there an internal compilation error or something?

Author Comment

ID: 16659867
     if(response.SC_INTERNAL_SERVER_ERROR == 500){
      RequestDispatcher rd = request.getRequestDispatcher("target.jsp");
      rd.forward(request, response);




Accepted Solution

GranMod earned 0 total points
ID: 16918142
PAQed with points refunded (50)

Community Support Moderator

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month19 days, 11 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question