Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Hans Soderstrom

Greenhorn
+ Follow
since Mar 18, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Hans Soderstrom

it komplains when it hit this call
obj = JOptionPane.showInputDialog(frame1, "xxxx:","CallCenter",
JOptionPane.QUESTION_MESSAGE);
19 years ago
This is a swing application and it occured when i upgraded from jbuilder 4 to jbuilder 5.
I dont use any applets or any browsers (It's completly swing).
Does anyone know whar to change in order to start use Java 2 security model instead???
19 years ago
as Lakshmeenarayana Goundalkar is trying to say
session.getValue is depricated (but it is working for now).
What you need to do in the code is to change this
-----------------------------
if
(command.equals("add"))
{
Integer num = (Integer) cart.get(id);
if (num == null) {
num = new Integer(0);
}
cart.put(id,new Integer(num.intValue()+1));
session.setAttribute("cart",cart);
//printCatalog(out, requestURI);
out.println("Item Added to Cart");
}
------------------------------------
this should add the cart with the new item in the session.
19 years ago