Re: Java Applets to JSP Conversion
On Nov 1, 5:17 pm, Lew <l...@lewscanon.com> wrote:
The One wrote:
I am looking for a project to convert the existing JAVA
Andrew Thompson wrote:
It is 'Java', not 'JAVA'.
...
You're looking at a rewrite, not a conversion. The lifecycle and user
interaction models of applets and serlvet/JSP systems are not
fundamentally compatible with each other.
If the applet is relatively well-designed you'll be able to salvage
the core "business logic" part of the applet, but you won't be able to
reuse much, if any, of the UI code.
That said, it's odd that you've found that parts of an applet written
for 1.3 do not work under newer Java versions (1.5, 1.6). Can you
elaborate a bit on that?
The One wrote:
I thought there might be some work around for this conversion. Let me
know if anybody has some sort of tutorial or process that can explain
the process a bit. Certainly it depends on current implementation but
still some generic version of the process would be a good way to
start.
There is none that I've encountered. You will note that Andrew pointed out that:
^^^^^^
The lifecycle and user interaction models of applets and serlvet/JSP systems are not
fundamentally compatible with each other.
....
As Andrew pointed out:
^^^^^^
You're looking at a rewrite, not a conversion.
Oi! :)
We could help more if you answered our questions.
Let's summarize:
- Going from applet to servlet is not a "conversion", it's a rewrite.
- Applets run just in a JVM, within a browser. Servlets run in an application
server.
- Java Web Start will likely solve the problems with your applets. It is a
conversion from applet to application and much less difficult than rewriting
as a servlet.
- What "part ... is not working on higher [Java] versions"?
I have one more: Have you used any server-side programming tools
before? If so, which ones? It might help explain the difference in a
clearer way and it might help us suggest a useful path.