What is a good template engine?

I want your suggestions on good template engine. My project is almost done and ready to go to production in few weeks, I want something which is easy to learn yet good enough.
Following are my specific requirements:
1) We have like 150 jsps (not too many), but I want a template engine which lets me add a header, footer and other links easily to all these pages to start with.
2) Later on I want a rule based template engine which changes the layout of page based on rules. For example UI for a role based web site, like Admin sees different tabs on the menu bar than a normal user.
Thanks for your help

For what you are suggesting, I'd look at tiles.
If you were wanting to do something more sophisticated and data drive things, then maybe you would look at Freemarker or Velocity. Not much t choose between these.

Similar Messages

  • What if JSP were a template engine?

    What would you think if JSP had been implemented as a template engine? What if it didn't need a compiler? What if it didn't allow scriptlets? What if it wasn't so dependent on the server and JDK implementations? What if it didn't waste disk space? What if it came with standard conditional and iteration tags? What if Java code wasn't required? What if the error messages didn't suck? :-)
    Sun could have done it. Instead they copied Microsoft's bad practices in order to compete.
    What would you think? I've put together an example of how JSP could have been implemented. I've called it Axle and I'm looking to make it a free, open-source project if anyone is interested.
    Check out the following page for more info. Try downloading the 'bookstore' example. Let me know what you think.
    http://www.ibatis.com/axle/axle.html
    Best regards,
    Clinton.

    I believe there are a number of jsp based template
    engines available on jakarta.apache.org as well. Well, yes and no. There are JSP custom tag libraries (Struts) and there are template engines (Velocity). Axle takes the best of both of these worlds. It allows developers to leverage their JSP skills, while working with the benefits of a template engine.
    It will still suck to get a java server working alongside
    a normal http server.Most of the big name web servers already support Java and JSP. iPlanet Web Server 6, Apache (Tomcat, JServ). In addition, you could always buy a completely separate App server like JRun or WebLogic.
    Cheers,
    Clinton

  • Looking for clip art pictures for birthday invitation. What is a good spot for that?

    Looking for clip art pictures for Birthday invitations. What is a good spot to find these or how do I acess this on my mac.  New to mac.
    Thanks

    Do a search for clip art using your favorite search engine - Google or Bing are good places to start. 

  • What are so good setting to make vocals sound good on garageband?

    i was wondering what were some good setting on garageband to help make my vocals sound good?

    This is a quick-and-dirty setup for vocals.
    Two disclaimers:
    1. Even a "perfect" mix for one context will be the wrong mix for another. This is *only* a workhorse configuration and no more. Edit it to taste.
    2. Other people may give you a "basic" template to work with which doesn't resemble this one at all, and both can be good. There's no one way to do this, so be open to all input.
    - First, get a new track going. Make sure the inputs are set as they should be and the monitor is on.
    - Go to the track's "edit" tab.
    - Set the noise gate at an appropriate level. This might take a little bit of trial and error, as setting it too low (obviously) lets in hiss and setting it too high will block out quiet dynamics and the tail end of long notes. Experiment with it, as everyone will be different.
    - Turn on Compressor. Set Threshold for max, set ratio for max, set attack all the way to the left (fast) and adjust gain to taste.
    - Turn on Visual EQ. Use the high-mid band to add a little bump (about +5dB in the 2500Hz range). Then use the treble band to add a bit of "air" (about +5dB in the 12000Hz range. Depending on how it sounds you may want to play with the low-mid and bass bands to taste.
    I find this is good for vocals that are buried in full-band arrangements (add reverb, echo and short reflection reverb to taste) and also for podcasts.
    Hope this is helpful.

  • What are the good ways to send a big file( 20MB-100MB) file to my friend?

    what are the good ways to send a big file( 20MB-100MB) file to my friend?
    Thanks in advance

    if this is with the internet, iChat is probly your best bet,
    but if you just want a transfer,
    plug a firewire into both of your computers, shutdown one of them, hold "T" and press the power button, the restarted computer should pop up as an external drive on the second computer.

  • What's a good external keyboard for MBP

    Given that the MBP keyboard is so inadequate and Apple is seemingly too stubborn to give us a good one, an external keyboard is mandatory. However, I'm not sure what's good in the Apple world. There is, of course, the Apple keyboards and I'm going to take a look, but there are also some from Logitech and others. Does anyone have any suggestions on good ones? I purchased the iHome IH-K236LS, but just looking at it and feeling it and seeing that it requires a power cord is not making me feel like it's a good purchase. Plus the mouse feels incredibly cheap. Like something from a kids toy. And it requires two of the three USB ports (but does add two on the keyboard). Anyway, I'm thinking I'd better check into other possibilities, so any suggestions would be appreciated.

    People have such different views of what makes a "good" keyboard, GTGeek, that it is almost impossible to make suggestions without getting a better idea of what your requirements are.
    I grew up using manual typrewiters (Olivetti Lettera 32's etc), migrated to IBM and Brother electrics, and then nearly 30 years of different computer and data terminal keyboards.
    In the early years, perhaps not surprisingly, the closer a computer got to approximating that of an IBM golfball the happier I was. Few computer keyboards seemed to have the "feel" or travel that I was used to. Despite this i gradually found I adapted to almost all of them.
    I still have many of my older computers and I often get a bit of a shock when I use them these days! My favourite in days gone by on a portable was on the NEC8021a, but today when I use it the keys seem too sculpted and to have too much travel (both features I once really liked about it!)
    The keyboards on modern MBPs , of course, are at the opposite extreme - flat keys and little travel. The same goes for Apple's own current external keyboards. I now use them all the time, but if you don't like the keyboard on a current MBP I doubt you will want to yourself. The feel is very similar.
    The older white Apple Bluetooth keyboards had more travel , and more sculpting and a nice feeling of "solidity", but can only be found second hand these days.
    I personally like the Apple Pro wired keyboards in days gone by, but, as with the white bluetooth they are now history.
    I have two Logitech wireless and and a Microsoft USB keyboard tucked away in the draw (together with just about every keyboard Apple have ever made) . The Logitech and MS ones feel very "plasticky" compared to Apple offerings, but, as I said, I have simply adapted to the latter over time. You might find them fine if that is what you are used to.
    On Mac notebooks my favourites in the past were those on the PB1400, the PB 12 and the earlier models of the MBP, but I've adapted to the current MBP ones now as well.
    All of which adds up to the fact that the only way to decide something like this is to test them yourself, and, perhaps, to be prepared for a period of adjustment whatever you get before you can really judge it. Familiarity breeds contempt, they say, but in the case of keyboards it has always seemed quite the opposite to me. What you have been using most in recent times always seems to be the best after a while!
    Cheers
    Rod

  • What's a good book for getting started?

    I've been doing web design in HTML and ColdFusion for almost 3 years. It's clear that ColdFusion is on it's way out and I need to learn J2EE/Java/JSP etc. I have a few questions:
    Java is a term I've heard associated with C++ and other types of programming as well as Web design. Are the Java/C++ Java and the Web Java basically the same type of language? Is the Web Java and JavaScript the same thing? I'm very confused!
    What is a good book for getting these types of questions answered and getting started in J2EE/Java/JSP? There are quite a few variations of script languages out there and I want to make sure I learn the right stuff, ie the stuff that employers are going to be needing.
    Thanks!

    Here is a free online version of a good book:
    http://pdf.coreservlets.com/Core-Servlets-and-JSP.pdf
    Print it off or read from the screen. Otherwise, there are several good Java books out there. What I would do is go to the bookstore and thumb through a few books. Depending on what type of book you want (example based or theory) find the books that you think would satisfy your learning style. Write down the names and authors, go home and buy them used online at Amazon for tremendous discounts. This way you can buy several versus just one.

  • What's a good level to record voiceover?

    Hi,
    I'm completely new to audio production, and need to record a voiceover. I've got my mic hooked up, and am getting a level of some sort. What I'm wondering is, what's a good level? I mean, I understand that the closer to 0 dB I can get, the better the quality of the sound. But, in practical terms, as one's voice fluctuates, what "general" level should I shoot for? How much level is too little?
    It seems that subtle movements of my head in relation to the microphone, or a little extra "energy", and I get clipped. Can anyone offer any suggestions/advice?
    Thanks,
    Vic

    Hi Vixter101,
    To add a limiter to the selected track click on the 'i' button on bottom right of GB.
    The Info Pane opens. Here you can add/Edit the effects on the Real Instrument Track. You should find the 'AUPeakLimiter' is what you are looking for.
    If you need extra help post here again. There are some useful videos by Apple.
    http://www.apple.com/ilife/tutorials/#garageband
    I personally recommend the macprovideo guys for video tutorials. The Garageband 08 and 09 tutorials are comprehensive and easy to follow.
    http://www.macprovideo.com/tutorials/iLife
    JG

  • What's a good file recovery program for a MacBook Pro running IS 10.7.5?

    Hey gang - I ordered a miniStack 4TB external hard drive from OWC a few months ago during a long overseas trip. I finally unwrapped it and started dumping data to the drive from the 1TB drives (also from OWC) I used via my MacBook Pro. I connected the 4TB to the laptop with FW800.
    I came back from the gym (gone about two hours) and saw a "the drive wasn't disconnected properly..." window. There was a clicking noise coming from the drive, which means mechanical failure.
    I went into Disk Utility and the drive is there but it's grayed out. I changed cables to USB 3.0. Unplugged the drive. Shut down the laptop. Then went through the start up and nadda.
    So before I run off a disk repair place in town and spend $1000, what's a good hard drive recovery program to use to pull the data? I only dumped 1.5TBs until the 4TB and have other drives to dump that data too if I need to.
    Thanks.
    Cheers,
    Bill.

    General File Recovery
    If you stop using the drive it's possible to recover deleted files that have not been overwritten by using recovery software such as Data Rescue II, File Salvage or TechTool Pro.  Each of the preceding come on bootable CDs to enable usage without risk of writing more data to the hard drive.  Two free alternatives are Disk Drill and TestDisk.  Look for them and demos at MacUpdate or CNET Downloads. Recovery software usually provide trial versions that enable you to determine if the software would help before actually paying for it. Beyond this or if the drive has completely failed, then you would need to send the drive to a recovery service, such as Data Recovery by DriveSavers, which is very expensive.
    The longer the hard drive remains in use and data are written to it, the greater the risk your deleted files will be overwritten.
    Also visit The XLab FAQs and read the FAQ on Data Recovery.

  • What's a good app to use to put two photos on a single page like Windows Paint?

    I have a OSX Lion with an iPhoto app. I would like to put two photos on a single page like Windows Paint. What's a good app for this? Is there a Windows Paint app for Mac or something similar?

    You can print two photos on a single page with iPhoto, you can put two photos on a single page with Pages, Word or any word processor. Or are you trying to edit two photos together?
    In order of price here are some suggestions:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate. You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.

  • What's a good way to manage custom schema for DS  5.1?

    What's a good way to manage custom schema?
    Custom Schema for Object Class and Attributes
    The reason I ask this is because there might be a need in the future where I need to export those custome schema into different branded directory server. I just want to make this as painless as possible.
    Right now, I thought of 2 options
    1) Create my own LDIF file with my custom attributes and object classes, so if one day I need to export to another directory server, I can just copy that custom created LDIF file over. (Will this work?)
    2) Create a JAVA application using JNDI. What this Java App. will do is read through a XML file and create those object classes and attributes on-the-fly. (of course, the XML structure will be predefined by me, so that my Java App. will be able to parse through it correctly. Will this work?)
    Anymore suggestion? I would want to hear more advices and suggestions.
    Also, I assume that will work even with replication. All I need to update is the master server, and the slaves will replicate automatically.
    Thank you very much! :)

    Demo: I'm using the nul character to represent the end of the word, so that the data structure can represent that "hell" and "hello" are both in the vocabulary:
    import java.util.*;
    class Node {
        private SortedMap<Character, Node> children = new TreeMap<Character, Node>();
        //0 <= index <= word.length()
        private void add(String word, int index) {
            if (index == word.length()) {
                children.put(Character.valueOf('\u0000'), null);
            } else {
                char ch = word.charAt(index);
                Node child = children.get(ch);
                if (child == null) {
                    children.put(ch, child = new Node());
                child.add(word, index+1);
        public void add(String word) {
            if (word == null || word.length()==0)
                throw new IllegalArgumentException();
            add(word, 0);
        public String toString() {
            return children.toString();
    public class Example {
        public static void main(String[] args) throws Exception {
            Node root = new Node();
            root.add("hello");
            root.add("how");
            root.add("who");
            root.add("hell");
            System.out.println(root.toString());
    }

  • What's a good video app to use? I have iPhoto and iMovie, but they won't let me email a video. I also want to be able to make a dvd of my home movies. Any suggestions?

    What's a good video app to use? I have iPhoto and iMovie, but it these wont let me do certain things, such as email a video. I also want to be able to make a dvd of my home movies. Any suggestions?

    Unless you want a new computer, forget about AVCHD. It requires too much muscle to edit comfortably on anything but the fastest computer.
    What camera is nice, depends on your budget. Formats that are easy to edit are HDV, DVCProHD (P2) and XDCAM. In the consumer range you could look at the Canon HV40 or XH-A1s, in the prosumer range look at the Panasonic AG-HPX170, Canon XH-H1s, JVC GY-ND250 or Sony HVR Z5 or Z7 and all Sony XDCAM cameras, especially the EX1 and EX3. In the professional range look at the Sony PDW-F355 or upward.

  • What's a good way to do a thread dump into a separate file

    What is a good way to do a thread dump automatically into a separate file.
    Example. I run a script to do the thread dump, but unfortunetly, it goes into my stdout log file with the rest of my weblogic errors.
    Any ideas? I want it in a separate file when I run my script?

    Do a Google search on "Drobo S" "benchmark."  I don't have a Drobo S, only the regular Drobo.  But here's a guy who tested one on Windows:
    http://mansurovs.com/drobo-s-review-usb-3-0-2nd-generation
    This one has it a bit faster:
    http://the-gadgeteer.com/2011/12/31/drobo-s-storage-array-review/
    Do read up on a few reviews of it, and be absolutely clear that interface speed (i.e. eSATA versus Firewire versus Thunderbolt) is NOT the same as the performance of the system.  The Drobo cannot keep up with any interfaces... at least the Drobo and the Drobo S cannot.
    I am not using the FS model which is a NAS.  I am using the plain old "Drobo" which is slower than the Drobo S, but that's not to say that the Drobo S is fast, because it is not.
    The Drobo in theory is really attractive: Dead simple to manage, can mix and match drive sizes, offers you some data protection, etc.  However do note that protected storage is not, in and of itself, a backup.  You need other backups besides just the data on the Drobo.  And, because it's so slow, it's really not a great fit for photo storage.  See this review from a guy who used to think the Drobo was great for that and then appended his review:
    http://www.stuckincustoms.com/drobo-review/
    To be as clear as possible, IMO the BEST backup strategy with something like Aperture (so long as your managed Aperture library is of a manageable size, like < 800 GB), is to get a few small portable Firewire 800 drives and keep vaults on each one.  They are great because they are easy to use, to have with you, are bus powered, and you WILL offsite them.

  • What is a good compatible graphics card

    have a compaq presario sr1303wm from 2004,2005. Running xp home with onboard 64 meg video. 2.0 processor and over 1 gig. of ram. System # is PP150AA. what is a good video or graphics card for this unit? 

    Any AGP graphics card will work. You can find some for around $40 they will be better than what you have, but if you're looking to play games you probbaly won't be happy with the performance. I personally would save up and get a new system. Something with an AMD APU will be worlds better than what you have and can be had for around $400

  • What is a good strategy for keeping the OEM GRID up and running?

    Hi,
    What is a good strategy for keeping OEM GRID up and running? Currently, we have grid installed on one linux64bit box with 4 cpus and 8 gigs of RAM, oms 10204, repdb 10204, agent 10204. In addition to using this oem grid for notifications and performance monitring, we are also using this oem grid for scheduling over 700 jobs running over 30 targets.
    What is a good strategy to have to backup the grid so that when this box goes down, we can restore and then recover the grid? Please lead to white papers or documentations. Thank you.

    Take a look at Oracle Maximum Availability Architecture, a set of architectural recommendation on setting Oracle software up for high availability.
    The information is available on this page:
    http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm
    Look under HA Best Practices for Grid Control.
    Chung Wu
    [Application Management Blog|http://www.appmanagementblog.com/]

Maybe you are looking for

  • HTTP Headers - enabling caching and compression with the portal?

    Has anyone configured their web server (IIS or Apache) or use a commercial product to flawlessly cache and compress all content generated by the portal? Compression and caching is critical for making our portal based applictions work for overseas use

  • Display Problem in CDE  (Sun Solarish 8 Intel Edition )

    Hello friends , I am using Sun Solarish Intel Edition on my pc . I am using Windows XP, Red Hat Linux and Solarish on a single pc ( Dual Boot) . My Probems are :- ( 1) . In Windows and Linux it will shome me perfect Diaply (256 color ) 24 bit but in

  • How using ABAP function in fox formula ?

    Hello, I want to launch standard function :"RSW_CURRENCY_TRANSLATION" by Fox formula. I declare this function in SAP Table :rsplf_fdir, and I can call this function by fox, with all parameters. But when I want to use it, I've a problem with the first

  • Vendor Std Report - Recipient Type

    Hi all, Is the any standard report for capturing the Recipient Type of Vendors ie Company (CO) & Others (OT) . Kindly Please Guide Me. Regards, R.Ramakrishnaraj

  • Indirect role assignment- PO Release strategy  roles

    Hello,           I am in the midst of creating PO release strategy roles for implementation and trying to figure out if indirect role assignment / position based assignment would be a good idea for these roles. The reason- there are 35 release codes.