1
vote
1answer
41 views

Why Byte [] gets converted to String in JSON view

I am generating a JSON view using spring MVC and one of the attribute in the java object is byte array public class Profile { private String profId; private byte[] image; .... } I am setting up ...
0
votes
2answers
46 views

Put in javascript Variable in SQL prepeared statement (java)

how can I put the selectItem variable: var e = document.getElementById("categoryName"); var selectItem = e.options[e.selectedIndex].text; In: var theData = [ // Start of ...
5
votes
1answer
42 views

Display list values got by Javascript on JSP page

I have this link on my test.jsp page <a onclick="treeViewAjax('${searchDummyUrl}/view/${search.DummyNumber}/1')">View</a> Now when I click on this then treeViewAjax ,A JavaScript method ...
0
votes
1answer
43 views

How can I put in my Database in a Google Line chart?

I have this database with this table that I want to put in on my .jsp page that I coded in basic HTML. The project is in Spring mvc. CREATE TABLE `status` ( `idStatus` int(11) NOT NULL ...
0
votes
1answer
42 views

Backbone marionette Listing the values from the server

I am new to Backbone.marionette.js and developing a sample application with spring MVC. i am able to make a call to server to add new data but i am not able to display the sample data available in ...
0
votes
1answer
53 views

Web service Spring ajax call

I'm trying to call a web service with ajax. The service is up, and it can shows the result on the RestClient on firefox, but, in mi application call, gives me Status error "Pending". This is my ...
0
votes
2answers
42 views

Javascript confirmation message in Spring-MVC application

I want that a confirmation message appears before deleting any element in the application so I do like this : <form:form name="formule" method="get" commandName="user" ...
0
votes
2answers
50 views

Backbone sync error even after response code 200

Hello Backbone ninjas, This is my first time using Backbone - so please excuse my "noob"ness. In my functionality (part of a larger app),I have a Backbone View vA, backed by a model mA (as it should ...
0
votes
0answers
25 views

Back, Refresh and Close capture on onBeforeUnload

In My Spring MVC web application i have the javascript code which send logout request to server whenever user REFRESH, BACK and CLOSE Window using window.onBeforeUnload event. The Code is working as ...
-4
votes
0answers
62 views

Unable to loop through JSON Object in JSP Page [closed]

This method is in my of Controller Class public String listArticles(HttpServletRequest request, Principal principal,ModelMap map, HttpServletResponse response) throws DatabaseException, JSONException ...
1
vote
1answer
30 views

Append a row wich contain spring tags by javascript

I want to add a row to my table and this is a part of my code: function AddOneRow(){ newCell = newRow.insertCell(2); newCell.innerHTML = '<form:input type="text" path="nom_etabl" ...
0
votes
0answers
44 views

Converting server side cookie to client side

Using Spring MVC, whenever I logged into my site, it creates a cookie JSESSIONID I can get its value from firebug's Resources > Cookies. But I am not able to get this cookie value from javascript. ...
0
votes
1answer
85 views

Spring MVC - Redirect to login page in all tabs

I have an ajax based site built in Spring MVC. On header it shows user that is logged in and a menu to browse to other pages. On click of menu page is changed via ajax call and menu/header remains the ...
-1
votes
0answers
49 views

Losing values while making an update - Spring MVC

I have a table and when i select a row, values of this row are printed in my empty form for make an update. in my form i have select fields and input fields. I fill them by javascript with this way : ...
0
votes
1answer
47 views

Restricting intger in a textfiled

I created sample spring mvc program to display student name,id and age.I want to restrict entering of number in the textfield and string in place for age.Also i want to make the id field mandatory.I ...
0
votes
0answers
24 views

From child form to Parent form data transfer using jquery and spring

I don't know how to implement following functionality in spring-mvc. There is button on click a model pop-up will open which is also a form. Which will have search functionality. on search data will ...
0
votes
2answers
220 views

jquery load array parameter to spring mvc controller

I am trying to pass long array from jquery load to spring controller. I have passed string variable succefully but not the array. javascript: function ModuleMemberCheckboxPassIds(){ var ...
0
votes
1answer
64 views

backbone.Marionette.js with spring or java complete tutorial [closed]

i am learning Bacbone.marionette.js now for single page application with spring. I am able to find many tutorials on backbone.marionette.js but not able to find one on integrating the same with spring ...
0
votes
3answers
54 views

How to work with long-lasting http requests

I have a long-lasting http request (a lot of computation in the back-end). Currently it's all synchronous, while the server computer, the browser doesn't see the output/result. After a while, the ...
1
vote
1answer
118 views

Sending Map<String,List<String>> as request parameter through ajax

i want to send a Map through ajax request but i am getting 400 bad request. My data is like. var idss1 = []; var idss2 = []; var idss3 = []; var idss4 = []; var idss5 = []; map[id_1] = idss1; ...
0
votes
0answers
46 views

Refreshing jsp page results in to previous page

I am using Spring MVC. My controller class extends AbstractWizardFormController. In my controller class I am overriding the formBackingObject , processFinish, processCancel and referencedata methods. ...
2
votes
1answer
163 views

Adding Backbone.js to existing Spring MVC app

I'm working on a decently large Spring MVC app that continues to grow. It's a traditional Spring MVC app with the views being JSP that renders the HTML which is returned to the browser. The app uses ...
2
votes
1answer
46 views

Loading contents from parent window to child window

I am working on spring web application, i have one of the jsp page which contains a table and below that table i have iframe. Now my problem is, i want to set tr content which is inside iframe from my ...
1
vote
1answer
140 views

unable to allow static resources in spring security 3

I am unable to allow static resources(like js,css,images) in spring security 3.Below is my config file. <beans xmlns="http://www.springframework.org/schema/beans" ...
0
votes
1answer
68 views

Connect JavaScript to Java

I have the javascript on web page and Java Therad running. All is in spring-MVC framwork. My idea is that I have in jsp site javascript code. The controller make game therad wich be in java. But I ...
0
votes
1answer
33 views

How can i populate some textfield on selection of an option from the form:select having items as object list?

I have a DTO with attributes id,name and text. I am generating a list of these DTO's and sending them into my JSP through model.addAttribute. In my jsp i am rendering a spring list like this. ...
0
votes
2answers
37 views

Displaying waiting page before processing the request in Spring

actually I am developing a application using Spring MVC, in one case I have to make the user to wait for the results by displaying a page..and once the back end processes the request..the results will ...
0
votes
1answer
54 views

service calls hang on the second page refresh

I've got a spring web application where I load the UI data using web services. The DB I use is H2 and I've posted a sample service where I use it fill a select element. Below is the spring service. ...
0
votes
1answer
79 views

Spring mvc sending put using ajax

I am trying to send put to controller using ajax. here is my code: $().ready(function(){ $('#submit').click(function(){ var toUrl = '/users/' + $('#id').val() + '/profile'; ...
0
votes
1answer
78 views

Directory-picker for form input using Java servlets or JavaScript

I'd like to create a directory-picker form input element, which would allow users to select a network directory to be selected and passed as the target for a server process. The idea is that users ...

1 2 3 4 5 10
15 30 50 per page