Skip to main content

All Questions

Tagged with
-1 votes
1 answer
60 views

I want to send data using ajax when the value comes out in jsp

The value comes out from jsp. However, I don't know how to send the value as ajax data. I tried to print the jsp value and change it, but it failed. What should I do? What should I put in the data in ...
seullbee Lee's user avatar
0 votes
1 answer
85 views

How to get all elements in arrays type Map and send to JSP file by JSTL in Spring

I have a JSON attribute's value in Java, I can get the value properly but I couldn't send to JSP file.. My JSON: periods = {"number":1,"name":"Tonight","...
Khanh Luong Van's user avatar
0 votes
1 answer
44 views

I cant get array value from my server responce [closed]

I have my server respond me with an dictionary. The console.log(responce) returns this: {"filters":{ "Facture": [ "Магма (Тычок)", "Тонкий кирпич", ...
Warsom's user avatar
  • 19
0 votes
1 answer
18 views

hello i want transform one object in another with specified information for the first

i need an specified object to do a reactive dropdown with jsp, where department active municipality, the way that i do is on javascript with an object json preformatted but i need that come from ...
Humberto Enrique's user avatar
0 votes
1 answer
67 views

How to use two ContentTypes in one JSP(web app on Spring MVC): text/html && application/json

I'm developing a simple crud app without frontend, but I want to have a very simple visual for myself and the viewers. Now I have created a simple jsp-file with a set of tags 'a'. It was not difficult ...
Volodymyr Lipovskyi's user avatar
0 votes
1 answer
63 views

How can I create and initialize a dictionary/JSON equivalent data structure in JSP?

I have the following sample data: { "2022-37" : "2022-09-17 00:00:00.0", "2022-38" : "2022-09-24 00:00:00.0", "2022-39" : "2022-10-01 ...
Eshaan Gupta's user avatar
1 vote
2 answers
350 views

JSON Response from Struts 2 not working with AJAX

I'm Using Ajax to get success response from Struts 2 but it ended up giving the response to error function and parse error for parsing JSON in Ajax. Below is my code. Action class - PropertyTesting....
s.surya Prakash's user avatar
1 vote
0 answers
47 views

I'm using ajax to get Map<String,String> State data as stateCode and stateName from controller to show in JSP page

I'm using ajax to get Map<String,String> State data as stateCode and stateName from controller and want to show in JSP page as multiple selectbox. Like in jsp we can use ${states} to get all ...
My India Info's user avatar
0 votes
1 answer
170 views

How to GSON pretty print in JSP

The below code to show JSON string in TreeView by Gson's prettyprinting() is added in JSP , but the treeview is only displayed in Tomcat console by the SOPs . BUT , in JSP the jsons are displayed as ...
saswata's user avatar
  • 25
1 vote
2 answers
88 views

How to generate json from jsp? Not HTML

I am trying to use jsp to generate json. The problem is, there is generated a HTML which contains my json. The point not to generate html. Java7, JBoss4 and jsf probably 2.5. Thanks
armagedescu's user avatar
  • 2,071
0 votes
1 answer
60 views

How to read JSON and create table in JSP

I am sending the below GSON JsonObject from servlet to JSP :- { "TradesJSONArray": [{ "SOURCE": "Trayport", "TRAN_NUM": 11884531, &...
saswata's user avatar
  • 25
0 votes
1 answer
303 views

Out of memory when I create a json object list.toJSONString()

hello java web gurus please i need your to help me resolve this out of memory exception when i create list.toJSONString in the code below. String query1 = "select * from booking where id='"+...
maxwell Owusu's user avatar
2 votes
0 answers
710 views

validation login with data stored on localStorage

the code i made only reads the last index from localStorage for login validation, can someone help to login using all existing data? $('#btnlogin').click(function(){ var usernamelogin = $('#...
Bagas Rizkiyanto's user avatar
0 votes
1 answer
808 views

How to Config Log4J2 in a Java Web Application - TomCat

Actually i'm Working in a Java Web Application Created in 2006 (Really old) but it was actualized. I'm trying to update the Log4J - 1.2.15 to Log4J2 - 2.17.2 This project implements log4j in a basic ...
Brayan Estiven Cañon Moreno's user avatar
0 votes
2 answers
531 views

is JSON schema validator working for PropretyNames?

i'm using Everit package for JSON schema validation. my use case here is i should allow only property key name as upper case, value can be anything. here is the code i used. schema.json { "$...
Yuvaraj Sakthivel's user avatar

15 30 50 per page
1
2 3 4 5
56