×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

getting my admin to support JSP/servlets

getting my admin to support JSP/servlets

getting my admin to support JSP/servlets

(OP)
Like most colleges I suppose, my college gives me free space for a website. Because I'm a computer science major who's doing a lot of programming and web design/development, I'm trying to squeeze as much as I can out of this. So currently, I can write CGI scripts (Perl) and run database queries on my own personal database (mySQL). But they don't support servlets... and because my Java prowess far outmatches that of my Perl, I'd really prefer doing JSP over Perl scripts, even though I have more experience with Perl (only because I have yet to write one JSP because I don't have a server that offers it). So my mission is to convince my admin to allow servlets so I can write some JSP stuff. And your mission is to come up with good things to tell my admin :o) Here's our conversation so far...

"We don't currently have any plans to implement servlets. Personally, I think they're way too big a security hole to let students execute whatever they want on the servers. Even as it is, running scripts can be kind of scary, and I'm looking at installing something like cgi-wrappers to make sure malicious users can't do terrible things to the system via scripts. (Not that they can't anyway, just from the shell, but this would make me a bit less nervous.)"


> Maybe I'm unclear, what are the different risks for Perl CGI scripts and servlets?

"They're actually pretty similar. But we support perl already, and Java has problems of its own (like eating CPU like there's no tomorrow...)."

===============

Now, from what I understand, Java used to be a memory hog, but has since come to run very smoothly (and can even run faster than C/C++ at times) due to its automatic garbage collection. I know CGI can be very slow because each query is a seperate hit to the server... I recall that being different for something like ASP/JSP, but I'm not sure. Is JSP more efficient in that way? If so, please let me know, I need ammo :o)

Also... Java's security has improved greatly, especially from Java 1.1 to Java 1.2. But is it more secure than a Perl script? Please, give me something to tell my admin :o)

Please forgive the double post, this is going to both the Java and JSP forums... thanks again.

Liam Morley
lmorley@wpi.edu
] :: imotic :: website :: [
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."

RE: getting my admin to support JSP/servlets

JSP's can take forever to compile (if done on the fly) some during development several can bring the system down. But once complied and loaded into memory they are extremly fast.

RE: getting my admin to support JSP/servlets

(OP)
well can I compile it without having to compile it on the server? Can I test it on my own machine, simulating a server environment, and avoid taking the system down?

Liam Morley
lmorley@wpi.edu
] :: imotic :: website :: [
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."

RE: getting my admin to support JSP/servlets

You can compile and test JSP's and servlets on you own machine, (using the tool provided with the JSWDK or wit hsomething like JRun) but the server will have to compile them on its own before they can be served to the rest of the world.

RE: getting my admin to support JSP/servlets

(OP)
so moving the classfiles over physically wouldn't work? What is it about the local server environment that the classfiles need to be aware of, and why do they specifically need to know?

Liam Morley
lmorley@wpi.edu
] :: imotic :: website :: [
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."

RE: getting my admin to support JSP/servlets

Instead of using JSP, you could use Servlet and therefore insure that they are precompiled.  JSP compile into servlets anyways and if you are going to be using Java to take the place of perl than there is a good chance Servlets would be the more likely choice.  The main reason, I see, to use JSP over Servlets is when the majority of the HTML on the page remains static, other than that servlets tend to be a more logical choice.

Wushutwist

RE: getting my admin to support JSP/servlets

Liam,

> What is it about the local server environment that the classfiles need
> to be aware of, and why do they specifically need to know?

One reason is that the web server uses temporary space (folders/files) to maintain the compiled servlet byte code. Therefore it needs to perform path mapping etc. to get everything to work right if you use relative paths in any of your resulting HTML.

Developing Servlets as opposed to using a JSP engine is a real drag, but that sure would let you get going if Servlets are already supported in your environment.

"But, that's just my opinion... I could be wrong".
-pete

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close