Jump to content
We've recently updated our Privacy Statement, available here ×

masteryoda
Go to solution Solved by masteryoda,

Recommended Posts

I have tried a lot of URL mentioned in the document --http://community.jaspersoft.com/sites/default/files/docs/jasperreports-server-web-services-guide_1.pdf#pdfjs.action=download. but none of them are working.  many are showing the error of page not found.eg.-- http://localhost:8080/jasperserver/rest/serverinfo/

When i tried to find the rest in the jasperserver folder it was not there.

can somebody tell me how can i integrate rest with jasper server . I am using version 5.1.0.

thanks in advance.....

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi Masteryoda,

 

Here is a javascript function (needs jquery)

 

function login() {

    $.get("http://localhost:8080/jasperserver-pro/rest/login?j_username=jasperadmin&j_password=jasperadmin", function() {

        alert("Logged in! Do stuff here!")

    }).fail(function() {

        alert("Cannot login!")

    });

}

 

Let me know if it works.

 

Kind regards,

Paulo

Link to comment
Share on other sites

  • Solution

edit: this has been mistakenly selected as the best answer...... this is the question i am asking.

I am using the following program in html

<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function () {
    $.get("http://localhost:8080/jasperserver-pro/rest/login?j_username=jasperadmin&j_password=jasperadmin", function() {
        alert("Logged in! Do stuff here!")
    }).fail(function() {
        alert("Cannot login!")
    });
}
});
</script>
</head>
<body>
 
</body>
</html>
 
but the page is not showing anything...
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...