Help coderanch get a
new server
by contributing to the fundraiser

carl chan

Ranch Hand
+ Follow
since Mar 12, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by carl chan

Thanks for all your's advices,
I finally choose to go for SCBCD instead of XML becasue:
1. Cheaper to study because I only need to buy 1 book
2. I like the authors of the book becasue I used their book to prepare for my SCJP.
3. It seems to me that XML would takes me more time to study
Hi all:
I just cleared my scwcd and now I am thinking either go for
1. IBM XML or
2. SCBCD
Eventually I want to clear both. I need advise from you guys and my question is that which one should I start next??
Thanks in advance.
hi david,
other than adding some attributes to your request object, i suggest that you also try to add some attributes to your HttpSession becasue using session to store the "shared object" between jsp and servlet is an important method too.
Have fun, hope this help.
Dear all,
Thanks for all of you that help me before and thanks for all those who come up with JAVARANCH. Without this place, I don't think I would make it so far.
Just a quick tips about the exam:
1. Please be familiar with all methods of both HttpServletRequest and HttpServletRequest. The best thing to get familiar with them is to develop some application and try them all out.
2. Time will not be a matter as I have arround 40 mins left.
3. If you are using the MANNING exam study kit, I would say that you have no problem in passing this EXAM if you have master those concepts in the 3 sample EXAM which come with the CD.
Thanks again to all of you.
20 years ago
1. I am planning to take the exam in 2 weeks. Will I be tested on the new version of exam that many of you keep talking here??
2. For question that there is more than 1 correct answer, will the question tell me how many numbers of correct answer to choose??
Thx
hi all:
I am building a web app now and everything works fine. However, instead of asking my DAO(Data access object) to connect to the DB(mysql) to retreive data for my servlet and jsp and stuff, I want to create a virtual database which holds the data.
I know that the database will be reset everytime a new user log-in but thats fine. All I need is that the database will reflect the changes within the session.
My question is that how should I designed my DB class so that it satisfy what I needed.
The current problem i have is that each time my DAO have to create an instance of my DB class (which reset all the changes that user made).
To make my question simpler for those who don't want to READ:
How can I create a class which other objects within the same package can just reference to it and the class itself have 1 instance only??
thx
hi all:
I am building a web app now and everything works fine. However, instead of asking my DAO(Data access object) to connect to the DB(mysql) to retreive data for my servlet and jsp and stuff, I want to create a virtual database which holds the data.
I know that the database will be reset everytime a new user log-in but thats fine. All I need is that the database will reflect the changes within the session.
My question is that how should I designed my DB class so that it satisfy what I needed.
The current problem i have is that each time my DAO have to create an instance of my DB class (which reset all the changes that user made).
To make my question simpler for those who don't want to READ:
How can I create a class which other objects within the same package can just reference to it and the class itself have 1 instance only??
thx
20 years ago
Dear all:
If I want to ask my serlvet to do something every single time when the application first start, what should the code be??
thx
20 years ago
dear all:
In my result.jsp page, i get my "RESULT" from my session using getAttribute("somename"). After some process in my app, i update the session in my servlet by using setAttribute("somename", some_object).
and then i called result.jsp again.
What i expected is to see some changes beacuse the session should give me the most updated result.
but what i keep seeing is the old result from the first time i load the result.jsp. In other words, result.jsp is still calling the old_result object to display the data.
My question is that how can i ensure that result.jsp is getting the most updated object from the session. thanks
20 years ago
JSP
Dear all,
This is the first time that my boss ask me to create a table to store some customer's records.
Each customer should have a unique ID as the primary key. My question is that how should i create a table which generate a new customer ID each time when a new record is add??
Thanks
Hi all
I need to host my web application and it includes servlet, jsp and java beans only.
Do you guys have any suggestion about which hosting company is better in terms of the support of java technology??
Thanks
P.S. I am located in Toronto
Hi all
I need to host my web application and it includes servlet, jsp and java beans only.
Do you guys have any suggestion about which hosting company is better in terms of the support of java technology??
Thanks
P.S. I am located in Toronto
21 years ago
JSP
Hi all
I need to host my web application and it includes servlet, jsp and java beans only.
Do you guys have any suggestion about which hosting company is better in terms of the support of java technology??
Thanks
P.S. I am located in Toronto
21 years ago