GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — added selectvendor,login,address page and logic · MissionJava/ePackSpringGae@755f3ec

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • ePackSpringGae
    • src/com/appspot/pack7/controller
      • LoginController.java
      • SendParcelController.java
    • war
      • WEB-INF
        • appengine-web.xml
        • assets/css/login
          • css
            • bootsnipp.min.css
            • bootstrap.min.css
            • font-awesome.min.css
          • js
            • bootstrap.min.js
            • jquery-1.11.0.min.js
        • pages
          • addressdetails.jsp
          • login.jsp
          • selectvendor.jsp
      • assets/css/login
        • css
          • bootsnipp.min.css
          • bootstrap.min.css
          • font-awesome.min.css
        • js
          • bootstrap.min.js
          • jquery-1.11.0.min.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎ePackSpringGae/src/com/appspot/pack7/controller/LoginController.java‎

Copy file name to clipboard
+38Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package com.appspot.pack7.controller;
2+
3+
import javax.servlet.http.HttpServletRequest;
4+
import javax.servlet.http.HttpServletResponse;
5+
import javax.servlet.http.HttpSession;
6+
7+
import org.springframework.stereotype.Controller;
8+
import org.springframework.ui.Model;
9+
import org.springframework.web.bind.annotation.RequestMapping;
10+
import org.springframework.web.bind.annotation.RequestMethod;
11+
12+
@Controller
13+
public class LoginController {
14+
15+
@RequestMapping(value = "/login", method = RequestMethod.GET)
16+
public String showLoginForm() {
17+
System.out.println("in showLoginForm");
18+
return "login";
19+
}
20+
21+
@RequestMapping(value = "/authenticate", method = RequestMethod.POST)
22+
public String validateCustomer(Model model, HttpServletRequest request,
23+
HttpServletResponse response) {
24+
25+
String userName = request.getParameter("username");
26+
String password = request.getParameter("password");
27+
28+
if (userName.equals(password)) {
29+
HttpSession session = request.getSession();
30+
session.setAttribute("userName", userName);
31+
32+
model.addAttribute("userName", userName);
33+
return "addressdetails";
34+
}
35+
return "login";
36+
}
37+
38+
}
Collapse file

‎ePackSpringGae/src/com/appspot/pack7/controller/SendParcelController.java‎

Copy file name to clipboardExpand all lines: ePackSpringGae/src/com/appspot/pack7/controller/SendParcelController.java
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ public String bookParcel(Model model, HttpServletRequest request,HttpServletResp
2828
model.addAttribute("sendparcelBookingId", "sendparcelBookingId");
2929
model.addAttribute("sendParcelDetails", "Mumbai");
3030

31-
return "sendparcel";
31+
return "selectvendor";
32+
}
33+
34+
@RequestMapping(value="/selectvendor", method = RequestMethod.POST)
35+
public String selectVendor(Model model, HttpServletRequest request,HttpServletResponse response) {
36+
37+
return "redirect:/login";
3238
}
3339
}
Collapse file

‎ePackSpringGae/war/WEB-INF/appengine-web.xml‎

Copy file name to clipboardExpand all lines: ePackSpringGae/war/WEB-INF/appengine-web.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
3-
<application>pack7springgae</application>
3+
<application>pokerkme</application>
44
<version>1</version>
55

66
<!--
@@ -27,5 +27,5 @@
2727
stale session data. For details, see
2828
http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions
2929
-->
30-
30+
<sessions-enabled>true</sessions-enabled>
3131
</appengine-web-app>
Collapse file

‎ePackSpringGae/war/WEB-INF/assets/css/login/css/bootsnipp.min.css‎

Copy file name to clipboardExpand all lines: ePackSpringGae/war/WEB-INF/assets/css/login/css/bootsnipp.min.css
+7Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎ePackSpringGae/war/WEB-INF/assets/css/login/css/bootstrap.min.css‎

Copy file name to clipboardExpand all lines: ePackSpringGae/war/WEB-INF/assets/css/login/css/bootstrap.min.css
+5Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎ePackSpringGae/war/WEB-INF/assets/css/login/css/font-awesome.min.css‎

Copy file name to clipboardExpand all lines: ePackSpringGae/war/WEB-INF/assets/css/login/css/font-awesome.min.css
+403Lines changed: 403 additions & 0 deletions
Large diffs are not rendered by default.
Collapse file

‎ePackSpringGae/war/WEB-INF/assets/css/login/js/bootstrap.min.js‎

Copy file name to clipboardExpand all lines: ePackSpringGae/war/WEB-INF/assets/css/login/js/bootstrap.min.js
+7Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎ePackSpringGae/war/WEB-INF/assets/css/login/js/jquery-1.11.0.min.js‎

Copy file name to clipboardExpand all lines: ePackSpringGae/war/WEB-INF/assets/css/login/js/jquery-1.11.0.min.js
+4Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎ePackSpringGae/war/WEB-INF/pages/addressdetails.jsp‎

Copy file name to clipboard
+308Lines changed: 308 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,308 @@
1+
2+
<!DOCTYPE html>
3+
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
4+
pageEncoding="ISO-8859-1"%>
5+
<%@page import="java.util.Date"%>
6+
<%@page import="java.text.SimpleDateFormat"%>
7+
<%@page import="java.util.List"%>
8+
<%@page import="java.util.Iterator"%>
9+
<html lang="en">
10+
<head>
11+
<meta charset="utf-8">
12+
<title>Pack7 :: Send Parcel</title>
13+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
14+
<meta name="description" content="">
15+
<meta name="author" content="">
16+
17+
<!-- Le styles -->
18+
<link href="../assets/css/bootstrap.css" rel="stylesheet">
19+
<style type="text/css">
20+
body {
21+
padding-top: 20px;
22+
padding-bottom: 60px;
23+
}
24+
25+
/* Custom container */
26+
.container {
27+
margin: 0 auto;
28+
max-width: 1000px;
29+
}
30+
31+
.container>hr {
32+
margin: 80px 0;
33+
}
34+
35+
/* Main marketing message and sign up button */
36+
.jumbotron {
37+
margin: 80px 0;
38+
text-align: center;
39+
}
40+
41+
.jumbotron h1 {
42+
font-size: 100px;
43+
line-height: 1;
44+
}
45+
46+
.jumbotron .lead {
47+
font-size: 24px;
48+
line-height: 1.25;
49+
}
50+
51+
.jumbotron .btn {
52+
font-size: 21px;
53+
padding: 14px 24px;
54+
}
55+
56+
/* Supporting marketing content */
57+
.marketing {
58+
margin: 60px 0;
59+
}
60+
61+
.marketing p+h4 {
62+
margin-top: 28px;
63+
}
64+
65+
/* Customize the navbar links to be fill the entire space of the .navbar */
66+
.navbar .navbar-inner {
67+
padding: 0;
68+
}
69+
70+
.navbar .nav {
71+
margin: 0;
72+
display: table;
73+
width: 100%;
74+
}
75+
76+
.navbar .nav li {
77+
display: table-cell;
78+
width: 1%;
79+
float: none;
80+
}
81+
82+
.navbar .nav li a {
83+
font-weight: bold;
84+
text-align: center;
85+
border-left: 1px solid rgba(255, 255, 255, .75);
86+
border-right: 1px solid rgba(0, 0, 0, .1);
87+
}
88+
89+
.navbar .nav li:first-child a {
90+
border-left: 0;
91+
border-radius: 3px 0 0 3px;
92+
}
93+
94+
.navbar .nav li:last-child a {
95+
border-right: 0;
96+
border-radius: 0 3px 3px 0;
97+
}
98+
</style>
99+
<link href="../assets/css/bootstrap-responsive.css" rel="stylesheet">
100+
101+
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
102+
<!--[if lt IE 9]>
103+
<script src="../assets/js/html5shiv.js"></script>
104+
<![endif]-->
105+
106+
<!-- Fav and touch icons -->
107+
<link rel="apple-touch-icon-precomposed" sizes="144x144"
108+
href="../assets/ico/apple-touch-icon-144-precomposed.png">
109+
<link rel="apple-touch-icon-precomposed" sizes="114x114"
110+
href="../assets/ico/apple-touch-icon-114-precomposed.png">
111+
<link rel="apple-touch-icon-precomposed" sizes="72x72"
112+
href="../assets/ico/apple-touch-icon-72-precomposed.png">
113+
<link rel="apple-touch-icon-precomposed"
114+
href="../assets/ico/apple-touch-icon-57-precomposed.png">
115+
<link rel="shortcut icon" href="../assets/ico/favicon.png">
116+
<style>
117+
.datepicker {
118+
119+
}
120+
</style>
121+
122+
<script>
123+
$(function() {
124+
$(".datepicker").datepicker();
125+
});
126+
</script>
127+
<script>
128+
function reset() {
129+
hideStatus();
130+
removeAttribute("AddUserStatus");
131+
}
132+
133+
function hideStatus() {
134+
document.getElementById("status").style.display = "none";
135+
}
136+
</script>
137+
138+
</head>
139+
140+
<body>
141+
142+
143+
<div class="container">
144+
<div class="masthead">
145+
<h1>
146+
<a href="pack7" style="text-decoration: none;">Pack7 India</a>
147+
</h1>
148+
149+
<div class="navbar">
150+
<div class="navbar-inner">
151+
<div class="container">
152+
<ul class="nav">
153+
<li><a href="pack7">Home</a></li>
154+
<li class="active"><a href="sendparcel">Send Parcel</a></li>
155+
<li><a href="trackparcel">Track Parcel</a></li>
156+
<li><a href="about">About</a></li>
157+
<li><a href="contact">Contact</a></li>
158+
<li><a href="LogoutServlet">Logout</a></li>
159+
</ul>
160+
</div>
161+
</div>
162+
</div>
163+
<!-- /.navbar -->
164+
</div>
165+
<div>
166+
<ul class="breadcrumb">
167+
<li><a href="pack7.html">Home</a> <span class="divider">/</span></li>
168+
<li><a href="#">Send Parcel</a></li>
169+
</ul>
170+
</div>
171+
172+
<div class="row-fluid box">
173+
174+
<div class=""box-content">
175+
<!-- Jumbotron -->
176+
<form name="sendParcelForm" id="sendParcelForm"
177+
class="bs-docs-example form-horizontal"
178+
action="sendparcel/bookparcel" method="POST">
179+
<div class="box-header well" data-original-title="">
180+
<h2>
181+
<i class="icon-edit"></i>Sender Address Details
182+
</h2>
183+
</div>
184+
<div class="control-group">
185+
<label class="control-label" for="inputError">Name</label>
186+
<div class="controls">
187+
<input name="sendername" type="text" id="inputWarning"
188+
required="required" onfocus="hideStatus()">
189+
</div>
190+
</div>
191+
192+
<div class="control-group">
193+
<label class="control-label" for="inputError">Pickup
194+
Address</label>
195+
<div class="controls">
196+
<input name="pickupaddress" type="text" id="inputWarning"
197+
required="required" onfocus="hideStatus()">
198+
</div>
199+
</div>
200+
201+
<div class="control-group">
202+
<label class="control-label" for="inputError">Mobile</label>
203+
<div class="controls">
204+
<input name="sendermobile" type="text" id="inputWarning"
205+
required="required" onfocus="hideStatus()">
206+
</div>
207+
</div>
208+
<div class="control-group">
209+
<label class="control-label" for="inputError">Email</label>
210+
<div class="controls">
211+
<input name="senderemail" type="text" id="inputWarning"
212+
required="required" onfocus="hideStatus()">
213+
</div>
214+
</div>
215+
216+
<div class="control-group">
217+
<label class="control-label" for="inputError">Pickup Date</label>
218+
<div class="controls">
219+
<input name="pickupdate" type="text" id="inputWarning"
220+
required="required" onfocus="hideStatus()">
221+
<span class="add-on">dd-mm-yyyy</span>
222+
</div>
223+
</div>
224+
225+
<div class="control-group">
226+
<label class="control-label" for="inputError">Pickup Time</label>
227+
<div class="controls">
228+
<input name="pickuptime" type="text" id="inputWarning"
229+
required="required" onfocus="hideStatus()">
230+
<span class="add-on">hh:mm</span>
231+
</div>
232+
</div>
233+
234+
<div class="box-header well" data-original-title="">
235+
<h2>
236+
<i class="icon-edit"></i>Receiver Address Details
237+
</h2>
238+
</div>
239+
<div class="control-group">
240+
<label class="control-label" for="inputError">Name</label>
241+
<div class="controls">
242+
<input name="receivername" type="text" id="inputWarning"
243+
required="required" onfocus="hideStatus()">
244+
</div>
245+
</div>
246+
247+
<div class="control-group">
248+
<label class="control-label" for="inputError">Address</label>
249+
<div class="controls">
250+
<input name="receiveraddress" type="text" id="inputWarning"
251+
required="required" onfocus="hideStatus()">
252+
</div>
253+
</div>
254+
255+
256+
<div class="control-group">
257+
<label class="control-label" for="inputError">Mobile</label>
258+
<div class="controls">
259+
<input name="receivermobile" type="text" id="inputWarning"
260+
required="required" onfocus="hideStatus()">
261+
</div>
262+
</div>
263+
<div class="control-group">
264+
<label class="control-label" for="inputError">Email</label>
265+
<div class="controls">
266+
<input name="receiveremail" type="text" id="inputWarning"
267+
required="required" onfocus="hideStatus()">
268+
</div>
269+
</div>
270+
<div class="control-group box-header well">
271+
<div class="controls">
272+
<button class="btn btn-primary" type="submit">Book</button>
273+
<button class="btn" type="reset" onsubmit="reset()">Reset</button>
274+
</div>
275+
</div>
276+
</form>
277+
</div>
278+
</div>
279+
280+
</div>
281+
282+
<div class="footer">
283+
<p align="left">&copy; Company 2015</p>
284+
</div>
285+
286+
</div>
287+
<script>
288+
$("#bookParcelForm").validate();
289+
</script>
290+
291+
<!-- Le javascript
292+
================================================== -->
293+
<!-- Placed at the end of the document so the pages load faster -->
294+
<script src="../assets/js/jquery.js"></script>
295+
<script src="../assets/js/bootstrap-transition.js"></script>
296+
<script src="../assets/js/bootstrap-alert.js"></script>
297+
<script src="../assets/js/bootstrap-modal.js"></script>
298+
<script src="../assets/js/bootstrap-dropdown.js"></script>
299+
<script src="../assets/js/bootstrap-scrollspy.js"></script>
300+
<script src="../assets/js/bootstrap-tab.js"></script>
301+
<script src="../assets/js/bootstrap-tooltip.js"></script>
302+
<script src="../assets/js/bootstrap-popover.js"></script>
303+
<script src="../assets/js/bootstrap-button.js"></script>
304+
<script src="../assets/js/bootstrap-collapse.js"></script>
305+
<script src="../assets/js/bootstrap-carousel.js"></script>
306+
<script src="../assets/js/bootstrap-typeahead.js"></script>
307+
</body>
308+
</html>

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.