Rimgaudas Tumėnas
Rimgaudas Tumėnas

Reputation: 141

how can i get data from webservice in jsp

This is part of my view.jsp:

<form action="some_test_url" method="GET">
<input type="hidden" name="operation" value="sumoketos_sumos" />
<input type="text" name="kodas">
<input type="submit" value="Ieškoti" />
</form>


Im getting this result in the new page:
{"id":"102061","metai":"2015","suma":"-2627.3"}
How can i put this data to the table on the same view.jsp page?

Upvotes: 0

Views: 144

Answers (1)

Jorge
Jorge

Reputation: 141

You could use a resourceUrl and perform the action in an ajax. Then in the response, use javascript to place that information in your table.

Upvotes: 1

Related Questions