File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Filter and applet communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Filter and applet communication" Watch "Filter and applet communication" New topic

Filter and applet communication

Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
After long and frustrating retries to build working servlet front controller that will answer any user request , I managed to build filter servlet using tomcat's filter mapping
Its working great!
I am able to catch every user request!
My problem is that I am unable to communicate with user applets using streams , Example Filter:

Anyone used this kind of communication?
Please feel free and post anything that can assist me .(links , examples ,etc)
Thank you all !
[ August 11, 2003: Message edited by: sharon pl ]
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Check out chapter 17

"JavaRanch, where the deer and the Certified play" - David O'Meara
Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
hi Cindy
I downloaded the 17 chapter pdf and read it,
I am able to communicate between applet and normal servlet using GET POST and byte streams,
My problem start when I am using j2ee Intercepting Filter pattern can be found here:
I am unable to stream data between the applet and my filter servlet,
This filter extending the Filter class instead of the: HttpStrvlet class
And receiving ServletRequest and ServletResponse as parameters instead of:
HttpServletRequest and HttpServletResponse in normal servlet.

Thank you ,
Tony Alicea

Joined: Jan 30, 2000
Posts: 3226
Can't wait for 2nd edition:

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
I agree. Here's the link:
subject: Filter and applet communication
It's not a secret anymore!