Jsp templates using tiles

hi all,
i want to use Tiles in my application for designing jsp templates.
how can i use tiles?is there any best tutorial with complete example on Tiles in Jsp templates?
your suggestions are appreciated.
regards and thanks in advance

You may also wish to take a look at Sitemesh, a replacement for Tiles:
http://www.opensymphony.com/sitemesh/
The AppFuse web app startup environment uses it over Tiles and they seem to be happy with it. (Although it is somewhat more complex to learn.)
Glen

Similar Messages

  • Using CSS for Struts JSP presentation using tiles

    hi all,
    i want to use CSS instead of table TRs ,TDs,TABLE in my jsps.
    can anyone help me how can i achieve that?
    i want to use css with struts presentation using tiles
    i couldn't find much information about using CSS for jsps on the web can anyone guide me with proper information in this regard?
    regards and thanks in advance

    Actually, I just realized it's the exact same syntax as regular html (which I was thinking, but for some reason it didn't work the night I posted):
    <head>
      <link rel="stylesheet" href="yourstylesheet.css"/>
    </head>I'm not sure why it didn't work for me the first time.
    theAmerican

  • Can anyone tell me how to use Tiles framework in an existing JSP page

    I want to seperate my portal area using tiles. I'm looking for example on how I go about that.

    This book doesn't have information on how to use tiles in legacy JSP page. Let me rephase the question again:
    How do I place Tiles tags to an existing JSP page to seperate the areas in a page?

  • Hi i am using tiles and jsf?

    i am using tiles defnetion.
    i want to use the layout logic for my application.
    i created all the layouts how can i link the layouts
    to the main tiles defnition.
    and if i extend the main tiles def i am not able to get the page displayed.
    below is my code
    les-definitions>
    <definition name="mainLayout" path="/layout/mainLayout.jsp" >
    <put name="topLayout" value="topLayout" />
    <put name="leftLayout" value="leftLayout" />
    <put name="centerLayout" value="centerLayout" />
    <put name="body" value="" />
    <put name="subbody" value=""/>
    </definition>
    <definition name="topLayout" path="/layout/topLayout.jsp" >
    <put name="header" value="/pages/header.jsp" />
    <put name="menu" value="/pages/tabMenu.jsp" />
    </definition>
    <definition name="leftLayout" path="/layout/leftLayout.jsp">
    <put name="body" value="/templates/edit1003_body.jsp" />
    </definition>
    <definition name="centerLayout" path="/layout/centerLayout.jsp">
    <put name="subbody" value="/templates/mortage_body.jsp" />
    </definition>
    <definition name="edit1003.tiles" extends="mainLayout" >
    <put name="body" value="/templates/edit1003_body.jsp" />
    <put name="subbody" value="/templates/mortage_body.jsp" />
    </definition>
    <definition name="aboutus.tiles" extends="mainLayout" >
    <put name="body" value="/templates/aboutus_body.jsp" />
    <put name="subbody" value="/pages/address.html"/>
    </definition>
    <definition name="mortage.tiles" extends="edit1003.tiles" >
    <put name="subbody" value="/templates/mortage_body.jsp" />
    </definition>
    its not working
    please let me know whats the wrong?
    thansk in advance
    sreedevi.

    hi
    i got the navigation its works
    thansk
    but i have one more problem
    my jsf tags are not shown in the body tag they are shown outside the body tag.
    below is my code
    <form id="subbody:hi:_id27" name="subbody:hi:_id27" method="post" action="/actsys/mortage.jsf" enctype="application/x-www-form-urlencoded"><table border="0"><tbody><tr><td><span class="text">Applicants should complete this form as "Borrower" or "Co-Borrower", as applicable.Co-Borrower information must aslo be provided(and the appropriate box checked)</span></td></tr>
    <tr><td><table border="0"><tbody><tr><td><input type="checkbox" name="subbody:hi:_id27:_id32" value="true" />the income or assest of a person other than the "Borrower"(including the Borrower's spouse) will be used as a basis for loan qualification.</td><td><input type="checkbox" name="subbody:hi:_id27:_id35" value="true" />the income or assests of the Borrowers's spouse will not be used as a basis for loan qualification,but his or her liabilities must be considered because the borrower resides in a community property state,the security property is located in a community property state,or the Borrower is relying on other property located in a community state as a basis for repaymnet of the loan.</td></tr>
    </tbody></table></td></tr>
    <tr><td><table border="0" cellpadding="1" cellspacing="2"><tbody><tr><td><span class="text">Mortage applied for:</span></td><td><table id="subbody:hi:_id27:MortageApp"><tr>          <td><label><input type="checkbox" name="subbody:hi:_id27:MortageApp" value="va" onblur="validateCheck(this);" />&#160;VA</label></td>          <td><label><input type="checkbox" name="subbody:hi:_id27:MortageApp" value="conv" onblur="validateCheck(this);" />&#160;Conventional</label></td>          <td><label><input type="checkbox" name="subbody:hi:_id27:MortageApp" value="other" onblur="validateCheck(this);" />&#160;Others</label></td>          <td><label><input type="checkbox" name="subbody:hi:_id27:MortageApp" value="fha" onblur="validateCheck(this);" />&#160;FHA</label></td>          <td><label><input type="checkbox" name="subbody:hi:_id27:MortageApp" value="usda" onblur="validateCheck(this);" />&#160;USDA/RHS</label></td></tr></table></td><td><span class="text">Agency Case Number:</span></td><td><input id="subbody:hi:_id27:agencycasenumber" name="subbody:hi:_id27:agencycasenumber" type="text" value="" onfocus="validateagency('MortageApp');" onchange="checkNumber(this);" /></td><td><span class="text">Lender Case Number:</span></td><td><input id="subbody:hi:_id27:lendercasenumber" name="subbody:hi:_id27:lendercasenumber" type="text" value="" onchange="checkNumber(this);" /></td></tr>
    <tr><td><span class="text">Amount:</span></td><td><input id="subbody:hi:_id27:amount" name="subbody:hi:_id27:amount" type="text" value="" onchange="checkNumber(this);" /></td><td><span class="text">Interest Rate:</span></td><td><input id="subbody:hi:_id27:interestrate" name="subbody:hi:_id27:interestrate" type="text" value="" onchange="checkNumber(this);" /></td><td><span class="text">No. of Months:</span></td><td><input id="subbody:hi:_id27:Noofmonths" name="subbody:hi:_id27:Noofmonths" type="text" value="" onchange="checkNumber(this);" /></td></tr>
    <tr><td><span class="text">Authorization Type:</span></td><td><table id="subbody:hi:_id27:Authorization"><tr>          <td><label><input type="checkbox" name="subbody:hi:_id27:Authorization" value="fr" onblur="validateCheck(this);" />&#160;Fixed Rate</label></td>          <td><label><input type="checkbox" name="subbody:hi:_id27:Authorization" value="other" onblur="validateCheck(this);" />&#160;Other</label></td>          <td><label><input type="checkbox" name="subbody:hi:_id27:Authorization" value="gpm" onblur="validateCheck(this);" />&#160;GPM</label></td>          <td><label><input type="checkbox" name="subbody:hi:_id27:Authorization" value="arm" onblur="validateCheck(this);" />&#160;ARM</label></td></tr></table></td><td></td><td></td><td></td><td></td></tr>
    </tbody></table></td></tr>
    </tbody></table><input type="hidden" name="subbody:hi:_id27_SUBMIT" value="1" /></form>
    <
    <body>
    </body>
    i want the jsf code need to be inside the body tage
    if some one has any idea why its comming
    please let me know
    thansk in advance

  • JSF JSP Template

    Hi all, I'm using JDev 10.1.3. I have been trying to create some templates for my web pages but cannot get to the wizard. The "JSF JSP Template" item is not available in the "New Gallery". Any help is appreciated.

    It would be very interesting to have a more clear status about templating technology that will be implemented in the adf faces next release :
    1) does the technology be based on tiles, jsp, other
    2) what enhancements oracle plan to developp in templating, do you plan to introduce protected an updateable region like asp.net, do you plan to permit inheritance (extension)
    This is very important for people planing to use this technology at an enterprise level to build current application in a compatible way (reducing migration when the technology will be available) ?

  • Can we create a pivot table of Excel in a JSP page using POI

    Hello,
    I want to know whether we can create a pivot table of excel sheet in a jsp page using POI package from apache.
    thank you.

    Hi Alex,
    Many thanks for replying.
    I followed the link, but unable to get correct output.. I have shared the template earlier. I can share the template once again.
    It would be grateful if you give me share the working template with table of content.

  • Alternative to JSP templates

    [This is a cross post. I posted the same thing over at the coderanch: http://www.coderanch.com/t/554956/JSP/java/Alternative-JSP-templates]
    Hey,
    I've built and worked on quite a number of web applications using JSP for HTML templates.
    I always found that the templates would get quite messy and confusing even if you use JSTL instead of scriptlets.
    In a few projects I used other libraries for the HTML templates, Velocity for example.
    Though, that's just the same in a slightly different syntax. I've also worked with numerous other technologies in Ruby land,
    but I'm not happy with them either.
    To come to the point of this post: I don't like it very much and so I've created an alternative: Wandledi
    To describe it shortly: Instead of including scriptlets or custom tags into HTML files Wandledi uses a separate layer that's only responsible
    for transforming HTML markup in order to fill it with dynamic data and so on.
    For further information please have a look at http://wandledi.org *.
    The idea isn't entirely new, though I don't know any other library that implements it in this way and not only for Java,
    but for Scala, too.
    The reason I post this here is that I was hoping to get some feedback from Java (and possibly Scala) developers on the whole thing.
    Do you find the idea totally ludicrous or do you think it could make sense?
    I for one am actually using Wandledi in several projects and I like it very much.
    However, I might be a little biased. ;)
    Regards,
    Markus
    * For an actual Java example see: http://wandledi.org/spells/duplication.html
    Edited by: user5480329 on 06.10.2011 12:25
    Edited by: user5480329 on 06.10.2011 13:33

    First off: Thank you for your input.
    Please let me point out that Wandledi is in no way a web framework. It is a rather small library merely 'living in the presentation layer'.
    889994 wrote:
    +"The HTML markup stays clean and can even be edited with HTML editors such as Dreamweaver without getting confused.+" - This kind of argument is pretty widespread. Both ways. If there is some existing text editor for a given format they say - you may use editor XXX. If the format is too new they will tell - you do NOT need any special editor and sell that as an advantage. As of me I call that a "tools oriented approach" - as if starting a brand new technology we should first of all take a decision which editors it will comply to.
    In reality developing a technology as a whole (really new ideas included) costs non less than 50 times more than any editor. Editors must follow technology, not vice verse.I agree. This point I added because I thought of it as a little bonus.
    It's not something I had considered in the design of Wandledi. I use redcar for everything anyway! ;o
    889994 wrote:
    HTML files can be changed directly and the view is updated without recompilation. No compilation or runtime errors as a result of changes to templates - they may tell this. If is not a case they may tell something about how it is reliable when everything is compiled in advance.
    My 15 years of contact to JSP pages tells me that all end-up with including compilation of JSP as a step of a build. Otherwise you have a convenience of extra redeployments to production.Well, in the end the only thing that brings relative security are integration tests, I suppose.
    Cucumber to the rescue.
    Still the point of making recompilation unnessary is pretty valuable for development,
    because it makes it way quicker if you only make changes to the markup, which happens rather often
    when you're trying to circumvent another IE6 bug. ;)
    889994 wrote:
    "By putting the transformation logic into plain classes you can use the full power of the language (Java, Scala, ...) to describe the view transformations.
    This includes inheritance, composition and polymorphism to build up larger, more complex transformations OOP-style." - I have strong doubts that transformation logic is something needed for presentation. What about "the markup is also easier to read for humans, too."? - once you hide all under Java-coded transformations.This is a valid point. You can do all sorts of mischief with those transformations. But that's possible with any technology and it lies in the responsibility
    of the developer to be reasonable about it. It's important to point out that you usally do not want to generate HTML with Wandledi (referring to your print("<html>") statement). You merely transform. That is add, remove or change HTML attributes or duplicate portions of markup that is already there.
    One of the motivations behind Wandledi is that you should be able to express conditions and loops in an actual programming language instead of a cumcersome surrogate language or tags. The framework you suggested also makes this possible, which is good.
    To bring an example of Wandledi for loops.
    When you usally would do something like this:
    JSP:
    &lt;ul class="users"&gt;
      &lt;% for (String user : users) { %&gt;
        &lt;li&gt;&lt;%= user.name %&gt;&lt;/li&gt;
      &lt;% } %&gt;
    &lt;/ul&gt;I find this very ugly. The use of EL only improves the situation mildly.
    With Wandledi this would look like this:
    HTML:
    &lt;ul class="users"&gt;
      &lt;li&gt;Hans&lt;/li&gt;
    &lt;/ul&gt;
    Scala:get("ul.users li").foreachIn(users)( (li, user) => li.text = user.name )What I hope is that already in this small example the markup is more comfortable to read without the obfuscation through JSP. It is to me.
    Also it isn't more code, less even in this example. Just put into another file.
    Of course this would be less consise in Java. You would need about 5 lines of Java to express the same thing.
    889994 wrote:
    "The web designer can start building a functioning HTML page locally first without needing a server. Also they don't need to know jack about Java, JSP, JSTL, etc.." I agree. But. That may be said about ANY technology, including the JSP itself.That's not entirely true. What I mean is that the web designer can actually build the page locally and view it in his browser, simply by opening the file he is working on. Of course that is no longer possible once you start building stuff by including other files and so on.
    But you can build the components and simply view them in the browser. You can build concrete instances.
    Just as I did in the example above by inserting "Hans" instead of some variable name.
    You can show the page to anyone with a browser, no fragments. But mock content which will later get replaced with actual content.
    889994 wrote:
    One big piece missing in your proposal is about components and code reuse in general. That's the thing. It isn't. Because it is already there. You just do it the same way you would do it with your normal Java code.
    Because it is normal Java code.

  • Error when using Tiles Tag Library

    Hello,
    I have the following page:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-template"
               prefix="template"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%>
    <html:html>
    <tiles:insert page="/layouts/frameset.jsp" flush="true">
    <tiles:put name="headerl" value="/tiles/headers/DatePersonalHeader.jsp"/>
    <!-- <tiles:put name="left" value=""/> -->
    <tiles:put name="body" value="/tiles/bodys/PersonalBody.jsp"/>
    <tiles:put name="footer1" value="/tiles/footers/FooterGlobal.jsp"/>
    </tiles:insert>
    </html:html>When i run the page i get the following error :
    [ServletException in:/layouts/frameset.jsp] Error - Tag Insert : No value found for attribute 'footer1'.' In JDeveloper page="/layouts/frameset.jsp" is underlined for warning and the warning says : Attribute page not defined on element tiles:insert
    What is the problem ? thanks in advance !

    Refer
    http://www.oracle.com/technology/pub/articles/vohra_tiles.html

  • Navigation problem when using tiles with JSF

    Hi all,
    I m using tiles with JSF. i have included all the libraries and jsp page is rendered properly. but when i use <h:commandLink> in the body part of the JSP , i cannot go to the specified link. when we use tiles, what changes need to be done in faces-config file?? i mean what navigation rule we need to specify ??

    Hello, I have the same problem; JSF+Tiles = No navigation.
    One basic question is should I reference the parent jsp or the included body jsp in the faces-config.xml file.
    For example: The login.jsp is a main tiles page that includes a menu.jsp, header.jsp & a loginBody.jsp.
    Hence the faces-config could have this rule;
    <navigation-rule>
    <from-view-id>/login.jsp</from-view-id>
    <navigation-case>
    <to-view-id>/catalog.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    (I've left the outcome tag out to simplify this post)
    Or, I could refer loginBody.jsp in the navigation rule;
    <navigation-rule>
    <from-view-id>/loginBody.jsp</from-view-id>
    <navigation-case>
    <to-view-id>/catalog.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    The loginBody.jsp has a commandbutton which a user clicks which starts the navigation.
    Neither seems to work unfortunately & I'm a stuck.
    Thanks

  • Using tiles - servlet filter called multiple times

    Hi I have an application in we have 7 filters defined.
    Now in a jsp page, I have a loop that inserts a TILE. The loop iterates about 7000 times. Every time the tile insert is called, even my filters are called. So my 7 filters are called 7000 times. Now this makes my page rendering really slow.
    setting flush="false" (in the tile insert) does not work
    setting buffer="2700k" autoFlush="false" does not work.
    I have to use tiles. I cant skip the filters. What do I do? Is there any way I can not call the filter when my tiles are inserted.

    Hi
    Yes,you are right. In iAS6.0 SP4 When multiple requests arrive,and the Servlet's init() method has not returned yet for the first request, the application server calls init()multiple times. This problem is resolved in iAS 6.5.
    There is no kregedit magic that will solve this problem.
    Right now the workaround is any of the solution you proposed. Or use iAS6.5. I have tested it with fortune.
    Please download it and check with your application.
    you can find free download at http://developer.iplanet.com/appserver/testdrive/testdrive_65.html
    Thanks

  • How to  we  use Tiles Framework  with ADF Faces  ?

    Hello Every body,
    Can anyone tell me whether We mix Tiles framework of Struts, and ADF Faces Framework?
    I 've found that we can mix JSF and Tiles, but can we use ADF Faces and Tiles together?
    Waiting for your answer!
    Thanking you ,
    Samba.

    Dear Experts,
    Please help me !
    As I could not get enough help from you masters,
    I set out to do on my own, hoping that at some time you would come to my rescue.
    I designed a simple jspx page SiteLayout.jspx whose code is given below:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:c="http://java.sun.com/jstl/core"
    xmlns:tiles="http://jakarta.apache.org/struts/tags-tiles">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>SiteLayout</title>
    </head>
    <body>
    <h:form binding="#{backing_SiteLayout.form1}" id="form1">
    <af:table id="PageLayout" width="100%" >
    <!-- <tiles:getAsString name="title" /> -->
    <f:subview id="siteview">
    <tiles:insert definition="siteLayoutDef">
    <af:table id="headertable" width="100%">
    <tr>
    <td width="100%" colspan="2">
    <f:subview id="header">
    <tiles:insert attribute="header"/>
    </f:subview>
    </td>
    </tr>
    <tr>
    <td width="100%" colspan="2">
    <f:subview id="topview">
    <tiles:insert attribute="topmenu"/>
    </f:subview>
    </td>
    </tr>
    <tr>
    <td width="100%" colspan="2">
    <f:subview id="navigationview">
    <tiles:insert attribute="navigationbar"/>
    </f:subview>
    </td>
    </tr>
    <tr>
    <td width="30%">
    <f:subview id="leftview">
    <tiles:insert attribute="leftmenu"/>
    </f:subview>
    </td>
    <td width="70%">
    <f:subview id="contentview">
    </f:subview>
    <tiles:insert attribute="content"/>
    </td>
    </tr>
    <tr>
    <td width="100%" colspan="2">
    <f:subview id="footerview">
    <tiles:insert attribute="footer"/>
    </f:subview>
    </td>
    </tr>
    </af:table>
    </tiles:insert>
    </f:subview>
    </af:table>
    </h:form></body>
    </html>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_SiteLayout-->
    </jsp:root>
    My SiteLayout.jspx defines the layout of the pages on my Web application.
    My Home page is this:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:afc="http://xmlns.oracle.com/adf/faces/webcache"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:afi="http://xmlns.oracle.com/adf/industrial/faces"
    xmlns:graph="/webapp/graph.tld"
    xmlns:c="http://java.sun.com/jstl/core"
    xmlns:tiles="http://jakarta.apache.org/struts/tags-tiles">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Home</title>
    </head>
    <body>
    <!-- <tiles:getAsString name="title" ignore="true" /> -->
    <h:form binding="#{backing_Home.form1}" id="form1">
    <tiles:insert definition="siteLayoutDef" flush="false">
    <tiles:put name="header" value="/Header.jspx" />
    <tiles:put name="footer" value="/Footer.jspx" />
    <tiles:put name="leftmenu" value="/LeftMenu.jspx" />
    <tiles:put name="content" value="/Content.jspx" />
    <tiles:put name="header" value="/TopMenu.jspx" />
    <tiles:put name="footer" value="/NavigationBar.jspx" />
    </tiles:insert>
    </h:form>
    </body>
    </html>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_Home-->
    </jsp:root>
    My <tiles-defs> page is this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
    <tiles-definitions>
    <definition name="tiles-defs"/>
    <definition name="siteLayoutDef" path="/SiteLayout.jspx">
    <!--<put name="title" value="SiteBean.getQuoteofDay()" /> -->
    <put name="header" value="/header.jspx" />
    <put name="footer" value="/footer.jspx" />
    <put name="content" value=""/>
    <put name="topmenu" value="/TopMenu.jspx"/>
    <put name= "leftmenu" value="/LeftMenu.jspx"/>
    <put name="navigationbar" value="/NavigationBar.jspx"/>
    </definition>
    </tiles-definitions>
    My Web.xml is this:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <!-- Tiles ViewHandler config file -->      
    <context-param>      
    <description>Tiles configuration      
    definition files and a listener need to be defined.      
    the listener will initialize JspTilesViewHandlerImpl with tiles definitions.      
    </description>
    <param-name>tiles-definitions</param-name>      
    <param-value>/WEB-INF/tiles-defs.xml</param-value>      
    </context-param>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml, /WEB-INF/tiles-defs.xml</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.jspx</param-value>
    </context-param>
    <context-param>
    <param-name>oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER</param-name>
    <param-value>
    org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl
    </param-value>
    </context-param>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <servlet>
    <servlet-name>Tiles Servlet</servlet-name>
    <servlet-class>
    org.apache.struts.tiles.TilesServlet
    </servlet-class>
    <init-param>
    <param-name>definitions-config</param-name>
    <param-value>/WEB-INF/tiles-defs.xml</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    </web-app>
    The Error I'm getting is :
    IllegalStateException :No ADFRenderingContext;
    What happened?
    Where did I go wrong?
    could you please help me?
    Thanking you in advance,
    Waiting for your response,
    Samba.
    Message was edited by:
    saasira
    Message was edited by:
    saasira
    Message was edited by:
    saasira

  • Customization of Search JSP Template in Commerce Server

              Hi
              I am currently amending the search.jsp template provided by BEA in the wlcs/commerce
              folder within Commerce Server 3.5 and according to them, one could carry out searhes
              on virtually any fields within the table provided ie WLCS_PRODUCT.
              I am trying to restrict field searching to the WLCS_PRODUCT_KEYWORD table so that
              the primary keys would be used to do searches on the Product Catalog table.
              Does any one have a good idea on how to do this?
              

    The Javascript is returned inside the page, just as if it were a static
              .html file that you had put Javascript into. Thus it works entirely on the
              client. The client is unaware of whether a JSP engine put the page together
              or whether it is was just a static HTML file.
              Peace,
              Cameron Purdy
              Tangosol Inc.
              << Tangosol Server: How Weblogic applications are customized >>
              << Download now from http://www.tangosol.com/download.jsp >>
              "Bola Taylor" <[email protected]> wrote in message
              news:3b9dd5fc$[email protected]..
              >
              >
              > I am currently using BEA Commerce Server and written some JSPs to be used
              in the
              > application. I am trying to carry out some validation of some fields in my
              JSP
              > and thats how javascript came up.
              >
              > The question I have is that does the javascript that I want to put on the
              jsp
              > run on the server or on the client like a normal html page? The questiion
              sounds
              > basic but I am considering writing a class to carry out validation as the
              user
              > could turn off javascript on browser.
              >
              >
              >
              >
              

  • Need Help In JSP template

    hey guys,
    i need jsp template tutorials or documentations ..... I read the tutorial from sun site, but i could not got clearly...So somebody suggest some web links or something else to help me ..
    Thanks & regards
    Satish
    [email protected]

    JSPs are best used for displaying UI - since you already have it working in the middle layer with Java classes you should keep it that way.
    If you want to pass data back and forth between the Java class that sends mail and the JSP use JavaBeans and make use of jsp:useBean tag and other related tags.
    Also so consider upgrading to JSTL 1.1 , instead of using scriptlets in JSPs.
    I don't know why you want to make it work in the JSP itself. If you still want it to work in the JSP the post more details about what error you're getting - look in the log files if necessary.

  • Jsp template wizard missing?

    Hi,
    jdev prev4
    I found in "Help" that a JSP template wizard is available ( file extension .jjt) BUT I cannot find that template in the "new->all technologies->web tier->jsp"
    I would like to know if that template has been removed in 11g or where is it located.
    Regards

    Hi again,
    1-The JSP template is defined in jdeveloper prev4->help menu->full text search->"create jsp template wizard - welcome" and look for the same title in the results (mine is the 7th and 8th)
    2-by using the JSF-> new JSF Template wizard, there is no option for JSP (and only JSP), then the result template is in JSF format. I'm not sure, but the JSP template was available in 10g
    Maybe, full JSP support is no longer available in next releases of JDev (I understand that), but it is a pity because if you develop a web application by using Ajax and you have enough knowledge of JSPs, you don't need to know anything of JSFs, no extra files (faces-config), no extra libraries, and so on.
    Thanks!

  • Create a custom web template using VS 2012 with web features,site features sections applied

    hi,
     Want to create a  custom web template using VS 2012  in my SP 2013 environment.  i know "Vesku" has posted a great artice on this [  based on prev. version of SP].
    here -
    http://blogs.msdn.com/b/vesku/archive/2010/10/14/sharepoint-2010-and-web-templates.aspx
    i am  looking for a code based article  which has step by step process which provides how to add the site features, web features and attach the eventreceivers etc etc on sitecollection creation when i apply this template from central admin. 
    can anyone provide me any links / any source how to create a custom web template with one / two  custom features -  site features element and web features element , / master page etc ....
    I am stuck with this. as part of my reqmnt, i need to create a webtemplate with all the customlistinstances, custompagelayouts, custom masterpages, custom appln pages, custom web parts.
    help is appreciated !
    Das

    The problem is that Web Templates are deployed to a gallery in a site collection and aren't available in Central Admin when creating a new site collection.  YOu have to create the site collection without choosing a template and then choose your web
    template when you first access the root site in the site collection.  Here's an article that discusses that process here:
    http://sharepointchick.com/archive/2011/02/10/using-web-templates-to-create-site-collections.aspx
    Other than that Vesa's article is still the best one and works essentially the same in 2013 as it does in 2010.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

Maybe you are looking for