VladJS

6

votes
1

answer
967

views

How to exclude separate files with nonFilteredFileExtension

I have this bundle. admin.common.upper_case=Uma ou mais letras maiúsculas During building project this bundle becomes corrupted. admin.common.upper_case=Uma ou mais letras mai�sculas In order to fix issue we use this configuration for maven-resources-plugin Namely we added nonFilteredFileExte...
VladJS
4

votes
1

answer
854

views

Check POST request payload data with Protractor

Let's say i have angular page with a couple of input elements and save button. After Save button is clicked POST request will be sent. I'm writing Protractor e2e test for this page. The question: How can i check with protractor POST request payload data after app is sent it or before sending? I wan...
VladJS
4

votes
1

answer
665

views

How to mock jquery ajax call while testing angular page

I'm writing e2e test for my angular page with protractor. I use $httpBackend for mocking requests which are sent by $http But in one old page i found jquery ajaxFrom plugin which sends call by jquery ajax. I noticed that it couldn't be mocked by $httpBackend What is the best solution for mocking thi...
VladJS
2

votes
0

answer
246

views

Page leaving prevent confirm dialog AngularJS + SpringMVC

We have web application which was written with springmvc. Here we have jsp for rendering HTML and we use jQuery. Based on jquery we implemented pageleaving plugin which handles IE7 too. We catch all click events like $('body').on ('click', 'a, button' function (e) {...}) where we intercepting clicks...
VladJS
3

votes
1

answer
90

views

AngularJS: separete create/edit page from manage page

I have single page application and three pages: ManageList, CreateList, EditList I use one controller for it and two views (manageView and CreateEditView) when('/manageList', { templateUrl: settings.baseurl + '/app/modules/sample/list-partial.html', controller: 'listController', resolve: { listName:...
VladJS
3

votes
0

answer
151

views

Incorrect data is saved in UTF-8 DB after user changes encoding in browser

We have form for creation and edition users. We have some field in DB for saving user name. This field has UTF-8 encoding. We have springmvc at the backend side and jsp at the frontend side. JSP file is in UTF-8 format. Each page has this code at the top HEAD tag has inside. Attribute accept-char...
VladJS
5

votes
1

answer
328

views

Google Chrome doesn't return to UTF-8 after moving to another page

I noticed strange behaviour for google chrome. I have web application based on java spring-mvc framework. In head tag is set. For each page response headers return Content-Type:text/html;charset=UTF-8 In IE 8,9,10,11 and FF if user changes encoding in browser's settings to KOI8-R and then goes to...
VladJS
6

votes
5

answer
8.3k

views

Avoid XSS and allow some html tags with JavaScript

I've got a problem in my current project: Users can send an email using a textarea. We allow the user to put in whatever they want, and thus some HTML for formatting. For example, the user should be allowed to use the tag for bold text. After completing their email, the user should be able to view...
VladJS