Navigation Tag Library JSP Example?

Hi All,
I am trying to follow "Top-Level Navigation iView" example from "SAP NetWeaver Developer's Guide".
In help they have given JSPCode but have not mentioned in which directory I have to make JSP file and in "portalapp.xml" what type of entry I have to write in it. i.e. "<component>, <property>".
I need to know which entry I have to make in "Portalapp.xml" for JSP component and under which directory(PORTAL-INF) I have to made JSP file.
Please let me know where I can find step by step instruction for Navigation iView example.
I will award full points to useful answer.
Thanks in Advance
Ashish.

Hi Mr.Chowdary,
Thanks for your reply and step by step instruction. I followed steps as you describe.  I have one question about "portalapp.xml"
Your answer is really helped me.
I go through "portalapp.xml" my question is regarding <components> element. As describe in <component-config> <property name="ClassName" value="com.sap.portal.navigation.LightTopLevelNavigation"/>
There is no "LightTopLevelNavigation.java" file. As per my under standing there should be a java file with name "LightTopLevelNavigation.java" extended from "AbstractPortalComponent" class and keep it under "src.core" or "src.api" folder.
To define a component you should have related java file. please correct me if I am wrong or explain me what is the significant of <component> element when you do not have any "JAVA" file with LightTopLevelNavigation.java
Please guide me as I am new to EP.
<components>
    <component name="LightTopLevelNavigation">
      <component-config>
        <property name="ClassName" value="com.sap.portal.navigation.LightTopLevelNavigation"/>
        <property name="SafetyLevel" value="no_safety"/>
      </component-config>
      <component-profile>
        <property name="NavigationTagLibrary" value="/SERVICE/com.sap.portal.navigation.navigationtaglibrary/taglib/TagLibrary.tld"/>
        <property name="EPCFLevel" value="0"/>
        <property name="com.sap.portal.iview.ShowTray" value="false"/>
        <property name="com.sap.portal.reserved.iview.IsolationMode" value="EMBEDDED"/>
        <property name="NumOfDisplayLevels" value="2">
          <property name="category" value="Navigation"/>
          <property name="plainDescription" value="Number of Display Levels"/>
          <property name="longDescription" value="Specifies the number of levels displayed in the light top-level navigation"/>
        </property>
      </component-profile>
    </component>
  </components>
Thanks for your help and guidence. Full points will be awarded once my doubts are cleared.
Thanks.
Ashish

Similar Messages

  • Navigation Tag library : lyt:container

    hi,
      From my basic research, I found that                                               <lyt:container id="navPanelContainer" /> uses the default iview tray for displaying its iviews in the container using Navigation Tag Library.
    It is mentioned that this one calls the default iview tray.. if so..could you please let me know where can i find the code for the default iview Tray..
    So that I can create a "containerwithtraydesign"..and use that default code and add a line at the bottom of iview tray.
    Please help me in this regard.
    Thank you

    Hi Daniel,
      Thanks for the reply.. I found a workaround...luckily the code was in light_Waandnavpanel.jsp.
    1. I downloaded com.sap.portal.layouts.framework.par
    2. Just took out the following code from light_WAandNavPanel.jsp and put that in WAandNavPanel.jsp
                                                       <table cols="1" cellspacing="0" cellpadding="0" border="0" style="width:100%" class="urTrcWhlHdr" id="DTNTray">
                                                       <tbody>
                                                            <tr>
                                                                 <td class="urTrcHdNotchTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcVertLftMidTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td style="width:100%"><table cellspacing="0" cellpadding="0" border="0" class="urTrcHdTrn" id="Tray-hd"><tbody><tr>
                                                                 <td nowrap><div class="urTrcTitHdr"><lyt:IViewTitle/></div></td>
                                                                 <td style="width:100%"></td>
                                                                 <td nowrap width="100%" oncontextmenu="return false" class="urTrcHdIco">
                                                                      <lyt:IViewToggleOpen><img style="border: medium none" src='<%=top%>'></lyt:IViewToggleOpen>
                                                                      <lyt:IViewToggleClose><img style="border: medium none" src='<%=tcl%>'></lyt:IViewToggleClose>
                                                                 </td>
                                                                 </tbody>
                                                                 </table></td>
                                                                 <td class="urTrcSpcVertMidRghtTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcHdRightTrn"><img width="1" src='<%=op%>'></td>
                                                            </tr>
                                                       </tbody>
                                                       <tbody>
                                                            <tr class="urTrcSpcRowHdContTrn">
                                                                 <td class="urTrcSpcHorLftTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorLftMidTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorMidTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorMidRghtTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorRghtTrn"><img width="1" src='<%=op%>'></td>
                                                            </tr>
                                                            <tr>
                                                                 <td class="urTrcBdyNotchTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcVertLftMidTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcBodyHdr urTrcBodyBdrHdr"><div class="urTrcBodyHdr urTrcBodyBdrHdr urTrcBodyHdrPd"><lyt:IViewContent/></div></td>
                                                                 <td class="urTrcSpcVertMidRghtTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcBdyRightTrn"><img width="1" src='<%=op%>'></td>
                                                            </tr>
                                                       </tbody>
                                                       <tbody>
                                                            <tr class="urTrcSpcRowContFtTrn">
                                                                 <td class="urTrcSpcHorLftTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorLftMidTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorMidTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorMidRghtTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorRghtTrn"><img width="1" src='<%=op%>'></td>                                                        
                                                            </tr>
                                                       </tbody>
                                                       </table>
    so the tray looks fine now without collapse icon(as i commented it in the above code)..
    but i have a small problem..I hope that you can help me in this regard. The problem is
    I am not able to see the "options" icon that is on the left of "collapse"  icon..could you please let me know how can i get that options menu... would be great if you could include in the above snippet of code..
    Thank you

  • Navigation Tag Library in Consumer Portal of Federated Portal Network

    In a FPN scenario, is it possible to use the Navigation Tag Library in the consumer portal for the top level navigation? I have developed a custom top level navigation based on the navigation tag library, but when navigating to the role of the producer and back again I can no longer view the roles in the consumer portal.

    Hi,
    I know this was posted a long time ago, but I'm currently experiencing a similar issue in the TLN between a federated CE and EP portal. Did you manage to resolve your problem? In my case it looks like when you access the CE content from EP it cannot find its way back to EP when clicking on another link on the EP side. Looking at the logs it seems as if it's looking for the content on the CE system even though it's obviously not there.
    Cheers,
    Dion

  • Navigation tag Library - launchedNavNode

    Hi
       I would like to know how to control launchedNavNode exceptions.
      I am using this expression to get the current page in the node hierchy, but if the current node has no default entry point assignment, the library causes a javascript error
    PS - i have tried it with JSP try and catch but nothing seems to work
            SelectedNavNode is not an option aswell because i wanna know the current page and not the selectedNavNode
    thanks

    Hi phantinox,
                        Please give me your system info so that I ll be able to help you on this.
    Regards
    Sharanya.R

  • Use of  nav:navNodeAnchor tag library

    Hi folks,
    I am trying to display the breadcrumb feature of portal navigation using navigation tag library <nav:navNodeAnchor> in my custom header iview.
    The code goes something like this.
                                  <nav:iterateNavNodesInSelectedPath>
                                  <nav:navNodeAnchor navigationMethod="byURL"
                                            anchorAttributes="class='textstyle2'"/>
                                                                <nav:ifHasMoreIterations>></nav:ifHasMoreIterations>
                                  </nav:iterateNavNodesInSelectedPath>
    But here, when I try to apply the css class as part of anchor attributes, it is not getting reflected in the output. Basically, it always displays the breadcrumbs in the standard colors defined.
    Can somebody please help me on this.
    Regards
    Srinidhi

    Hi Srinidhi,
    As the expected behaviour is what is also documented (for example under http://help.sap.com/saphelp_nw04s/helpdata/en/43/0029d0e7371aa2e10000000a422035/frameset.htm ), it <i>should</i> work. Check the HTML code which is generated on the created page; if the "textstyle2" string is also missing or at the wrong place, check if you are able to correct the entry maually (in the latter case), otherwise open an OSS message...
    Hope it helps
    Detlev
    PS: @Prem - See the linke above, it's not really a CSS attribute but a generic possibility to inject anything (for example: CSS class references) into the generated html anchor. Anyhow, I also expect that the text gets rendered in the created HTML page but the resolution does not work, for example as the CSS itself is not referenced or something like that...

  • Adding image in hovermenu built by navigation tag lib

    Hi ,
    I have created top level navigation using navigation tag library.It is hover menu.
    Now in the dropdown menu I need to add an image and then the 2nd lecvel navigation with method as URL.
    The code is as follows :
    <li class="Level2">
         <Table border=0 cellpadding="0">
         <Tr>
         <Td>
          <img align=center src="<%=componentRequest.getWebResourcePath() + "/images/dot_w.gif" %>">
          </TD>
           <TD>
           <nav:navNodeAnchor navigationMethod="byURL" hashURL="true" />
         </Td>
         </Tr>     
         </Table>
         </li>
    Now I want that when i move the cursor ,the entie thing i.e the image +the text should get highlighted to some color.In css I placed code for  .Level2 a and .Level2 a:hover
    But the highlight works only for the text in the navnodeanchor.I tried placing anchor tag for img also but it does not work.
    Can someone please guide me thru this.
    Thanks ,
    Preeti

    Hai Preeti,
    Did you added the images seperately?. Try this one.
    you can add images to the each node  through "nav Node Pictogram tag" .Go through this thread <a href="https://forums.sdn.sap.com/thread.jspa?threadID=469660&tstart=0">Addiding  Custom images</a>.
    Put your custom images in the folder which is  specified in above thread.
    Go to content Administration->Portal content->open property editor of iviews ,pages and , workset->select the property workset pictogram->set images for each iviews,pages and worsets
    Regards,
    Malini.V

  • ISA JSP tag library

    I'm working with an ISA jsp and have some questions about the <isa:iterate> tag.  For example does it work with a JCO.Table object? and if so, what other kinds of tables can it use? 
    Can anybody point me to some documentation on this tag library?
    Thanks,
    Brent

    Hi,
    I assume you are using ISA 4.0. You can use "com.sapmarkets.isa.core.util.table.ResultData" class with isa:iterate tag. You can read "ISA dev and ext guide" for this issue.
    Best regards,
    Altug Bayram

  • 9iAS JSP/Tag Library Help needed

    Info: We have 9iAS 9.0.2.0.0 running on Sun Solaris (Sparc). I have been to Sun class for JSP/Servlets (SL-314) and have an Iterator custom tag that works fine in Tomcat 4.0. I am compiling on a Windows NT machine using Ant and JDK 1.3. I then deploy using Oracle Enterprise Manager (web interface to 9iAS) and use the Deploy WAR option. The only examples I can find that came with 9iAS use JSP 1.1 Taglib code and they work. Am I missing something, or does 9iAS (9.0.2.0.0) not fully support JSP 1.2 / Servlet 2.3, specifically the 1.2 tag library API?
    Any help would be appreciated...
    Code Snippets from failing JSP:
    <%@ taglib uri="hr/taglib" prefix="hr" %>
    <hr:iterator id="empdata" listName="employeeList">
    <li><jsp:getProperty name="empdata" property="name"/> (<jsp:getProperty name="empdata" property="depth"/>)</li>
    </hr:iterator>
    This generates the following 500 Internal Server error:
    java.lang.NullPointerException
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:279)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
         at oracle.jsp.parse.JspUtils.loadClassJDK(JspUtils.java:219)
         at oracle.jsp.parse.JspUtils.loadClass(JspUtils.java:209)
         at oracle.jsp.parse.JspRTTag.(JspRTTag.java:102)
         at oracle.jsp.parse.JspParseState.createTagParser(JspParseState.java:410)
         at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:538)
         at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:160)
         at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:40)
         at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:295)
         at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:171)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:338)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:481)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)

    Sorry techie_sudhanshu .. i was away for the month with no internet access and just got back... here's an example :
    <display:table name="CUSTOMERS"  pagesize="10" id="customer" sort="list" defaultsort="3" requestURI="/customer.do?submit=Search" class="model">
         <display:setProperty name="paging.banner.placement" value="both"/>
         <display:setProperty name="paging.banner.some_items_found" value=""/>
         <display:setProperty name="paging.banner.one_item_found" value=""/>
         <display:setProperty name="paging.banner.all_items_found" value=""/>
         <display:setProperty name="paging.banner.no_items_found" value=""/>
         <display:setProperty name="paging.banner.onepage" value=""/>
         <display:setProperty name="basic.msg.empty_list"><center>No Record(s) was found.</center></display:setProperty>
          <display:column title="Name" sortable="false"><c:out value="${customer.name}"/></display:column>
          <display:column title="Address" sortable="false"><c:out value="${customer.address}"/></display:column>
    </display:table>The line where `<display:setProperty name="paging.banner.placement" value="both"/>` was specify solves your problem. By setting it to BOTH it will appear above and bottom of the paging table.

  • Connection Pooling and JSP Custom Tag Library - is code (inside) the best way/correc?

    Hi, can anyone advise as to whether my tag library code (based
    on Apache Jakarta Project) will actually achieve connection
    pooling functionality across my entire JSP based application? I
    am slightly concerned that my OracleConnectionCacheImpl object
    may exist multiple times, hence rendering my conection pooling
    attempt useless.
    package com.solved.tag.dbtags.connection;
    import java.io.IOException;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.servlet.jsp.tagext.TagSupport;
    import javax.servlet.jsp.JspTagException;
    import javax.sql.DataSource;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import oracle.jdbc.pool.OracleConnectionCacheImpl;
    * <p>JSP tag connection, used to get a
    * java.sql.Connection object.</p>
    * <p>JSP Tag Lib Descriptor
    * <pre>
    * &lt;name>connection&lt;/name>
    &lt;tagclass>com.solved.tag.dbtags.connection.ConnectionTag&lt;/t
    agclass>
    * &lt;bodycontent>JSP&lt;/bodycontent>
    &lt;teiclass>com.solved.tag.dbtags.connection.ConnectionTEI&lt;/t
    eiclass>
    * &lt;info>Opens a connection based on a jndiName.&lt;/info>
    * &lt;attribute>
    * &lt;name>id&lt;/name>
    * &lt;required>true&lt;/required>
    * &lt;rtexprvalue>false&lt;/rtexprvalue>
    * &lt;/attribute>
    * </pre>
    * @author Matt Shannon
    public class ConnectionTag extends TagSupport {
    static private OracleConnectionCacheImpl cache = null;
    public int doStartTag() throws JspTagException {
    try {
    Connection conn = null;
    if (cache == null) {
    try {
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup
    ("jdbc/pool/OracleCache");
    cache = (OracleConnectionCacheImpl)ds;
    catch (NamingException ne) {
    throw new JspTagException(ne.toString());
    conn = cache.getConnection();
    pageContext.setAttribute(getId(),conn);
    catch (SQLException e) {
    throw new JspTagException(e.toString());
    return EVAL_BODY_INCLUDE;
    package com.solved.tag.dbtags.connection;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.servlet.jsp.tagext.TagSupport;
    * <p>JSP tag closeconnection, used to close the
    * specified java.sql.Connection.<p>
    * <p>JSP Tag Lib Descriptor
    * <pre>
    * &lt;name>closeConnection&lt;/name>
    &lt;tagclass>com.solved.tag.dbtags.connection.CloseConnectionTag&
    lt;/tagclass>
    * &lt;bodycontent>empty&lt;/bodycontent>
    * &lt;info>Close the specified connection. The "conn"
    attribute is the name of a
    * connection object in the page context.&lt;/info>
    * &lt;attribute>
    * &lt;name>conn&lt;/name>
    * &lt;required>true&lt;/required>
    * &lt;rtexprvalue>false&lt;/rtexprvalue>
    * &lt;/attribute>
    * </pre>
    * @author Matt Shannon
    * @see ConnectionTag
    public class CloseConnectionTag extends TagSupport {
    private String _connId = null;
    * The "conn" attribute is the name of a
    * page context object containing a
    * java.sql.Connection.
    * @param connectionId
    * attribute name of the java.sql.Connection to
    close.
    * @see ConnectionTag
    public void setConn(String connectionId) {
    _connId = connectionId;
    public int doStartTag() {
    try {
    Connection conn = (Connection)pageContext.getAttribute
    (_connId);
    conn.close();
    } catch (SQLException e) {
    // failing to close a connection is not fatal
    e.printStackTrace();
    return EVAL_BODY_INCLUDE;
    public void release() {
    _connId = null;
    package com.solved.tag.dbtags.connection;
    import javax.servlet.jsp.tagext.TagData;
    import javax.servlet.jsp.tagext.TagExtraInfo;
    import javax.servlet.jsp.tagext.VariableInfo;
    * TagExtraInfo for the connection tag. This
    * TagExtraInfo specifies that the ConnectionTag
    * assigns a java.sql.Connection object to the
    * "id" attribute at the end tag.
    * @author Matt Shannon
    * @see ConnectionTag
    public class ConnectionTEI extends TagExtraInfo {
    public final VariableInfo[] getVariableInfo(TagData data)
    return new VariableInfo[]
    new VariableInfo(
    data.getAttributeString("id"),
    "java.sql.Connection",
    true,
    VariableInfo.AT_END
    data-sources.xml:
    <?xml version="1.0"?>
    <!DOCTYPE data-sources PUBLIC "Orion data-
    sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
    <data-sources>
    <data-source
    class="oracle.jdbc.pool.OracleConnectionCacheImpl"
    name="jdbc/pool/OracleCache"
    location="jdbc/pool/OracleCache"
    url="jdbc:oracle:thin:@oracle1:1521:pdev"
    >
    <property name="maxLimit" value="15" />
    <property name="cacheScheme" value="2" />
    <property name="user" value="console" />
    <property name="password" value="console" />
    <description>
    This DataSource is using an Oracle-native DataSource Class so as
    to allow Oracle Specific extensions.
    A getConnection() call on this DataSource will return
    oracle.jdbc.driver.OracleConnection.
    The connection returned is a logical connection.
    The caching scheme in place is Fixed Wait. Refer below to
    possible values.
    Dynamic 1
    Fixed Wait 2
    Fixed Return Null 3
    </description>
    </data-source>
    </data-sources>
    many thanks,
    Matt.

    Hi. Show me your pool definition.
    Joe
    Ramamurthy wrote:
    I am using the jsp custom tag library from BEA called sqltags.tld which came with Weblogic 5.1. Currently I am using Weblogic6.1 sp2 on Solaris.
    I have created a Connection Pool for Sybase database using the driver com.sybase.jdbc.SybDriver.
    When I created jsp page to connect to the connection pool using sqltags custom tag library, I am getting the error
    "javax.servlet.jsp.JspException: Failed to write body content
    at weblogic.taglib.sql.ConnectionTag.doAfterBody(ConnectionTag.java:43)
    at jsp_servlet.__hubwcdata._jspService(__sampletest.java:1014)"
    After this message, whenever I try to access the same jsp page I am getting the message
    "javax.servlet.jsp.JspException: Failed to load JDBC driver: weblogic.jdbc.pool.D
    river
    at weblogic.taglib.sql.ConnectionTag.doStartTag(ConnectionTag.java:34)
    at jsp_servlet.__hubwcdata._jspService(__sampletest.java:205)".
    Can you please help me the reason why this problem is happening and how to fix this ?
    This problem doexn't happen consistently. This occurs once in a while.
    I tried to increase Login delay Seconds parameter in the Connection Pool to 15 sec. It didn't help me much.
    Thanks for your help !!!
    Ram

  • "No tag library could be found with this URI" error while compiling jsp

    I am using WebLogic Server 9.2 MP1, JDK 1.5.0_09, Struts 1.3.5
              I am pre-compiling jsp pages with wlappc ant task. However, I got following errors when a jsp page contains ant taglib:
              No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
              The jsp page looks like:
              <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
              wlappc complains taglib could not be retrieved from this uri. Actually, since Struts 1.3.5, those ".tld" files are contained in strust-taglib-1.3.5.jar, folder META-INF/tld/. And I don't need to set anything in web.xml <tag-lib> tab anymore.
              All the jsp pages can be successfully compiled while being deployed to Server. So what am I missing? My build.xml file looks like:
                   <target name="compile-jsp">
                        <wlappc source="${src.dir}" output="${out.dir}"
                             keepgenerated="true" optimize="true" classpathref="wl_classpath"/>
                   </target>
              where "wl_classpath" contains all the struts related jar files, e.g. struts-core-1.3.5.jar, struts-taglib-1.3.5.jar, ...., and weblogic related jars, e.g. weblogic.jar.....
              I checked "beehive" samples coming with weblogic92, and found it pretty much did the same thing regarding build script and jsp files. So I am totally lost!
              Please help me out. Many thanks.
              Edited by jqian at 02/02/2007 10:24 AM

    Yes sorry, you're correct. The uri I mentioned is just 1.0.
    Do you have the "Oracle WebLogic Web App Extension" Facet for your web project? If not, try adding that and making sure that there is a weblogic.xml file created in the WEB-INF dir. The weblogic.xml file allows you to deploy usig a shared lib for JSTL. It should contain a library-ref element something like the following, with a version of 1.1.
    <wls:library-ref>
    <wls:library-name>jstl</wls:library-name>
    <wls:specification-version>1.1</wls:specification-version>
    <wls:exact-match>true</wls:exact-match>
    </wls:library-ref>

  • SQL in JSP - do I use JAVA code in % ... % or SQL Tag Library ??

    I have a small web app that makes needs to make about 12 SQL queries in a JSP and am trying to figure out what is the best way to do this
    I had initially coded this using plain JAVA code in the JSP as follows :-
    <%
    Connection conn = null;
    Statement st = null;
    ResultSet rs = null;
    try {
    st = conn.createStatement();
    rs = st.executeQuery("select .........");
    %>
    But then I came across the SQL Tag Library in an article and wonder if this is more efficient code?
    If so does anyone have a pointer to a good intro to these tags as they look complicated (I only am doing queries on the SQL database, no inserts or updates)

    Sometimes you've gotta do what you've gotta do.
    My rule is "no scriptlets".
    If you MUST access a database from a JSP, the only right way to do it is to use JSTL <sql> tags.
    %

  • Problem in using jsp 1.1 custom tag library in websphere

    I am using was 3.5.2. Everything has been installed properly. I am using jdeveloper 3.2 for building the jsp application using custom tag library. But when I run the jsp file in browser, its gives dr. watson on java.exe. I am using websphere 3.5.2 application server.
    Have any body got this type of prob. ...
    pls respond asap.
    Thanks in Advance
    Yogesh

    Let me explain the problem again
    I am using was(websphere) 3.5.2. Everything has been installed properly. I am using jdeveloper 3.2 for building the jsp application using custom tag library.
    Application works fine in JDeveloper 3.2.
    Application works fine even when deployed on JRun 3.0. ( we are evaluating various web servers).
    How when deployed on WAS and I run the jsp file in browser, its gives dr. watson on java.exe. I am using websphere 3.5.2 application server.
    WAS has typical settings as against JRun and Tomcat and may be I have not set the necessary paths.
    Have any body got this type of prob. ...
    pls respond asap.
    Thanks in Advance
    Yogesh
    null

  • How to get the JSP Name calling the Tag Library inside the Tag Library

    Hi guys,
    I have defined a Tag Library PenStart:
    import javax.servlet.jsp.tagext.*;
    public class PenStart extends TagSupport
      public int doStartTag()
        return EVAL_BODY_INCLUDE;       
      public int doEndTag()
        return EVAL_PAGE;
    }I have also defined the pentags.tld:
    <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd"
              version="2.0">
         <description>My Tag Library</description>
         <tlib-version>1.0</tlib-version>
         <short-name>pentags</short-name>
         <tag>
              <name>penstart</name>
              <tag-class>com.srh.tag.PenStart</tag-class>
              <body-content>empty</body-content>
         </tag>
    </taglib>I am calling the tag library in my JSPs:
    <%@ taglib uri="WEB-INF/pentags.tld" prefix="pen"%>
    <pen:penstart/>Now in the doStartTag() I want to know the JSP which is using the tag. How can I do that?
    Thanks

    pageContext.getRequest().getRequestURI()

  • Weblogic.servlet.jsp.JspException: (line 1): Error in using tag library uri

    Previously my web app was running fine using eclipse 3.1
    When I upgraded my eclipse to 3.2 then built the same web app and deployed, upon running the url i got error
    weblogic.servlet.jsp.JspException: (line 1): Error in using tag library uri='/tags/css' prefix='css' : cannot find tag class
    Your help is appreciated.

              Hi Guys
              Problem is almost certainly because I've gone and defined the get as returning
              an int, (hence no property!)
              Apols
              J
              

  • Problems with JSP - using tag library with Weblogic 8.1

    I am getting the following error when I try to run a web application called "regain":
    /searchinput.jsp(2): Error in using tag library uri='regain-search.tld' prefix='search': cannot find tag class: 'net.sf.regain.ui.server.taglib.MsgTag'
    probably occurred due to an error in /searchinput.jsp line 2:
    <%@taglib uri="regain-search.tld" prefix="search" %>
    The classes that the .tld file points to are in the web applications WEB-INF/classes directory and I have put this path into my classpath environment variable (running Windows 2000 Server).
    This application runs fine on Tomcat.
    I can't not figure out whether is error is masking another error or what. I've tried using JDK and Jrockit for my web app - no luck.
    Please help! Thanks!

    anyone? :/

Maybe you are looking for

  • Business Objects XIR3.1 and BI4.1 Licensing structure

    Hello, We have a number of named  (BOEP) Business Objects Ebterprise  professional licenses for XIR3.1. Q1. I am assuming that any named user on the BOEP, should be able to use any of the Server / Desk top products. I have been advised by my acct man

  • More function calls in stored procedure

    Hi, I would like to know if there are more function calls in a PL/SQL stored procedure, would it affect the performance of this procedure? Or will it be more efficient to have the body of those functions inside the procedure itself. Of course a metho

  • On compile.. Cannot open ExportController.prm

    Recently download CS6, when i open on VS2010 and build on a debug x64 or release i get the following error: Error 1 fatal error LNK1104: cannot open file 'C:\Program Files\Adobe\Common\Plug-ins\CS6\MediaCore\ExportController.prm' ExportController Exp

  • Installer 2705 Error when NI-DAQ not installed

    My application uses Measurement Studio controls for data acquisition. However, not all users of my software need the data acquisition features. My installation succeeds when NI-DAQ is installed on the target machine, but fails with a 2705 error if no

  • Reconciliation Ledger

    Hi All, What is the T-code for Reconciliation ledger. What is the use of it and how to run the reports in it? Thanks