all AI news
Session tracking using url rewriting in servlet
May 7, 2023, 3:02 a.m. | NJ
DEV Community dev.to
For Explanation watch the video
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" id="WebApp_ID" version="4.0">
<display-name>URLRewriting</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
<style type="text/css">
div {
width: 500px;
margin: auto;
margin-top: 100px;
}
</style>
</head>
<body>
<div>
<form action="firsturl" method="post">
Name: <br> <input type="text" name="name"> <br>
Add : <br> <input type="text" name="add"> <br>
Choose any one: <br> <select name="dish">
<option value="sweet">Sweet</option>
<option value="spicy">Spicy</option>
</select> <br> <input type="submit" value="submit">
</form>
</div>
</body> …
app css encoding head html index java list meta servlet session text tracking type url video web xml
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Lead GNSS Data Scientist
@ Lurra Systems | Melbourne
Senior Machine Learning Engineer (MLOps)
@ Promaton | Remote, Europe
Intern Large Language Models Planning (f/m/x)
@ BMW Group | Munich, DE
Data Engineer Analytics
@ Meta | Menlo Park, CA | Remote, US