Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: How to call Java file function from sapui5 application

$
0
0

Hi

 

 

I am using the following code to call the jsp page:

$.ajax({

     url :"test.jsp",

     data : "{'name':'abc','age':'20'}",

     contentType : "application/json",

              type :"POST",

     success :function(json) {

                              alert("Hi, there is no problem!");

                             },

     error :function(xhr, status) {

                              alert("Sorry, there was a problem!");

                            },

     complete :function(xhr,status) {

                               alert("The request is complete!");

                             }

 

      })

 

 

I am getting the following error :

 

500 (Unable to compile class for JSP  Generated servlet error: org.apache.jasper.runtime.HttpJspBase cannot be resolved to a type  Generated servlet error: org.apache.jasper.runtime.JspSourceDependent cannot be resolved to a type  Generated servlet error: The method getPageContext(Servlet, ServletRequest, ServletResponse, String, boolean, int, boolean) in the type JspFactory is not applicable for the arguments (test_jsp, HttpServletRequest, HttpServletResponse, null, boolean, int, boolean))

 

Please help. I am using NWDS (NetWeaverDevelopmentStudio) and running on localhost.

 

Thanks

Preety


Viewing all articles
Browse latest Browse all 8124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>