sam davis

Greenhorn
+ Follow
since Jun 16, 2003
Merit badge: grant badges
For More
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 sam davis

Hey Joel,
You are right..I'm sorry but i don't think i was clear about my response..i was talking about changing month...thats what i used roll() for..
20 years ago
Thanks Joel for your help. However, i found roll() method to be better. Appreciate your help ..
20 years ago
Hello,
Could someone help me out with the code to get the date for one month ago(last month)...and how would i account for the date rollover(when the year changes) i would really appreciate it..thanks..
20 years ago
Hey Mike,
I understood wut u meant and solved it..I'm sorry i couldn't post a reply earlier and you had to reply again. Thanks for your help...appreciate it..
20 years ago
So, what should i do???..cos i have run out of solutions???.
20 years ago
Hello,
Im creating a reporting servlet which shows the values of the row for a certain username and then lets user make changes to it and updates it. If a user sets the timestamp field to blank in the form and hits 'update' button, it updates it to some random date and time instead of showing it blank. This is wut my code looks like in dopost()just to show blank if the users sets it to blank.
String m = req.getParameter("initialized");
if (m == null || m.equals(""))
member.initialized = null;
member.update();
in my Member class, i have this code in the update method:
String m ="";
if(initialized == null)
m = null;
update = "UPDATE vippas SET initialized = \"" + m + "\"";.
Im totally stuck here..Could any1 please tell me wut the problem is and suggest a solution. Thanks for your help.
20 years ago
its a servlet based application. Thats what my problem is..i don't know how to extract the records one at a time from the Vector(if there are multiple records). Any help would be appreciated...
20 years ago
Hello,
Im developing an application where a suer can search by username, password or email..while username must be unique, pswd n email can return multiple users. I know how to display the row if it returns only one user.
Vector vmembers = new Vector();
if((vmembers.size() == 1 )))
user = (User) vmembers.elementAt(0);
But, how do i display all the users if more than 1 record matches the search(vmembers.size() > 1)??.
Any help would be greatly appreciated. thanks
20 years ago
Hello,
Thanks a lot for your help..working fine now..Appreciate it..
20 years ago
Hello,
Thanks a lot for your help..i was able to convert it into a string and use it in my query. Appreciate it.
Sam
20 years ago
Thanks for all of your help...it worked..!!!
20 years ago
thats giving me rows for April!!!..any other ideas or suggestion..even Java code to get the first day of the current month would help..i can convert it into a string and use that string in my sql statement...Thanks a lot..
20 years ago
Could someone please tellme the syntax to get the first day of the current month. or Any links that explains it would be really helpful..thanks .
20 years ago
Hey David,
Thanks for your suggestion. I tried that and it worked..thanks..
20 years ago
Hello,
I'm developing a reporting servlet. IN that, i have a sql statement that shows all the fields of a table WHERE date > <dynamically generated to always use the first day of the current month>.
Could anyone help me out with the syntax to dynamically generate the first day of the current month???..ANy suggestion or any links where i can get more info on this would be greatly appreciated...THanks
20 years ago