/*
<%@ page import="com.rntsoft.*"%>
Thankyou for your request
Thankyou for your request for more information.
It will be sent to you shortly.
<%
MoreInfoRequest infoRequest = new MoreInfoRequest();
infoRequest.setCourses(request.getParameter("courses"));
infoRequest.setFirstName(request.getParameter("firstName"));
infoRequest.setLastName(request.getParameter("lastName"));
infoRequest.setEmail(request.getParameter("email"));
// this is the method that will bind an object to a session
session.setAttribute("infoRequest", infoRequest);
%>
Click here to view your request.
*/
package com.rntsoft;
public class MoreInfoRequest
{
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getCourses() {
return courses;
}
public void setCourses(String courses) {
this.courses = courses;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
private String firstName;
private String lastName;
private String email;
private String courses;
}
Your Request
Here is the information that you submitted to us for processing.
<%
MoreInfoRequest infoRequest =
(MoreInfoRequest) session.getAttribute("infoRequest");
%>
Course name: <%=infoRequest.getCourses()%>
Your name: <%=infoRequest.getFirstName()%>
<%=infoRequest.getLastName()%>
Your email: <%=infoRequest.getEmail()%>