473,387 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Applet to Servlet to JSP communications

Hi all,

I'm still somewhat new to servlet/JSP programming, but I want to my
application to use the MVC model.

I have some simple JSP pages that dynamically open an applet that the user
uses for data entry.

The applet then opens a channel to the servlet and passes the data to the
servlet in a serialized object. I have tested this part of the
communication by having the servlet send the data back to the applet to
display.

This next step is giving me a problem. What I want to do is have the
servlet perform database searches based on the data from the applet and
forwarding the formatted results to a JSP. I'm testing this architecture
using a dummy JSP page for now.

I've tried to reconfigure the applet to NOT wait for the datastream from
the servlet, but it appears that it still is. I've place the test
software in the NetBeans IDE to get better access to debug information. I
can see the JSP page being called from the servlet, but then the applet
returns an error about the datastream header being wrong.

I need some help with this critical point. How do I get the applet to not
be waiting for communication from the servlet and let the JSP page be
displayed as expected?

Thanks, Michael


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 17 '05 #1
0 4421

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Vissu | last post by:
Dear Experts, I have a servlet that sends HTML page containing an applet down to the browser. The applet after init(), calls the servlet again to retrieve some info. How can I make sure in...
0
by: alfredo | last post by:
Hello everybody I need an advice from some guru out there. I have imagined the following scenario: I have a servlet on my server. It starts and waits for incoming requests from clients on...
0
by: SubbaRao Karanam | last post by:
When I click the Button in Applet , I want it open a Dialog asking for the excel to open/save etc... It doesnt happen why... Now it doesnt create the excel file Why.... My Applet code is...
5
by: Rowland | last post by:
Hi, I know this question has prob. been asked a million times, but I couldn't find it in the FAQ, so here goes : I'm trying to write a Java applet to call a dll that resides on the web server...
0
by: ankur | last post by:
WHEN I RUN THIS WEB APPLICATION ON Tomcat5.5.9 SERVER MY HttpChatApplet sccessfully Loaded from ChatDispatch but running on some another PC HttpChatApplet not loaded my Coad ...
3
by: meatwad | last post by:
hi, i have a python script which (among other things) generates a web page. i would like to access a postgresql database on a remote machine and display query results dynamically on this web page....
1
by: dmanojbaba | last post by:
I want a simple applet prog that has a button. On click of that button it must invoke a servlet in IE window (simple hello world program) and close this applet window. Pls send me the code for...
0
by: pekkahu | last post by:
I need to send an http request from an applet to a web server other than the one where the applet was loaded from. Sandbox prohibits doing this directly. The applet sandbox only allows connetion to...
2
by: ManidipSengupta | last post by:
Hi, a few (3) questions for the Java experts, and let me know if this is the right forum. It deals with 100% java code (reason for posting here) but manages a Web browser with Javascript. Thanks in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.