Win a copy of Java Challengers this week in the Java in General forum!

Michael Deng

Greenhorn
+ Follow
since Dec 05, 2000
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 Michael Deng

Two ways:
1. If you don't have an IDE, add some <%System.out.println();%>.
2. If you have an IDE.
In Tomcat, the system compiles jsp into $tomcat_home$/work/your_project directory. Including this directory into your IDE source directory. Then, you can set breakpoint in your IDE.
18 years ago
JSP
Did you set the charset of ChineseCharacters? I guess you should use the same charset in the applet and jsp.
You can get more info from:
http://www.jguru.com/faq/printablefaq.jsp?topic=I18N
18 years ago
JSP
Thanks a lot for your guys' reply.
Do you know where can I download modgzip? Is it free?
I tried to search it in google, but, it seems I counldn't download it anymore.
I have another question, if my jsps contain lots of gif, will modgzip put all the images in one zip file at the same time?
Cheers!
Michael
18 years ago
JSP
Hi All,
In servlet, we can compress the output to speed up the web page loading.
In JSP, how can we do this?
Thanks!
Michael Deng

Example in Servlets:
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
...
try {
GZIPOutputStream gzos =
new GZIPOutputStream(response.getOutputStream());
gzos.write(sb.toString().getBytes());
gzos.close();
} catch(IOException ie) {
// handle the error here
...
}
...
} // end doGet
18 years ago
JSP
How to do it in a separate Thread?
Thanks!
Michael
18 years ago
Hi Dean,
You can use exec() to run dos commands.
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps_p.html
Good luck!
Michael
18 years ago
Hi everyone,
Here is my code after I click place order.

//step 1, pre-process an order
order.PreProcess();//this step takes 1 second.
//step 2, send order to ERP;
order.SendToErp;//this step takes 15 seconds.
//step 3, display JSP
CallJsp();//this step takes 2 seconds.
As you can see, after I click the submit button, it will take me around 20 seconds to display the next page.
My question is: how to move step 2 into the background, so, step 3 don't need to wait the return of step 2.
thanks,
Michael
[ November 20, 2002: Message edited by: Michael Deng ]
18 years ago
I do not think SCJD is necessay for you.
I arrived Montreal from Beijing three months ago, now, I work for a telecom company. Job is very hard to get in Canada, I have several friends who are SCJP and SCJD in Toronto, but all of them are jobless. Believe me, their SCJD/SCJP are the real one-- do not depend on braindump.
You can see, very few developers in Canada know the difference between SCJP and SCJD. For team leaders in Canada, I do not think they know what is SCJP.
If you want to come Canada in the coming future, try to get some hand on project experiences on Weblogic and EJB.
20 years ago
In RMI, I need to create:
1) a interface which extends java.rmi.Remote
2) a class which implement this interface and extends
UnicastRemoteObject
But, where can I extends Data class at FBN project? or I need to copy and paste the codes from Data.java to the implemention class?
Thanks
Michael
What is the difference between:
public void aMethod(){
synchronized(aObject){
//code
aObject.wait();
//code
}
}
and
public synchronized void aMethod(){
//code
aObject.wait();
//code
}

Thanks for your help!
Michael
Hello Subha Ambigapathy
Would you please tell me what is:
4. Create a Data Interface
5. Create the Implementation of Interface
and how long it will take for each step?
Thanks for your help.
1) what is your modules and finish order in your FBN project?
2) How many hours it take in each modules?
Thanks