Win a copy of Head First Android this week in the Android forum!

Nico Yukiko

Greenhorn
+ Follow
since Aug 24, 2005
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 Nico Yukiko

Why should i put the invalidate?? And to call it?
if i place the code below in a shoppingCart servlet
send.println(
"<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??
send.println(
"<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'>");
send.println("</form>");
}
[ 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==""){
System.out.println("error")
}
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 (rs.next()) {
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);
System.err.println(items[i]);

}



// 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
tx
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
JSP
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 asp.net 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
Next
16 years ago