All pastes #12093 Raw Edit

Unnamed

public java v1 · immutable
#12093 ·published 2005-05-18 20:09 UTC
rendered paste body
//3 files: Test_ImageGen, Test_ServeIt.jsp, and TestVerifyIt//Here is Test_ServeIt.jsp WORKING:http://67.161.177.74:8084/SessionServlet/Test_ServeIt.jsp//Here is YAhoo's, look at bottom:http://edit.yahoo.com/config/eval_register?.v=&.intl=&new=1&.done=http%3a//mail.yahoo.com&.src=ym&.partner=&.p=&promo=&.last=//Refreshing, yields a new .jpg image - the way servlets operate makes me think the way I'm trying to do it, "memory only" is not possible?//Very stuck Thankspublic class Test_ImageGen extends HttpServlet {    private String stringy;    private String[] str5;  //str5 is what is displayed on the screen via Java 2d, and what I'm trying to pass with Sessions public void doGet(HttpServletRequest req, HttpServletResponse res)  throws ServletException, IOException { doPost(req,res); }    public void doPost(HttpServletRequest req, HttpServletResponse res)  throws ServletException, IOException {          ////////////////////////////////////////////////////////////////////////////////!?!?!?!?!?!?!?!?!?!?!?!!?!?!?!?!?!?!?!?     HttpSession session = req.getSession( true );     session.setAttribute("lameString", str5);      ////////////////////////////////////////////////////////////////////////////////!?!?!?!?!?!?!?!?!?!?!?!!?!?!?!?!?!?!?!?            stringy = "javaRules";        String[] str5 = stringStripper( stringy );          //this is just taking the stringy, and converting to chars....    ////////////////////////////////////////////////////////////////////////////////!?!?!?!?!?!?!?!?!?!?!?!!?!?!?!?!?!?!?!?>>>>>> The rest of the code, is the code that generates an IMAGE/displays it from "str5".<<<<<<<