Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Nico Yukiko

+ Follow
since Aug 24, 2005
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nico Yukiko

Why should i put the invalidate?? And to call it?
if i place the code below in a shoppingCart servlet
"<input type='button' name='empty' value='Empty Cart'>    ");

And if i store the item brought in the linklist how can i empty all the things when it goes to another class?
16 years ago
instead of using the submit button below, how can i change button into my image button??
"<form name='form1' method='post' action='/Checkout'>");
send.println("<input type='hidden' name='totalPrice' value='" +
totalPrice + "'>");
send.println("<input type='hidden' name='totalQuantity' value='" +
totalQuantity + "'>");
send.println("Email : <input type='text' name='email' value=''>");
send.println("<input type='submit' value='Check Out'>");
[ September 14, 2005: Message edited by: Bear Bibeault ]
How to link it to the remove method in that class
16 years ago
i wrote if (email==""){
but it does not show this is i leave emai as empty???
16 years ago
but how can i call it in the servlet??
if this is in the same class as the servlet
16 years ago
When i click on the button remove(<input type=button value='Remove'> , how can i call the method in the same class as the remove button.

And how can i clear all the product in a shopping cart.
16 years ago
how to generate a six digit number?
16 years ago
How can i store the day,month,year into a variable so that i can store it into a database
16 years ago
How to write codes for getting today date
16 years ago
i want to use an array to store the item from database instead of hard coding the item which is shown at the last part of the code.
When i do a System.out.println(itemName + serialNumber+ carModel + listPrice); , it did show the item from database but when i use an array to store it, it does not show the correct output.WHY???

while ( {
for (int i = 1; i <= info.getColumnCount(); i++) {
itemName = rs.getString("itemName");
serialNumber = rs.getString("serialNumber");
carModel = rs.getString("carModel");
listPrice = rs.getDouble("listPrice");

items[i]=new Item(itemName, serialNumber,carModel, listPrice);


// private static Item[] items =
// { new Item(itemName,
// "<I>"+carModel+"</I> ",
// specifications,44.44),
// new Item("11111",
// "Description","This is a decription",49.95)
// };
16 years ago
To login and validate with databse whether is a valid user.Can someone provide the code
16 years ago
I am using a Database that do not require a user id and password but JSP require us to put those things then wat should i put??
In servlet i use
Connection con=DriverManager.getConnection("jdbc dbc:mydsn")
and this work.

Connection con=DriverManager.getConnection("jdbc dbc:mydsn", "jp", "jp");
16 years ago
My code below don't validate from the database whether it is a valid user.WHY??It just print the Hi and the name.???

(Marilyn added code tags)
[ September 01, 2005: Message edited by: Marilyn de Queiroz ]
16 years ago
Actually this is a language.i am converting it into a java language.Can u help?
16 years ago
How to create an array that can store variable.I try to create the code below but it is giving me an error "object reference not set to an instance on an object "

Dim Info As String
Dim arrInfo() As String

For k = 0 To totalRows - 1
Info = lobjDs.Tables("tblMemberApproval").Rows(k).Item("strUserId")
arrInfo(k) = Info
16 years ago