Stephen Wei

Ranch Hand
+ Follow
since Oct 09, 2001
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 Stephen Wei

hello all,
this is very urgent, the customer is getting mad.
I can not startup my tomcat server,
I think the problem was that when I shutdown the server, it was not shutdown properly, so when I start use startup.sh.
it gives me address already in use error.
I think I killed all the ps, by useing kill -9, but still I can not start up the server.
What is the cleanest way to shutdown and start the tomcat3.3??
Please help, indeed very urgent, I do not know how to talk with my boss for now...
thanks.
17 years ago
Hello all:
Hope people do not get mad at me. I am a Java developer, but due to my work needs, now I am thinking about getting the MCSA certificate. It is a certificate about system administration, so I am not saying I am running away.
Can someone tell me a good forum or study group for MCSA/MCSE/MCP??
I think in order to be a good engineer, I need to have a well rounded skill set.
Thanks.
Hello all:
I think I may have found out what the problem is.
I did not specify the "POST" method for my form, so my form use the default "GET" method, which seems to limit the size of data to be submitted.
I will try to correct it, and test. If there is more problems, I will get back...
THanks
17 years ago
hello all.
I am encountering a strange problem, do not know what could be the cause. the user inputs some data and submits them to my mail servlet, then my mail servlet reads the input, and send out the mail. But I find that if my total size of input is greater than about 750 bytes, the server alsays returns me an error, and my servlet seems to be not able to read the input correctly.
Here is some of my rough codes, notice that I am doing code conferting, because the page contains Japanese characters.
On client side, here is my html.
<form action="../servlet/SurveyMail">
<p align="left"><font size="4"><strong>Subject:</strong></font><input
type="text" size="100" name="subject"></p>
<p align="left"><font size="4"><strong>Message:</strong></font><textarea
name="message" rows="20" cols="100"></textarea></p>
Here is some of my servlet code:
String subject = request.getParameter("subject");
subject = new String(subject.getBytes("ISO8859_1"), "JISAutoDetect");
String message = request.getParameter("message");
message = new String(message.getBytes("ISO8859_1"), "JISAutoDetect");
String fullMessage;
String to;
StringBuffer unsentList = new StringBuffer("");
int errorFlag = 0;
HttpSession session = request.getSession(true);
MailProcess mailer = new MailProcess();

try{
DbProcess dbManage = new DbProcess();
Vector vector = dbManage.getSurveyMemberEmailList();
for(int i=0; i<vector.size(); i++){
to = vector.elementAt(i).toString();
fullMessage = message + "\n\n" + "here is the link: " + surveypage;
Thread.sleep(5000); //sleep for 5 seconds;
mailer.sendMail(from, to, subject, fullMessage, mailHost, unsentList);

I am using tomcat3.3, servlet 2.2, JDK1.3, what is wrong with my code? any thing wrong with the threads?
Please comment, thanks.
17 years ago
Hi, thank you for all the clarifications.
I hate the rule of expiring the certifications, especially the version change every year. So now Microsoft changed it, I hope IBM will change it too.
cheers.
Hi, I do not quite understand this post. So does it mean that IBM expire the old version certifications, like Microsoft does?
For example, if I become a Websphere Server 4.0 specialist, if IBM pushes out 5.0, then my certificate will expire? That means I can not write it (including the version) on my resume and business card???
Can someone clarify on this?
thanks.
Hello everyone. I posted this question on the certification thread, but no one bother to answer. Since this is related to IBM JCert 3, I want to post it here and hope someone knows the answer.
Hello all
I have a question. The JCert3 says it requires solution developer + 2 tests. Does this solution developer means only the current active solution developer certificate? Can the old ones be used as well?
For example, for IBM Enterprise developer, Can people use the old VisualAge solution developer(which is not open anymore) + 2 tests to achieve it?
THanks.
17 years ago
Hello all
I have a question. The JCert3 says it requires solution developer + 2 tests. Does this solution developer means only the current active solution developer certificate? Can the old ones be used as well?
For example, for IBM Enterprise developer, Can people use the old VJ solution developer(which is not open anymore) + 2 tests to achieve it?
THanks.
hello all:
I have seen many discussions about this topic in diffrent forms, but I am just not so satisfied and I think lots of people like me need a more detailed comparisons between JCert and Sun certification path. I do not have so much time to study, so I really have to choose one path for my career.
It would be nice to compare those 2 based on the aspects of
1: Their market value
2: the time and efforts to achieve them
3: the companies you intend to work for
1: I know Sun has been traditionally famous for Java certifications, but I heard JCert,IBM is catching up? Frankly speaking, actually I think IBM JCert path appears to be very good to me, it covers awful a lot of material, and it combines with the real world product(which is important!).
And it focus on J2EE, which is more useful for our job. While Sun's certificate only covers theory, and you have to dedicate your time to do the assignment. Especially I hate that the Sun developer certificate still only covers Swing, RMI, and threads etc, why do not they make it a Servlet/JSP based assignment? I would love to go for it if so.
Any comments?
2:How long does it take to complete each level for each path?
Sun certificate requires you to do assignment, which may take lots of time. But both IBM solution developer and enterprise developer contains 2 tests, do they also take lots of time to study? does anyone know in average how long it takes to finish Sun developer, Sun Architect, IBM solution developer, IBM enterprise developer?
Any comments?
3:What company appreciate what kind of certificate?
for example, if I intend to work for IBM or BEA, do they appreciate JCert more than Sun certificate? Any one inside those big companies can comment?
Java experts please comment, I think it is important to decide a path between those 2, because many people like me are probably only smart enough to finish one path!
Thanks Rene,that is exactly what I want!
I should have read the Java API more carefully though
17 years ago
Hello all:
How do I unselect a row in a JTable? I do not want to disable the RowSelection mode though.
Does anyone have an easy solution?
Thanks
17 years ago
Hello everyone:
I am creating a JTable, for which when user clicks a cell in the first column, the whole row will be selected, when user clicks any cell in other columns, only the single cell will be selected. Can someone please sugguest me a good approach to do this?
I think that I may disable Row selection by
jTable1.setRowSelectionAllowed(false);
then use a cell renderer or listener for the first column, and enable RowSelection everytime the user chooses cell from first column. ...
I think it is not so easy to implement, can someone suggest me a clean way to solve my problem?
Thanks
17 years ago
Hello all
I am using tomcat3.3/servlet2.2/Jsp1.1, linux server
I am making some Japanese html, JSP pages, and I specify all the encoding to be "Shift-JIS" by
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=shift_jis">or
<%@ page contentType="text/html; charset=shift_jis" %>
I am using servlet to read input from request and instore them into DB. I find everything seems to be working fine if all user sessions start and end normally. But I find that if a user close the browser and leave the session unfinished, I find that the encoding seem to be changing.
When my servlet creates the first session, a ISO-8859-1 session is created, but if a user leave the session unfinished, next time it seems my servlet creates a Shift-Jis session, then all my request.getParameter() return corrupted data.
I feel confused about those international encodings. I think for Tomcat3.3, if there is no previous request, it creates a default ISO-8859-1 encoding session, but if there is a previous session of the user, tomcat uses the previous encoding. I do not understand why that if one user changes the encoding, it seems my servlet uses the encoding from then on, even to other users requests and sessions.
Here is my JSP page which causes the problem, can someone take a look? after this JSP submits to my servlet, my servlet creates a session, and use request.getParameter to retrive inputs.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<HTML lang="ja">
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<title></title>
<link rel="stylesheet" type="text/css" href="../images/manual.css">
</head>
<h4 align="center">something</h4>
<body bgcolor="#FFFFFF">
<%@ page contentType="text/html; charset=shift_jis" %>
<%@ page import="mypackage.*" %>
<%@ page import="java.util.*" %>
<%@ page session="false" %>
<%@ page errorPage="../survey/error.jsp" %>
<%
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 1);
%>
//
//
// some submit buttons and so on.

When user submits this page, it seems a ISO-8850-1 session is created, but if user close the browser and reaccess the page, a Shift-JIS session is created, then all data input will be corrupted on the server side. The worst is that all other users are affected as well, and my servlet will only create Shift-JIS session from now on, which is not what I want.
What might be wrong? is there anyone who knows internations encoding staff? Or at least can someone point me a good link for those staff?
thanks.
17 years ago
JSP
Hello all:
I am making somepages which include Japanese characters. Since the encodings are not always the same, sometimes my servlet request.getParameter( ) return me corrupted data.
I want to make all my JSP page request to have encoding ISO-8859-1, how do I specify this in JSP? Or by tomcat server.xml?
In server.xml , there is a "DecodeInterceptor" tag, the default value for useSessionEncoding is true, I want each request to have ISO-8859-1 encoding, without referring to the previous session. So should I set "DecodeInterceptor" to be false? what is the exact impact of setting it to false?
Can someone answer some of my questions above? Thanks.
17 years ago