A little much for a jsp page, I'd factor this into a
class. However, change this to:
try
{
Cart cart = (Cart) pageContext.getAttribute(cart,
PageContext.SESSION_SCOPE);
if (cart == null) {
cart = new Cart();
pageContext.setAttribute(cart, cart,
PageContext.SESSION_SCOPE);
}
A little much for a jsp page, I'd factor this into a
class. However, change this to:
try
{
Cart cart = (Cart) pageContext.getAttribute(cart,
PageContext.SESSION_SCOPE);
if (cart == null) {
cart = new Cart();
pageContext.setAttribute(cart, cart,
PageContext.SESSION_SCOPE);
}
A little much for a jsp page, I'd factor this into a
class. However, change this to:
try
{
Cart cart = (Cart) pageContext.getAttribute(cart,
PageContext.SESSION_SCOPE);
if (cart == null) {
cart = new Cart();
pageContext.setAttribute(cart, cart,
PageContext.SESSION_SCOPE);
}
A little much for a jsp page, I'd factor this into a
class. However, change this to:
%@ page import=com.bfg.customer.Customer %
%@ page import=com.bfg.cart.Cart %
%@ page import=javax.servlet.http.Cookie %
%@ page import=sun.misc.BASE64Decoder %
%
try
{
Cart cart = (Cart)
Sorry all for the multiple posts, Yahoo kept giving me
an erro and I didn't think they sent.
--- Carl Trusiak [EMAIL PROTECTED] wrote:
A little much for a jsp page, I'd factor this into a
class. However, change this to:
try
{
Cart cart = (Cart)
pageContext.getAttribute(cart
HttpSessionBindingListener was introduced with Servlet
2.3. Tomcat 3.3 is based on Servlet 2.2. The
servlet.jar you added into your classpath must be for
2.3. I don't think you can be sure of any behavior
with this configuration. If you want to use
HttpSessionBindingListener you should upgrade
-Original Message-
From: Carl Trusiak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 3:23 PM
To: Tomcat Users List
Subject: RE: PageContextImpl.handlePageException
A little much for a jsp page, I'd factor this into a
class. However, change this to:
try
{
Cart
Good, now on to your original question. When you
reference the JSP bean, add the fully qualified class
name to it(package and class name ex:
java.lang.String). Since you didn't specify the
package, JSP trys to add the package of your page to
the front of the class anme and load it.
--- Steve
.
Cheers,
Larry
-Original Message-
From: Carl Trusiak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 6:35 PM
To: Tomcat Users List
Subject: RE: Tomcat 3.3.1
HttpSessionBindingListener not found
HttpSessionBindingListener was introduced with
Servlet
2.3
I have seen this. The only time was caused by html
and javascript. We had
input type=submit
onclick=javascript:doSomething();
Then in the doSomething() method, we did a
form.submit();
The click of the submit input caused a submit of the
form, followed by a submit by the javascript. We
If you are using Ant, there is an Optional task which
ships with it. I use it on my project and it works
great. I have Tomcat 4.1.12 and Ant 1.5.1
The Relavent portions are:
taskdef name=jspc
classname=org.apache.tools.ant.taskdefs.optional.jsp.JspC/
!-- create reusable classpath --
To prevent users from seeing any directory add the
entry
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
To your web.xml and in every directory, place a copy
of index.jsp. It can just be a redirect to your home
page.
--- Peter Lee [EMAIL
The license states :
1. LICENSE TO USE. Sun grants you a non-exclusive
and non-transferable license for the internal use only
of the accompanying software...
This seems to me to be all the permission you need to
use the SDK within your company.
In addition, there is language that allows you to
13 matches
Mail list logo