https://stormbirds.org/siegelj/showStudent.php?name=Joe Jones&year=Senior
The Bean
import mybeans.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class studentServletphp extends HttpServlet {
protected void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
SQLBean thestudent = new SQLBean();
thestudent.setAll("Joe Jones");
String thename=thestudent.getName();
String theyear=thestudent.getYear();
res.setContentType("text/html;charset=UTF-8");
PrintWriter pw=res.getWriter();
// String theURL="http://hoare.cs.umsl.edu/~siegel/showStudent.php";
String theURL="https://stormbirds.org//siegelj/showStudent.php"; // Off Site
String thequery="?name="+thename+"&year="+theyear;
res.sendRedirect(theURL+thequery);
pw.close();
}
}