Hi,

My enquiry involves how jsp handles graphics updates


I refer to the technology prior to .NET when ActiveX controls were embedded in web pages. The control (in the form of a dll) was typically downloaded to the browser and executed on that browser.

I believe a similar situation exists in Java where a java bean is embedded into a web page.

What is the situation in jsp. i suspect that much runs on the server side of jsp however I trust that the browser image would not have to be updated from the server when say a graphic image (say like a globe turning, man running, flame burning............) was being displayed. The wait time from the server to brower update could cause flicker in the update process??

Q1. How is this done in jsp?

Q2. How is it done in asp .net?

Q3. In the point about java and beans does that mean that the java runtime environment needs to exist on the browser???

Any feedback would be appreciated.

I am trying to understand how jsp and asp .net both handle the display of animation/image movement on the browser.

Thanks


Andrew

Recommended Answers

All 3 Replies

You could use an applet, which would be the Java equivalent of an ActiveX control executed on the client.

A better alternative for both asp and jsp is to put in an <img> tag in the generated html which contains a link to a servlet (or in the case of jsp some service running on IIS) that generates the image on the server and sends it to the client.

Thanks,

The <img> approach would involve the latency time/server delay time in the updating of the image on the brower. Could this become problematic compared to using the local microprocessor to compute and perform the update. A much smoother/quicker operation.

Any comments would be appreciated.

Andrew.

unless your server is heavily taxed it would probably hardly matter.
The clientside component would still have to call something on the server to get the data, all you'd save serverside is turning that data into an image.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.