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
37
votes
7 answers

How to set a parameter in a HttpServletRequest?

I am using a javax.servlet.http.HttpServletRequest to implement a web application. I have no problem to get the parameter of a request using the getParameter method. However I don't know how to set a parameter in my request.
Alceu Costa
  • 9,733
  • 19
  • 65
  • 83
37
votes
13 answers

Blank page after successful Firebase deployment

My ReactJs application runs fine on my local box, when I use the npm start command. However when I try to deploy my application using the firebase init to Firebase, I am seeing a blank page. What could I be doing wrong? Update: I had to edit the…
Ajit Goel
  • 4,180
  • 7
  • 59
  • 107
37
votes
7 answers

Using Intellij to Build War and Deploy to Tomcat

My basic workflow is in terminal mvn clean install on my base directory. This creates a target directory with a WAR file. I copy that war file into the webapps directory of my Tomcat. If I make changes I obviously have to repeat the process which is…
Joey
  • 1,724
  • 3
  • 18
  • 38
37
votes
10 answers

Cannot change version of project facet Dynamic Web Module to 2.5

I've inherited a Java web app from another company. I'm trying to load it into Eclipse (via Import Maven Project), and getting an error that says "Cannot change version of project facet Dynamic Web Module to 2.5". I've been poking around a little,…
joelt
  • 2,672
  • 2
  • 24
  • 32
37
votes
2 answers

How do I prevent session hijacking by simply copy a cookie from machine to another?

Most Web Applications use cookies to manage the session for a user and allow you to stay logged in even if the browser was closed. Let's assume we did everything by the book to make sure the cookie itself is safe. encrypt the content set http…
Sam
  • 503
  • 1
  • 4
  • 7
37
votes
3 answers

Debug web app in IntelliJ, webapp built by maven, run by jetty

I'm using s/o code, it's a java webapp built by maven. The webapp is run by maven script, like below, and the app is run on localhost:8080, : org.mortbay.jetty
EyeQ Tech
  • 7,198
  • 18
  • 72
  • 126
37
votes
5 answers

Raw Servlet vs. Spring MVC

What are the reasons you should build your web application with raw Java Servlets or by using Spring MVC (or any other frameworks)? Are there exceptions when you should avoid Spring MVC, what are the advantages of doing it with Raw Servlets?
Mahoni
  • 7,088
  • 17
  • 58
  • 115
37
votes
8 answers

Difference between web services and web application

Lets have an example scenario: Client opens a web site and finds the sum of two numbers which he enters from the textboxes.Then clicks on the ADD button.Two parameters are HTTP GET'ed to server where PHP code is written to add the numbers and result…
day_dreamer
  • 824
  • 3
  • 13
  • 33
36
votes
13 answers

ASP.NET Web Application Message Box

In an asp.net windows forms application, in the C# code behind you can use: MessageBox.Show("Here is my message"); Is there any equivalent in a asp.net web application? Can I call something from the C# code behind that will display a message box…
Baxter
  • 5,633
  • 24
  • 69
  • 105
36
votes
1 answer

Servlet Mapping using web.xml

I have a confusion regarding the structure of the web.xml for the servlet mapping, I don't have any problem by executing it but I am trying to figure it how why we have such a pattern in the deployment descriptor.
Mike
  • 1,889
  • 5
  • 26
  • 32
36
votes
4 answers

Meta Tag "apple-mobile-web-app-capable" for Android?

Is there a way to create an Android Web Application like on the iPhone? Using the "apple-mobile-web-app-capable" meta tag in the head element of an HTML page, it informs the Apple iOS that the application can be installed to the users springboard so…
Zymotik
  • 6,412
  • 3
  • 39
  • 48
36
votes
3 answers

Right Click Menu using React JS

I'd like to know if there is a best practice/correct way to setup a right-click menu for a React component. I currently have this... // nw is nw.gui from Node-Webkit componentWillMount: function() { var menu = new nw.Menu(); menu .append(new…
Tom
  • 1,956
  • 2
  • 18
  • 23
36
votes
7 answers

iPad doesn't trigger resize event going from vertical to horizontal?

Has anyone noticed this behavior? I'm trying to write a script that will trigger upon a resize. It works fine on normal browsers, works fine on iPhone, but on iPad, will only trigger going from horizontal to vertical viewport, not vice versa. Here's…
dclowd9901
  • 6,756
  • 9
  • 44
  • 63
36
votes
6 answers

Apply loading spinner during ui-router resolve

resolve property of $routeProvider allows to execute some jobs BEFORE corresponding view is rendered. What if I want to display a spinner while those jobs are executed in order to increase user experience? Indeed, otherwise the user would feel the…
Mik378
  • 21,881
  • 15
  • 82
  • 180
35
votes
10 answers

Mobile Web App not clearing cache properly

I've been developing a mobile web app for iPad and I've been running into an issue while testing my code. Occasionally, and seemingly at random, the iPad will stop properly updating all of the JS libraries I've written. After updating some code…
Mulberry
  • 543
  • 1
  • 6
  • 11