Adrian Kan

Greenhorn
+ Follow
since Jan 14, 2002
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 Adrian Kan

This is what I've been hearing all along
Use jsp to display information, use servlet to handle post and response and JavaBeans to process business logics

So if my web application requires the use of database, where should I put my code to query the database
I've seen samples of code and all codes to connect and query the database are put in the serlvet doPost or doGet methods
It seems a bit messy to me, but what's the best design approach to do this?

And is there a sample?


Thanks
Hi,

I am trying to troubleshoot a problem with my JSP

This works fine:


While this isn't and returns an error


Error Returned:
Attribute value request.getParameter("abc") is quoted with " which must be escaped when used within the value

Making <%= request.getParameter(\"abc\")%> works. as normal.


Any advice?

Running Tomcat 6.0.18

15 years ago
JSP
Here is the complete source code if you don't understand what i have just said.
http://www.yupapa.com/toybox/demo.java
run it and draw on the canvas.
Cover it with a windows, it will then erase your drawing. Any ideas how to fix that?
22 years ago
Hello,
I have spent about 1 week on solving this problem. Please help me out!
After drawing images or shapes on the canvas, I used a windows to cover my drawing. Then when I move the windows away, my image will disappear.
WHY??
Please help me??
22 years ago