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

Similar Messages

  • 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.

  • What is tthe role of ABAP Engine in EP server

    Hi to All,
    do any one of u let me know the role of ABAP engine in EP server! How can i make use of ABAP Engine. I know to work with J2EE Engine, but generally what we will do in ABAP Engine.
    It looks to u all as a silly question, but i am not clear of this function, so i need a detail explanation of this.
    Regards,
    Sireesha.

    Hi,
    before there was a WAS 6.20 (Web Application Server) SAP's R/3 Applications were build up on the so called R/3 Basis System. One part of the R/3 Basis was the APAP/4 Runtime. This was true until R/3 version 4.5.
    In parallel SAP started to develop a J2EE Application Server. They founded/buyed a company in Bulgaria called InQMy. You might know that the portal version EP5.0 was based on the InQMy J2EE engine.
    Since R/3 4.7 the old R/3 Basis is called "Web Application Server" (WAS 6.20). Additional to the ABAP/4 Runtime this WAS contains the former ITS (Internet Transaction Server" and the BSP's (Business Server Pages). The old ABAP/4 Runtime is now called "ABAP Stack".
    The old InQMy J2EE Server is now called "J2EE Engine" or "JAVA Stack".
    With Release 6.40 of the WAS it contains both the ABAP Stack and the JAVA Stack.
    Now to Your Question. A standarad EP installation just contains the JAVA stack of the WAS. The ABAP stack normally is not installed, because it is not used by the EP. You could install the ABAP stack in addition. But for what purposes ? Well if You would like to develop a webapplication based on BSP.
    If You are allread running an R/3 System it contains an ABAP Stack but normally no JAVA stack.
    The Java Stack of the EP Server can call the ABAP Stack of an R/3 System via RFC (remote function call).
    More confused now ?

  • Using a template engine in a portlet, possible?

    Hi there,
    When developing servlets I've always used webmacro as a template engine,
    separating the code (java) from the layout (html). With Portlets it seems
    that people put their html within the java code.
    Are there any template engine solutions available for portlets, besides
    jsp ofcourse. I'm not really familiar with jsp, and also isn't jsp doing the
    same thing, putting java code within the html?
    I read it was possible to use webmacro without a servlet container, so
    perhaps this is the way to go using it with portlets. But are there also
    any integrated solutions.
    Does anybody have any experience separating their code and layout using a
    template engine? eg webmacro, velocity
    How do other developers do this, do you use jsp, or put your html directly
    into your code?
    kind regards
    ido

    Hi Ido,
    If you can do it in a servlet, then you should be able to do it in the portlet too. You need to specify the servlet for the showpage information in your provider.xml file.
    As long as all the HTMl is getting generated upfront (at the Servlet side) then you should not have any issues.
    Let me know if you have issues doing it this way.
    thanks,
    Harsha

  • What is difference between Site template and web template

    What is difference between Site template and web template

    Both are almost same, are you referring to Site Definitions vs web template?, if so, refer to the following post
    http://blogs.msdn.com/b/vesku/archive/2011/07/22/site-definitions-vs-web-templates.aspx. 
    --Cheers

  • I have files that may have been created in various versions of Illustrator. We need to be able to open them, but all we have is CS6 suite. I have called and been told that "technicians at adobe" could perform a paid service to find out what the files were

    I have files that may have been created in various versions of Illustrator. We need to be able to open them, but all we have is CS6 suite. I have called and been told that "technicians at adobe" could perform a paid service to find out what the files were created in and get them to be useable in InDesign 6, but I'd need an email address that was registered to our software to give the help desk person. After finding the correct email address, different adobe help number people told me to come here to ask as there is no phone support. Can anyone get me to an adobe technician that can provide a price quote for finding out what created these files and for getting them converted? Thanks.

    Sorry, I understood you to say you had the whole CS6 suite, which includes Illustrator.
    As far as finding out what the files are, sometimes you can look at them in a text editor to figure this out. See below; the, Creator Tool line. Not every software package makes it this easy, though.

  • What is the STANDARD Web Template in BI 7.0?

    Hello guys,
    Do you know what is the Standard Web Template in BI 7.0?
    Today we only use Workbooks and the java is already installed.
    Do we have to do some configuration in this Web template for our first execution?
    Thank you,
    Carlos Edaurdo

    Hi,
      0ANALYSIS_PATTERN is the standard Web template for the BI Queries when executed through Web.
      We can copy this template to a Ztemplate and make the changes necessory based on project need and can be assigned
      as default  in Configuration settings .
    Thanks,
    Prakash

  • Facing problem in integrating my custom jsp with the workflow engine

    Hi,
    I am using Jdeveloper 11.1.1.6.0 for BPM 11g implementation on my Application.I have Weblogic Server 10.3 Installed and configured the domain. Also the server is up and running.
    I am trying to create workflow and wants to integrate it with my custom jsp but i am facing problem in integrating my custom jsp with the workflow engine.Can you please answer the following questions:
    1)how to link BPM human task with my custom jsp (Requester jsp).
    2)how my custom jsp data(Requester data) will be stored in workflow engine and how the same data will be visible to the next custom jsp(Reviewer jsp).
    This is urgent .Any early reply will be great help.
    Thanks in advance.
    Edited by: 990133 on Mar 24, 2013 5:31 AM

    you forgot to add the usage dependency in the DC metadata section in your DC, you have to add the XSS~utils and fpm as a used DC's as part of your DC, try to add those, if you already done that, so check where missed the adding of used webdynpro components in any of the VAC's or FC's,
    Cheer,
    Appa

  • What is the difference between J2EE Engine vs WAS in SAP

    Hello All,
    What are the differences between J2EE engine included with BW 3.0B and the WAS 6.20 ? what are the limitations of J2EE engine in terms of functionality.
    Thanks in advance
    Ravi

    Hello Nitzan,
    Thanks for the response. Just to clarify my question, There is a J2EE engine as part of BW 3.0B. What is the difference in terms of functionality of J2EE engine which comes bundled with BW 3.0B versus say WAS 6.20.
    1. The J2EE engine which comes bundled with BW 3.0B, is it a run time or a full product where a java app can be developed and deployed to integrate with BW or do you need WAS for that purpose.
    Thanks & regards
    Ravi

  • Very simple html template engine...

    Hi forum
    I need to create a very simple html templating engine. My requirements are only load a html document into an object (HTMLDocument for example?), search a couple of particular tag or string, treat the text found between these tags like a block, repeating the content all the necessary times, and replacing a special string within the text for another one.
    Here an example:
    <html>
    <title>Foo page</title>
    <body>
    <table>
    <!-- Initial special tag -->
            <tr>
                <td>{String to replace}</td>
            </tr>
    <!-- Final special tag -->
    </table>
    </body>
    </html>If i pass the html example code for the template engine with the following parameters, the result that i want is:
    Number of times to repeat the BLOCK: 3
    Text to replace de special string: Hello world
    <html>
    <title>Foo page</title>
    <body>
    <table>
            <tr>
                <td>Hello world</td>
            </tr>
            <tr>
                <td>Hello world</td>
            </tr>
            <tr>
                <td>Hello world</td>
            </tr>
    </table>
    </body>
    </html>That�s all. I search in google for something but a encountered only javascript based "applications", except the "Rhino" engine, but that is to much for mi needs.
    Well, i hope anyone can help me.... and sorry for may bad english :P...

    Here's the generated code:
    `include(~service="system", ~language="", ~theme="dm", ~name="TemplateLibraryDHTML.html")`
          `SAP_DynproLayerBegin(003,001,028,001)`
          `SAP_Label("%#AUTOTEXT001")`
          `SAP_DynproLayerEnd()`
          `SAP_DynproLayerBegin(003,003,020,001)`
          `SAP_Label("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_OLD")`
          `SAP_DynproLayerEnd()`
          `SAP_DynproLayerBegin(030,003,005,001)`
          `SAP_InputField("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_OLD")`
          `SAP_DynproLayerEnd()`
          `SAP_DynproLabelLine(003,003,030)`
          `SAP_DynproLayerBegin(003,004,020,001)`
          `SAP_Label("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_NEW")`
          `SAP_DynproLayerEnd()`
          `SAP_DynproLayerBegin(030,004,005,001)`
          `SAP_InputField("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_NEW")`
          `SAP_DynproLayerEnd()`
          `SAP_DynproLabelLine(003,004,030)`
          `SAP_DynproLayerBegin(004,006,014,001)`
          `SAP_Button("CTR_NEG_AMEND_REJ")`
          `SAP_DynproLayerEnd()`

  • Velocity Template Engine error

    When I look at the "Velocity Template Engine" tab I see the error:
    unable to Find resource 'VM_global_libaray.vm' in any resource loader.
    Could some one help me?
    Thanks in Advance
    Bill

    This error is nothing to worry about -- it's a harmless message from Velocity, which is used by the TemplateMaker extension. If really would prefer not to see it and aren't using TemplateMaker, you can remove the extension by deleting the file "templatemaker.jar" from your ${jdev.home}/jdev/lib/ext directory.
    Thanks,
    Brian

  • HT201335 OK, so I have the 1st generation iPad.  There is an AirPlay symbol, near the music symbol.  Is this useless? If I enable it, what does it enable?  And, what technological advances were made over the last 2 versions that have made my iPad 1, obsol

    OK, so I have the 1st generation iPad.  There is an AirPlay symbol, near the music symbol.  Is this useless? If I enable it, what does it enable?  And, what technological advances were made over the last 2 versions that have made my iPad 1, obsolete? 
    Thanks for the enlightenment!
    Jeff

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • What is jsp and php

    hi to all
    this might not the place to ask this question but i need someone to explain his thing once and for all
    what is jsp , what is it used for (please give relevant daily examples)
    what is php, what is it used for( please give relevant daily example)
    Thanks in advance for the help...

    > > i wanna ask again what is STFW ????
    >
    http://www.google.com/search?q=what+is+stfw
    Jeepers.
    ~

  • HT2736 How do I find out what numbers & letters were scratched off of my iTunes Gift Card by mistake?

    How do I find out what numbers & letters were scratched off of my iTunes Gift Card by mistake?

    iTunes Store:  Invalid, Inactive, or Illegible codes - http://support.apple.com/kb/TS1292 - gift cards

  • I need to change my security question on my apple id because i dont know remeber what the answer were..how do i do that?

    i need to change my security question on my apple id because i dont know remeber what the answer were..how do i do that?

    Security questions:
    https://discussions.apple.com/docs/DOC-4551

Maybe you are looking for