Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
corrected spelling
Source Link
Stephen C
  • 25.4k
  • 6
  • 67
  • 90

I have a scenario where I can take a student Id as input via a part variable and return some data back as JSON objects where JavaScript handles the response as a part of AJAX call.

Suppose the method is called like:

 /student/{studentId}

where studentId is a path variable in Spring MVC web service declaration. Now for requests to /student, the front end gets a 404 not found the"404 Not Found" error.

Where should this be handled on the front end or I should create a new method and map it to the /student call and then throw a custom exception?

I have a scenario where I can take a student Id as input via a part variable and return some data back as JSON objects where JavaScript handles the response as a part of AJAX call.

Suppose the method is called like:

 /student/{studentId}

where studentId is a path variable in Spring MVC web service declaration. Now for requests to /student, the front end gets a 404 not found the error.

Where should this be handled on the front end or I should create a new method and map it to the /student call and then throw a custom exception?

I have a scenario where I can take a student Id as input via a part variable and return some data back as JSON objects where JavaScript handles the response as a part of AJAX call.

Suppose the method is called like:

 /student/{studentId}

where studentId is a path variable in Spring MVC web service declaration. Now for requests to /student, the front end gets a "404 Not Found" error.

Where should this be handled on the front end or I should create a new method and map it to the /student call and then throw a custom exception?

I have a scenario where I can take a student Id as input via a part variable and return some data back as a JSON objectzobjects where JavaScript handles the response as a part of AJAX call.

Suppose the method is called like:

 /student/{studentId}

where studentId is a path variable in Spring MVC web service declaration. Now for requests to /student, the front end gets a 404 not found the error.

Where should this be handled on the front end or I should create a new method and map it to the /student call and then throw a custom exception?

I have a scenario where I can take a student Id as input via a part variable and return some data back as a JSON objectz where JavaScript handles the response as a part of AJAX call.

Suppose the method is called like:

 /student/{studentId}

where studentId is a path variable in Spring MVC web service declaration. Now for requests to /student the front end gets a 404 not found error.

Where should this be handled on the front end or I should create a new method and map it to the /student call and then throw a custom exception?

I have a scenario where I can take a student Id as input via a part variable and return some data back as JSON objects where JavaScript handles the response as a part of AJAX call.

Suppose the method is called like:

 /student/{studentId}

where studentId is a path variable in Spring MVC web service declaration. Now for requests to /student, the front end gets a 404 not found the error.

Where should this be handled on the front end or I should create a new method and map it to the /student call and then throw a custom exception?

Source Link
user1369975
  • 1.3k
  • 4
  • 16
  • 24
Loading