Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: CGI (Perl) vs JSP

by dash2 (Hermit)
on Mar 11, 2002 at 13:29 UTC ( [id://150879]=note: print w/replies, xml ) Need Help??


in reply to CGI (Perl) vs JSP

Which you should use is probably 80% down to what your team prefers. If you all are used to Java, then Java will be easier. OTOH, you might all just "feel like" learning something new.

Never mind how much people get paid. Start worrying about that at your age and you will be a wage slave before you are thirty.

With those sage counsels out of the way, I can tell you a bit about JSP equivalents in Perl.

  • HTML::Mason is a nifty solution for embedding perl in HTML. I've got direct experience of this. It is powerful and flexible and combines well with mod_perl.
  • HTML::Template is a simpler templating solution. It enforces better separation of code from presentation than Mason. OTOH you might not want that if you are not doing something that requires a very prettified front end.
  • Other things to look at: Template::ToolKit, EmbPerl ... anyone got any experience with these?

dave hj~

Replies are listed 'Best First'.
Re: Re: CGI (Perl) vs JSP
by drewbie (Chaplain) on Mar 11, 2002 at 20:13 UTC
    I primarily use TT in my CGI projects. It's not the fastest system, but it's fast enough and very flexible. I've also used HTML::Template, but switched to TT w/ the next release of my project.

    My reason was that I (the programmer) had to do too much work to get the data in the correct format H:T required so the HTML guys could do their thing. With H:T I had to do all kinds of massaging because the syntax is very simple (by design). With TT, I just throw data structures at the template folks and they can use it how they want since TT can parse all kinds of data structures.

    Just my $.02.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://150879]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found