Tagged Questions
-1
votes
1answer
17 views
Best way to dynamically add and delete textboxes,selection box on click of button in jsp
On every click of add button, two text boxes and combo box should be displayed similarly on click of delete button two text boxes and combo box should be deleted. What is best way to implement.
0
votes
0answers
14 views
Autocomplete textbox in dynamically add row is not working
I have search form where i have 3 text fields and Add Row button, when user click on Add row, it dynamically create another row containing 3 text fields. Also i apply autocomplete on all 3 text fields ...
-3
votes
0answers
29 views
how to change values of dropdown based on user changed value in another drodown? [on hold]
i have jsp page with two dropdowns to select values from. one dropdown has names of the people where you can choose from available option where another dropdown has skills associated with person you ...
-1
votes
0answers
13 views
conflict with multiple ID when using JSTL <form:form> tag mutiple times in DOM
I have an AJAX based web application with SPRING MVC and I am using SPRING tags. In the app I am handling several forms with the same bean (the 'commandName' attributes pointing to the same bean) - ...
1
vote
1answer
22 views
Jquery Function is not Calling onchange event in Spring MVC
I am working on spring mvc and with that i am using ajax Jquery and but i am able to add element in it. but i am not able to call jquery when i am making change event into the Dropdownbox. can i have ...
0
votes
2answers
16 views
How can I show data in display:table from .json function?
I have a .json function whose retrieve some data and I want to show it with a <display:table>, how can I do it
Alerta.js
function loadAlertaCitas(){
$.ajax({
type: "GET",
...
0
votes
0answers
29 views
Complex json object in spring mvc controller
I have to send by post the next object:
{
"params": {
"codItem": "a1",
"nameItem": "foo",
"tipeItem": [
"1000600",
"1000492"
],
"provinceItem": "262",
...
1
vote
1answer
16 views
Ajax request doesn't work with Spring controller
Can't understand why this code always prints in console "Error!".
Here is my Spring controller
@RequestMapping("/spinner")
public class SpinnerController {
@RequestMapping(method = ...
0
votes
0answers
15 views
JSON backing in jsp while consuming client side RestfulSpringWebservice
I am having signUp function in signUp.js file and I am getting a jsonResponse profileId and ProfileName.After getting the Response I am redirecting it to loginSucess.jsp page by invoking ...
0
votes
2answers
23 views
AJAX General Error Handling
I am currently working on an existing system wherein I have to create a generic error handling for the entire system. The system is using Spring MVC and also AJAX.
Now I have done the error handling ...
2
votes
1answer
56 views
Handling JsonResponse in clientSide view technology of SpringMVC
I am trying to implement the below scenario in Spring MVC.But I am facing issues and not able to decide about the right Approach.
I am Using jsonRequest/jsonResone(Restful Webservices)
1.I have a ...
0
votes
0answers
37 views
Spring MVC download file after successful form validation
The idea is that after a successful form validation the user should be able to download a file. The best way I have found to download a file using Spring MVC controllers is to write it to response's ...
0
votes
0answers
35 views
Accessing class object in JSP
I am trying to access an object in JSP.
The object is :-
public class Organization implements IOrganization {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id")
...
1
vote
1answer
49 views
Unable to load js into html
I have written spring mvc project
I have written following in my context.xml to locate resources
<mvc:resources mapping="/resources/**" location="/resources/" />
<mvc:resources ...
0
votes
1answer
31 views
jquery Autocomplete textbox onchange is not working
.html
<form:input type="text" id="currentInst" name="instance">
<form:input type="text" id="currentProject" name="project">
AutoComplete.js
function autoFillInstances() {
...
3
votes
2answers
30 views
KnockoutJS - Print iteration index as input name
I am trying to create my first KnockoutJS form view in combination with Spring MVC's @ModelAttribute binding.
Data is loaded over Ajax and populated with KnockoutJS
Data is added over KnockoutJS
...
0
votes
0answers
27 views
Unable to stay on same jsp page on cancelling refresh event
I have created a sample application using Spring MVC. The first jsp page(index.jsp) is simply a form which is to be submitted and we land on second jsp page(hello1.jsp). Now, on pressing refresh ...
1
vote
2answers
36 views
Manipulating and storing Java hashmap(map of map) in java script at JSP to use later in combo menu
I have a hashmap as variable in baking bean like.
private Map<String, Map<String, String>> states;
At JSP page, I have two combo menu 1st is for country and second is for states.
I ...
0
votes
1answer
54 views
angular-js cors request not getting to the server
I have a spring MVC API backend with CORS configured correctly
when i try to make the ajax call i get the following error in chrome
XMLHttpRequest cannot load 172.20.16.45:8082/cuponza. The ...
0
votes
0answers
16 views
Including D3-Based library into Spring MVC
Im trying to use the library C3 (http://c3js.org/) for charts etc on my index page. I have a Spring project which has JSP-pages(html) for view which uses my javascript functions also (This works ...
0
votes
1answer
26 views
jquery - multiple submit button in jsp and unable to retrieve the button value in validator class
I have a spring-mvc application with jsp and jquery in the front end. I have multiple buttons on this jsp page and have to do different validations based on what gets clicked. I am stuck here almost ...
0
votes
0answers
29 views
adding json object to modelMap attribute
I am having a set of questions which are read from the db based on some onclick event.. i have put these questions in a json array like below
JSONArray jsonArray = new JSONArray();
JSONObject ...
1
vote
1answer
35 views
EXT JS 5 : How to represent a java form to an ext js model?
I'm begginner in Ext JS and i want to send my Java Form to an ext js store who has a defined model :
This is my Java Form :
public class Form {
private member1;
private member2;
private ...
0
votes
2answers
30 views
dynamically displaying the column names
I have a requirement where I have to display questions dynamically based on the buttons clicked. I have coded a table where in one column I display the question and another column I want the user to ...
0
votes
0answers
14 views
velocity springmvc Datepicker returning null when Datepicker disabled
My velocity file uses the spring macro with a DatePicker class:
#springFormInput("myCommand.myPojo.myDate" "class='disabledDatePicker'")
The DatePicker is configured as:
...
0
votes
0answers
8 views
How to genrate CroneExpression based on user's values
How to genrate Cron Expression in using java method or is there any javaScript which can create CronExpression based on user selection
1
vote
1answer
29 views
Using AngularJS with SpringMVC - Why and How?
I am new to web development and recently came up reading about AngularJS and SpringMVC and a few other frameworks. As far as I could understand, AngularJS implements the MVC on client side and Spring ...
0
votes
0answers
28 views
How to redirect the user to another page with request headers?
I am writing a portal page that will display shortcuts to other services. The user can log in to the other services with OAuth so he will be logged in once he visits the other pages.
Probleme here ...
0
votes
1answer
51 views
Get an set array values through jQuery
This is maybe a complicated idea.
I'm working with Java and Spring, and I'm trying to fill an pre-defined array in the DOM through jQuery.
I have the following:
var clients = [];
<c:forEach ...
0
votes
0answers
18 views
unable to load js in Spring MVC STS
This is my directory structure
I am using annotation based and this is my code
import org.springframework.context.annotation.ComponentScan;
import ...
1
vote
1answer
55 views
How to pass a name to form action in thymeleaf?
My controller is following
@RequestMapping(value = "/editpermission/{roleName}/{roleId}", method = RequestMethod.GET)
public String AddRolePermissionPage(@PathVariable Integer ...
0
votes
1answer
34 views
Spring MVC return hibernate object with lazy loaded field to AjaxResponseBuilder
Lets say I have an Person object:
String name = "bob";
Int number = 3;
String lastName = ?
and the lastName field is lazy loaded with Hibernate. When I want to
AjaxResponseBuilder builder = ...
1
vote
2answers
23 views
AngularJS - userService, registerControll: broken code in registerController, not registering user and returning wrong alert
Here is my registerController:
collectionsApp.controller('registerController', function($scope, userService) {
$scope.register = function() {
userService.register($scope.user);
};
...
1
vote
1answer
87 views
AngularJS, UI Bootsrap, MVC Frontend - data-ng-click is not working
I am trying to register user (take some information from form input at frontend and send it to backend via AngularJS) but I am experiencing some problems.
Here is my index.html file:
<!DOCTYPE ...
0
votes
1answer
62 views
Getting large form to Spring controller
I have a form whose purpose is to allow a user to create a new entry in a database table. The form is very large, ~50 fields in total. I'm needing a way get all of these values to my controller, ...
0
votes
0answers
31 views
Javascript internationalization with i18next + spring web project
i have this web project with spring web mvc. I use i18n with spring:message which works great.
Then i googled about how could i internationalize validation messages in client-side. I found this great ...
0
votes
0answers
42 views
getting member of json object array [duplicate]
In my spring mvc application,below is a js object posting on mvc controller using jquey-ajax.
i want to access each js object as string in my controller for iteration.The jquery ajax do post on ...
0
votes
1answer
48 views
Post JS Object Array to Spring MVC controller
I am trying to pass long array from jquery load to spring controller. How can i sent js object array t spring mvc controller.
Every time action occured the no data alert on script will called.
Script ...
0
votes
0answers
16 views
Load a video to HTML 5 video player using jquery?
var pathStr = "home/amila/video/a.mp4";
var path = 'Resource?FilePath='+pathStr ;
Here Resource will be RequestMapping action in spring MVC.So when ever Resource is hit , it takes the pathStr ...
1
vote
1answer
32 views
js to determine if iframe contains images
I am working on an application that allows users to enroll in my program. My problem is that at the end of enrollment I generate a PDF for them to look over and accept the terms and e-sign. Sometimes ...
0
votes
1answer
38 views
How to implement windows authentication in spring based Java-application?
How to implement windows authentication in spring based Java-application?
I have created authentication using spring security,But i want to use windows credential while user login to my application.
0
votes
1answer
26 views
Correct way of linking resources in spring mvc application
I am using Jquery UI in spring MVC application. I gave in my spring mvc-dispatcher-servlet.xml I gave something like
<mvc:resources mapping="/resources/**" location="/resources/jqueryUI/" />
...
0
votes
1answer
70 views
Pass javascript value to controller in spring mvc
I am new with Spring mvc. I need to pass an javascript variable to controller. How to achieve this??
Form tag solution is not appropriate in case of my application.
I need to pass this start ...
0
votes
2answers
65 views
poupup window in javascript and displaying content
I need a popup window with login name, password and submit button. I have created a popup window as shown below with javascript. I am able to print alert, but textfiled and submit button doesn't ...
0
votes
0answers
29 views
Can I add a function in engine.js?
Our web application is using reverse ajax. It checks user's session every 30sec and produces console logs(see logs below). Is it possible to add a function after/before the log is printed? and how?
...
0
votes
1answer
66 views
Spring form changed value in not getting reflected in ModelAttribute
I have the following form
<form:form id="form" name="form" target="dummyHiddenForm" method="post" commandName="myForm" >
<span class="container">
...
0
votes
2answers
65 views
How can I avoid our users not having multi tab?
I have a web application and one of our problem is multi-tab of users causes a lot of issues. Can we handle it in server side or by javascript?
Thanks,
-1
votes
2answers
67 views
javascript validation does not work as intended
i'm doing some validation and I don't understand why it is not working.
what i'm trying to do is a search with two radio buttons with text field. if one selected and the text field is empty i try to ...
0
votes
2answers
143 views
Place values inside bootstrap modal popup field value in spring MVC using ajax to get the data from database
I need to get the values from database inside the modal popup field in spring MVC using ajax. I think, we need to place the values inside modal popup field using javascript.
Help highly ...
0
votes
0answers
39 views
How to resolve null spring mvc variable from javascript as null instead of spring mvc variable name
How can a null Spring mvc model attribute be seen in javascript as null instead of resolving to its own variable name?
//note that myNamesJsonArray is null coming from the spring controller
var ...