Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Serving/Running a JSP Site from a CD-ROM

Hi, may I know if there are any software, documentations which enables me to run a JSP site from a CD-ROM? The reason I'm doing so is because I have an online CBT (Computer Based Training) that is coded in JSP. Rather having to create another CBT with a different laguage for the CD hardcopy, I was wondering if there are any software which enables me to run my site on a cd. It would make maintenance much easier too. Thanks in advance.
[442 byte] By [invaz] at [2007-11-11 7:18:58]
# 1 Re: Serving/Running a JSP Site from a CD-ROM
It's not possible that way.
aniseed at 2007-11-11 22:38:44 >
# 2 Re: Serving/Running a JSP Site from a CD-ROM
http://www.benjysbrain.com/misc/cdsite/

The above link has a documentation of steps to creating a JSP cd. However, is this method feasible? I may just try it out if any experienced JSP expert can take a look at it.
invaz at 2007-11-11 22:39:44 >
# 3 Re: Serving/Running a JSP Site from a CD-ROM
Interesting way of achieving it!

However, I see some problems in this.

1. Relying on the CD ROM autorun feature is not a good method. I personally prefer to turn it off.
2. If the end users require a change in the features, you will need to create a new CD. That would be a cumbersome procedure.
3. If your application is using a database, there would not be any update.
4. If the end user is having a low-end machine, starting the web server from the CD (as suggested in the link) would be time consuming.

It's worth a try for lightweight applications. :)
aniseed at 2007-11-11 22:40:42 >
# 4 Re: Serving/Running a JSP Site from a CD-ROM
Hi invaz,
I like to suggest you somethings. It's better if you can create/use one own server. Actually, I have not that much idea for Java but I know the way that we can use like that in .NET. .NET and Java is nearly the same so that I believe you can google with this keyword "Java "Custom Web Server"". I think it's simple web server written in C# for HTML. http://www.codeproject.com/csharp/mywebserver.asp.. C# and Java are very similiar so that you might get some ideas out of it.. :-)
Sync at 2007-11-11 22:41:53 >
# 5 Re: Serving/Running a JSP Site from a CD-ROM
Thanks guys so much for the tips!

aniseed: Thanks for the feedback, regarding changes, its true that I do need to burn a new cd each time there are changes. However, a requirement for my application is that it must be run from a cd and user friendly. So I guess I'll try this method.

Sync: Thanks for the suggestion, a question though, does this method work with JSP?
invaz at 2007-11-11 22:42:46 >
# 6 Re: Serving/Running a JSP Site from a CD-ROM
The articles from CodeProject is for calling HTML through localhost... For .NET, we can customize some coding of Cassini for that purpose... I think you may find some opensource Java Web Server that can translate all JSP scripts to HTML...Then, you can browser all of your JSP pages from CD-ROM through custom web server...
Sync at 2007-11-11 22:43:50 >