Questions tagged [web-applications]

Do NOT use alone. Do NOT use with web-frameworks or libraries like [reactjs], [django] or [flask]. Use for questions about web applications, where a more specific tag isn't applicable. Use with a appropriate language tag([java]) and the specific aspect of web-application, the question is about: http method([post],[get]), errors([http-status-code-404]), client-server communication ([client-server]) or server errors.

A web application is a client-server application that bases the communication on the HTTP () protocol. Often a third layer implements data persistence through a database.

The client side runs in a web browser that sends the http requests, receives the responses, renders the response's content (usually a html page, but also video streams, or applets). The heavy-lifting is done by scripts or compiled code on the server side. Some examples of web applications include Google Calendar (), Zimbra (), and Office Outlook Web Access.

22465 questions
64
votes
6 answers

Site cannot be installed: no matching service worker detected

Hey I am trying to program my first pwa and got the following problem: when I start my web app I get the following error: Site cannot be installed: no matching service worker detected. You may need to reload the page, or check that the service…
64
votes
7 answers

AngularJS: Creating Objects that map to REST Resources (ORM-Style)

I'm pretty new to AngularJS, but I'm pretty unclear on how to tie it up to my Server's REST Api backend. For example, say I have an "image" resource that I get by GET-ing: myApi/image/1/. This returns a json object with various fields. Let's say…
Edan Maor
  • 9,772
  • 17
  • 62
  • 92
63
votes
3 answers

RESTful way to send commands

How do you send "commands" to a RESTful server? Use case: My server caches certain information so that it does not have to read the database every time that information is requested. I need a way to send a command from my client application to tell…
Ralph
  • 31,584
  • 38
  • 145
  • 282
63
votes
5 answers

Different RESTful representations of the same resource

My application has a resource at /foo. Normally, it is represented by an HTTP response payload like this: {"a": "some text", "b": "some text", "c": "some text", "d": "some text"} The client doesn't always need all four members of this object. What…
Jordan
  • 4,510
  • 7
  • 34
  • 42
62
votes
5 answers

What does WEB-INF stand for in a Java EE web application?

Most of the places on the internet say it stands for WEB INFormation. I rather doubt it. The folder contains executables. Information is not a suitable name for it.
euphoria83
  • 14,768
  • 17
  • 63
  • 73
62
votes
2 answers

What is the main-stream Java alternative to ASP.NET / PHP

I've heard something and seen some examples of web application built using ASP.NET / PHP and I'm wondering what would be the equivalent way of doing similar things in Java world. Looking on the Wikipedia I have found a lot of frameworks and I'm kind…
Veronika D
  • 1,031
  • 2
  • 11
  • 10
62
votes
9 answers

What is the best way to manage permissions for a web application - bitmask or database table?

I'm considering the best way to design a permissions system for an "admin" web application. The application is likely to have many users, each of whom could be assigned a certain role; some of these users could be permitted to perform specific tasks…
Hari
  • 1,056
  • 1
  • 10
  • 13
61
votes
2 answers

Cross Domain Resource Sharing GET: 'refused to get unsafe header "etag"' from Response

A simple GET request with no custom headers. The response is returned as expected. The data in the body is accessible, but not the headers. When I try to access the "etag" header, browsers raise an exception : Refused to get unsafe header…
Localist
  • 1,094
  • 1
  • 8
  • 14
61
votes
13 answers

Why "Content-Length: 0" in POST requests?

A customer sometimes sends POST requests with Content-Length: 0 when submitting a form (10 to over 40 fields). We tested it with different browsers and from different locations but couldn't reproduce the error. The customer is using Internet…
stesch
  • 7,202
  • 6
  • 47
  • 62
61
votes
17 answers

Address already in use: JVM_Bind java

Some times whenever I restart the application, which is built on Java Struts Mysql and Jboss 4.05 Version I get the error as Address already in use: JVM_Bind Only fix that i know is to restart the machine and try again, it will work. Else Some…
gmhk
  • 15,598
  • 27
  • 89
  • 112
61
votes
10 answers

Java Web Application Configuration Patterns

Are there any patterns or best practices that can be used to simplify changing configuration profiles for java web applications across multiple environments. e.g. JDBC URLs, SOAP end-points, etc. As a bit of background to help clarify my question,…
Dónal Boyle
  • 3,049
  • 2
  • 25
  • 40
60
votes
7 answers

High CPU Utilization in java application - why?

I have a Java Application (web-based) that at times shows very high CPU Utilization (almost 90%) for several hours. Linux TOP command shows this. On application restart, the problem goes away. So to investigate: I take Thread Dump to find what…
Jasper
  • 8,440
  • 31
  • 92
  • 133
59
votes
19 answers

Standard way to detect mobile browsers in a web application based on the http request

We are beginning to go down the path of mobile browser support for an enterprise e-commerce webapp (Java/Servlet based). Of course there are many decisions to be made, but it seems to me the cornerstone is to be able to reliably detect mobile…
Peter
  • 29,498
  • 21
  • 89
  • 122
59
votes
3 answers

Difference between web server, application server and database server

I read somewhere that a web application consists of a web server, application server and a database server. What is the difference between these three ? I asked this question because I remember when I hosted a website, all I had was a https login…
OneMoreError
  • 7,518
  • 20
  • 73
  • 112
58
votes
7 answers

Maven: Customize web.xml of web-app project

I have a web application Maven project, and I want to customize the web.xml file depending on the Profile that is running. I am using the Maven-War-plugin, which allows me to define a "resources" directory, where the files may be filtered. However,…
Markos Fragkakis
  • 7,499
  • 18
  • 65
  • 103