Hi,
I can't directly answer your question, but I will tell you about your use of
JSP.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> <%
> response.setHeader("Pragma", "No-cache");
> response.setHeader("Cache-Control", "no-cache");
> response.setDateHeader("Expires", 0);
>
> javax.servlet.http.HttpSession session = request.getSession(false);
Why are you doing this? JSP is compiled into a servlet, and you have
specific variables you can use in a JSP page. You can directly use:
request
response
session
context
page
application
I forget the others, but look up on the sun site under JSP for the syntax
card. It shows you the variables you can use.
Also, not sure if your doing this, but if you have many JSP pages, use an
"include" for a header that all pages use, so you can duplicate your
response.setHeader() calls and other things. If your pages use a menu or
something, put that an an include as well, so you don't have to copy/paste,
but instead a simple include will do.
> nelsonshoppingcart.Customer aCustomer = (nelsonshoppingcart.Customer)
> session.getValue("Customer");
> out.println("<P>To contents are : " + aCustomer.getUserTo() + "</P>");
> %>
Ouch. No offense, but I would really look into getting rid of ALL code out
of your JSP pages..use them ONLY for a VIEW in the MVC pattern. Since you
said EVERY page sends to the servlet, have the servlet FORWARD to the VIEW
JSP page. Do all the work in the servlet and action classes, put the results
in a bean and store the bean in the request or session object. Then your JSP
page will be mostly HTML with a slight bit of java scriplet code to display
the dynamic results. Remember..JSP is nothing different than an abstraction
of a servlet. It is compiled into a servlet and run on the server.
Anyways..just a few thoughts on what your doing thus far.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets