Win a copy of The Career Toolkit this week in the Jobs Discussion forum!

Waldle Cai

Ranch Hand
+ Follow
since Aug 16, 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 Waldle Cai

Hi there,
I need to implement a proxy server that accepts incoming HTTP request, modifies the header and then forwards it to destination server. The difficulty I'm facing is that the proxy server must not modify the IP of the incoming request packets, such that destination server sees the requests are coming from the client machine.
Any idea how to do this? Thanks a lot in advance.
Regards
Waldle
Hi all,
I scored just 76 for the JavaRanch Mock exam. Wondering if I'm ready for the real exam. thanks for your advice in advance.
Regards
Waldle
When I tried to invoke a EJB on one Weblogic Server from a Web App on another Weblogic server, exception java.rmi.MarshalException occurred. But when invoke the same EJB from an standlone Java App, it works fine.
Any idea what could be the reason? Is there any special setting on Weblogic Server in order to invoke remote EJB from a Web App?
Thanks & Regards
Waldle
When I tried to invoke a EJB on one Weblogic Server from a Web App on another Weblogic server, exception java.rmi.MarshalException occurred. But when invoke the same EJB from an standlone Java App, it works fine.
Any idea what could be the reason? Is there any special setting on Weblogic Server in order to invoke remote EJB from a Web App?
Thanks & Regards
Waldle
17 years ago
Hi,
I can't get the Validator work. Here is what I did:
1. public class SecurityForm extends org.apache.struts.validator.ValidatorForm {
.....
}
2. config struts-config.xml accordingly.(set validate to 'true', 'securityForm' as form bean name etc)
3. config validation.xml as following:
<formset>
<form name="securityForm">
<field
property="userID"
depends="required">
<arg0 key="logon.username"/>
</field>
</form>
</formset>
4. no change on validator-rules.xml
5. add property for 'logon.username' in applicaiton properties file.
But when I sumbit the form, I got '500 Internal Server' error, but there is no error message from the web server log. Any body has any idea?
Thanks in advance
Waldle
18 years ago
hi all,
I got 84% for JavaRanch's Sun Certified Web Component Developer Mock Exam. Just wondering if I'm ready for the real exam? Thanks for your advice.
Regards
Waldle
Hi William,
Just want to confirm the following steps are correct:
1. grab the http headers from app A and modify them.
2. make a http connection to app B.
3. grab the response headers and content body from app B and put them to the response, which will be sent back to app A.
Is there anything else(apart from headers and body) that I miss out? thanks a lot.
Regards
Waldle
18 years ago
Hi all,
I'm trying to integrate two web apps A and B. what I need to do is put a servlet between them and the servlet needs to modify http request headers(other info intact) coming from app A and forwards it to app B. But I can't find any Java Sevlet API that allows me to modify the http request header. Can any expert out there give me some idea? thanks a lot.
Regards
Waldle
18 years ago
By "Plain Text", I mean all html tags are stripped out. thanks.
18 years ago
Hi all,
For some older Web Servers that conform only Servlet Spec 2.2, the Filter feature proposed in Spec 2.3 is not available. Under this circumstance how can I implement the filtering function? Any idea? thanks.
Regards
Waldle
18 years ago
Is there any free java library or sample code that can convert html to plain text? thanks a lot.
Regards
Waldle
18 years ago
Hi all,
Assuming I am deploying an enterprise application, which is basically a web app making use of EJBs. Normally I need to jar the EJBs into xx.jar and the web app into xx.war, then jar the xx.jar and xx.war into xx.ear. But I found it troublesome during development.
Is there any solution to this so that I can simply put all compiled java files into a directory, as long as the directory conforms certain structure. What should the directory structure be like?
Thanks & Regards
Waldle
18 years ago
Hi all,
Under what circumstances, a servlet can make use of a EJB's local interface? Do they have to be deployed within the same web application? or can be deployed seperately?
thanks.
Hi Vijay,
RUP is adopted for my project. The client requested that we delivered all major artifacts, one of which is Use Case Model. Off course the Use Case Diagram is also for our designer team's reference. Pls give your comment.
Thanks & Regards
Waldle
Hi all,
I need to transport UTF-8 message transparently as follows:
1. take a UTF-8 document (say a MIME doc)
2. convert it to a stream
3. feed it to some JAVA interface
4. and spit it out to another component
The should be the same UTF-8 input doc.
What we found is that as conversion takes place and message fed to
JAVA, the message is corrupted. Probably due to some characters which are 3-byte long in UTF-8.
Thanks
Waldle