Paul Yen

Greenhorn
+ Follow
since Feb 08, 2004
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 Paul Yen

I tried the tutorial in objectlearn. http://www.objectlearn.com/support/docs/introduction.jsp
I used the Lomboz + Eclipse + Resin. When I tried to do the client testing, I got an error which is "no /hessian/ found" . If I removed the "/hessian/" from the url provider. It throw an exception and stop the process. The exception is unknow code:m.

Any one has tried that tutorial before, and completed it. Or anyone has any idea. I would appreciate that.

Thanks a lot.
13 years ago
That is great!! I have more time work on it. Thanks a lot.
Hi All,
Does anyone know that if I can use Tomcat for servlet/jsp container and J2EE RI for EJB container?? I tried and failed. So do I really need other EJB container like Jboss and work with Tomcat 4.1??
Thanks for all your help!!
14 years ago
When I read HFEJB book, it only throws exception in Home interface but not in the bean class for create() method. I download the example code from the website of HFEJB. In that CustomerBean code, I saw it declares throw CreateException in ejbCreate() method. I just confused about this. Is this needed or not?? Cuz when I deploy it without put that exception in ejbCreate(), it failed. With it, I can deploy it without any problem. Any one has experience on this?
Thanks.
Thats fantastic. Thanks Kathy, I got my first EJB bean running. World is so beautiful!!
After 21 days I got SCJP. I decided go for SCWCD and I passed it today with 90%. Many thanks to javaranchers.
Special thanks to:
1. SCWCD study kit by Hanumanth Deshmukh and Jignesh Malavia
2. JavaRanch's own SCWCD Mock Exam
3. Other Mock Exams
Whizlabs SCWCD Exam Simulator
EnthuWare's JWebPlus Commerical Exam
Anand Chawla's Mock Exam
Friends, study hard and do all free mock exams. You can pass it without any problem.
14 years ago
I bought the exam two weeks ago and registered yesterday, Feb 28, 2004.
Maybe you can try that link first and contact the sun if necessary.
Good Luck
Hi Adilson,
I don't know why you have that problem. I just registered the exam and made an appointment with my test center online. So I think you can ask Sun office to know what happened. The exam Voucher is effective for one year.

Paul
Hi Leandro,
If you use dispatcher, it will forward to the b.jsp page first then include the a.jsp page. Therefore the result is different from doing <jsp:include>.

Paul
Hi Michael,
In SCWCD Exam Study Kit, it mentions that if you omit the braces might cause an error at compile time or an undesired behavior at runtime.
Nandini,
I think the reason might be when you try to use session.getAttribute( "theName" )to display the value. You have to cast it to a String, because seesion.getAttribute returns a Object not a String. Even the toString() inside the object will not return a value for the object, it will only return a reference to it which is null. That's why you get a null value. Try to do this (String)session.getAttribute. It will work. If I am wrong, please let me know. By the way, the default value of session is set to true for JSP page.
Regards,
Paul
[ February 19, 2004: Message edited by: Paul Yen ]
[ February 19, 2004: Message edited by: Paul Yen ]
Recently, I was doing the example on chapter 9 in SCWCD Exam Study Kit book. I tried to put security requirements on web.xml and run the program. Only the first time, it run exactly the result the same as book. If I tried to refresh and run again, it told me that "Access to the requested resource has been denied". It will work properly again only if I shutdown the server and turn on again. I use Java TM Web Services Developer Pack 1.3. Therefore I am so counfused about this, is this a secure way to protect the servlet??
The below is my code on web.xml and html page.
XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>SecureServlet</servlet-name>
<servlet-class>SecureServlet</servlet-class>
</servlet>
<security-constraint>
<web-resource-collection>
<web-resource-name>declarative security test</web-resource-name>
<url-pattern>/servlet/SecureServlet</url-pattern>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>supervisor</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/formlogin.html</form-login-page>
<form-error-page>/formerror.html</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>supervisor</role-name>
</security-role>
</web-app>
HTML:
<form method="POST" action="servlet/SecureServlet">
<input type="text" name="username">
<input type="submit" value="OK">
</form>
You can make a call to SunMicrosystem or email to SunCert@thomson.com. They will fix the problem for you. I have that problem, too. And it is all okay now.
14 years ago