Can we include a JSP page in an already included JSP Page

Hi guys,
I have a doubt with JSP include tag. The problem is ..
Can we include a JSP page in an already included JSP Page
AS shown below
I have one JSP page
Index.jsp
-in this I am including "include.jsp"
-Again within the "include.jsp" I am including "include1.jsp"
It is neither giving an error nor displaying the content which is there in the "include1.jsp" but it is displaying the content of "include.jsp"
first of all let me know whether it is possible or no.. If so then why is it not coming and what is required to do this..
fast...
Thanks
Sreenadha Reddy K

Hi guys,
I have a doubt with JSP include tag. The
g. The problem is ..
Can we include a JSP page in an already included JSP
Page
AS shown below
I have one JSP page
Index.jsp
-in this I am including "include.jsp"
-Again within the "include.jsp" I
he "include.jsp" I am including "include1.jsp"
It is neither giving an error nor displaying the
content which is there in the "include1.jsp" but it is
displaying the content of "include.jsp"
first of all let me know whether it is possible or
no.. If so then why is it not coming and what is
required to do this..
fast...
Thanks
Sreenadha Reddy KIt is possible , u just have to change all the files and save them all again, clear the temp dirs where all the jsp's as compiled. Now after all this try , it should work .

Similar Messages

  • How can I open a new page (using "Pages") when I already have another page open?  It just keeps reverting to the page I have opened already and won't let me open another one?

    How can I open a new page (using "Pages") when I already have another page open?  It just keeps reverting to the page I have opened already and won't let me open another one?

    To make a new document, go to File > New From Template chooser and choose the type of document you wish to create.
    To add a new page to an existing document go to Insert > Sections > Blank.

  • How to force a jsp page to reload an "include" file?

    Hi there,
    I'm using WebSphere 4.0.2 with the Java 1.3.1 API.
    Some of my JSP files includes another JSP file as follows:
    <%@include file="constants.jsp"%>The above line came from one of the files entitled "main.jsp".
    Other jsp files on our system can rewrite and update the values in constants.jsp.
    However, when they do so, main.jsp (and the other files that "include" constants.jsp) doesn't take on the new settings unless I either a) reboot the server or b) force a recompile of main.jsp
    Is there any way to have main.jsp pick up when constants.jsp is updated and use the new values without manual intervention?
    Thanks!

    You might want to use 'touch' task of ANT. it modifies the jsp page modification time thus forcing the pages to reload.

  • Tag 'insert' can't insert page '/WEB-INF/station/search_results.jsp'. Ch

    why am i getting the following error when I click search
    Tag 'insert' can't insert page '/WEB-INF/station/search_results.jsp'. Check if it exists. Null property value for 'searchResults'

    5/31/06 13:08:24:094 EDT] 0000007f ServletWrappe E SRVE0014E: Uncaught service() exception root cause /WEB-INF/station/station_results.jsp: Null property value for 'searchResults'
    [5/31/06 13:08:24:094 EDT] 0000007f LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
    [5/31/06 13:08:24:156 EDT] 0000007f ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet /WEB-INF/station/search_results.jsp. Exception thrown : java.lang.IllegalArgumentException: Null property value for 'searchResults'
         at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java(Compiled Code))
         at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java(Compiled Code))
         at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:952)
         at org.apache.struts.taglib.logic.EmptyTag.condition(EmptyTag.java:123)
         at org.apache.struts.taglib.logic.EmptyTag.condition(EmptyTag.java:94)
         at org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagBase.java:218)
         at com.ibm._jsp._station_5F_results._jspx_meth_logic_empty_0(_station_5F_results.java:483)
         at com.ibm._jsp._station_5F_results._jspService(_station_5F_results.java:141)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
         at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
         at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:178)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:544)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1034)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:997)
         at com.ibm._jsp._search_5F_results._jspService(_search_5F_results.java:89)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
         at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
         at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:178)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:544)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1034)
         at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:476)
         at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
         at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
         at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
         at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)
         at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
         at com.ibm._jsp._portal._jspx_meth_tiles_get_0(_portal.java:101)
         at com.ibm._jsp._portal._jspService(_portal.java:75)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
         at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
         at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:178)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:294)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
         at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)
         at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java(Compiled Code))
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:286)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

  • How can I [cmd]+A including text boxes? Or how to import one Pages document into another Pages document?

    Hi there,
    I am working on my thesis with several Pages documents (for the first time). And I really have searched all over the Internet to find an answer to exactly my question but I cannot find it.
    First my question was: How can I import one Pages document into another one? I found the answer on that (I think) and there is nothing else than just make a new section and copy/paste it in.
    But then another issue pops up: I cannot [cmd]+A my whole document including the texboxes to paste it in the other Pages document. Then the document will be paste without the textboxes (and I have quite a lot of them in that document) and the text will not be at the right place.
    So please explain to me: How I can combine two Pages documents and keep them exactly the way they are? Is that even possible?
    I thank you so much in advance!

    Hi Fruhulda,
    I have already tried to mark the textboxes in line but that did not work, and besides then the text and the boxes won't be at the rigt places either. Thank you for your reply .

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

  • How i can make  my own connection in java source of a jsp page

    How i can make my own connection in java source of a jsp page (How to get connection from JNDI datasource address) ?
    imagine that i have a rowset in a web page , now i want to do some operation using
    plain JDBC , so i will need a connection object.
    I tried to get one of my rowsets connection but it return null ?
    what is best way to retrive a connection from JNDI datasource that we define for our project?
    for example if i have
    myRowSet.setDataSourceName("java:comp/env/jdbc/be");
    in web page constructor
    now i want a pure connection from the same datasource ? JNDI
    Thank you

    It is not hard to get your own connection from datasource.
    in your case you need to do like the the following code.
    i provide sample to show you how to catch the exception and create an statement .
    Connection con =null;
    try{
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/be");
    con = ds.getConnection();
    java.sql.Statement st =con.createStatement();
    }catch(SQLException sqlex){
    sqlex.printStackTrace();
    sqlex.getNextException().printStackTrace();
    catch(NamingException nex){
    nex.printStackTrace();
    hth
    Masoud kalali

  • How to include custom taglib in javascript on a given jsp page

    Hi,
    How to include custom taglib in javascript on a given jsp page?
    i have a jsp page on which i am adding selectboxes using javascript.
    But now i have created my own custom select box and want to add it on a given jsp page.
    is the code to create the box box.
    <sample:pickListOptions employeeId="abcs123"/>
    but how should i embed it in javascript, so that i will be able to add it on the give jsp page.
    Thanks,
    Javaqueue

    when the jsp page is loaded for the first time it contains a select box containg names created by a taglib.but there is a feature i want to add wherein though javascript the name selectebox will keep on coming on each row i want to add. and this is row addition and deletion is being handled by the javascript. there i encounter the bug how to interact the javascript with taglib so tha with each row addition i will have populated taglib created select box on each row.
    Thanks,
    Javaqueue

  • Can i design UI part in flex with an existing JSP page

    hello
    my name is sandeep, i have one JSP page can i implement it in
    FLEX 2.0 , as i am very much interested to design the UI part in
    FLEX 2.0 , can i make it, the JSP page is a login page it contains
    username and password textfields and onclicking the submit button
    it has to validate the user and password is valid or not, and
    onclicking reset button it has to clear the textfields. can u give
    suggest how to implement this in FLEX 2.0 ,
    thanks & regards
    [email protected]
    Text

    i didn't got , as i am a fresher to this FLEX 2.0 , i
    designed the UI part in flex, but when i click the submit button it
    has to forward to the JSP page to check against the valid
    user,password , sop how to forward the page to jsp(i mean from flex
    to jsp) , if u can suggest me with an example, it will be easy for
    me,
    thanks for ur speedy reply, hopping to get the solution for
    this issue,

  • Dynamic include in a custom tag, called from a jsp

    Hello, I would like to be able to dynamically include other jsp's from within a custom tag that I create. is this possible?
    in a jsp page i would just write <%@ include file="file.jsp" %> and all would be ok... but if i do an out.println( "<%@ include file=\"file.jsp\" %>" ); inside a custom tag bean then it doesn't work. it just prints out the command to the page as plain text.
    I do understand why this is happening, but can anyone offer me a way around this problem?
    Thanks in advance,
    Randy

    That's actually the same result as you get with a normal include - The method I suggested is a dynamic include similar to the <jsp:include> tag, not the <%@ include %> tag.
    When you use a dynamic include, the included page is compiled and 'invoked' as serarately, and the result is what gets included, not the actual source. To get the behaviour you want would require an include directive (the <%@ include %> tag) which I don't think has an equivalence you can use inside a custom tag.
    What you can do is pass attributes from the tag class like this:
    pageContext.setAttribute(<name>, <object>, pageContext.REQUEST_SCOPE);
    and then remove them after the include using pageContext.removeAttribute.
    I'm not certain, but this implies that if you declare your variables with a <jsp:usebean> tag with request scope, instead of normal Java variable declarations, you should be able to use them in the page included by the custom tag.
    *** in the jsp ***
    <jsp:useBean id="myVar" scope="request" class="java.lang.String" />
    <% myVar = "Something"; %>
    // Now call the tag which uses the pageContext.include() mehtod.
    *** end ***
    *** in the include ***
    <jsp:useBean id="myVar" scope="request" class="java.lang.String" />
    <%= myVar + " something else" %>
    *** end ***
    Let me know if it works.

  • JSP/HTML: server used for java server pages

    hi...
    I want to know that which server is used for JSP.
    for example we are used ASP pages IIS bulit in windows NT...
    I read books but can not understand that which type of server is used in JSP with HTML pages. Please send me information about that matter
    Thanx in Advance
    Muhammad Bilal

    Any Web server (including Apache, Netscape, and IIS).
    I suggest you have a look at the following article:
    JavaServer Pages[tm] Technology - Comparison with ASP
    http://java.sun.com/products/jsp/jsp-asp.html

  • How can I render an active link (yrl) within a UIX/XML page

    How can I render an active link (url) within a UIX/XML page.
    How can I get <jbo:ShowValue> to work in UIX/XML, or is there another way?
    Bill G...

    It may seem strange, but the <contents> of <rawText> aren't actually
    raw - it's only the "text" attribute that's raw. (It seems strange because
    it is. Ah well.) This is different from UIX JSP.
    So, try something like the following:
    <bc4j:attrScope name="Notes">
    <contents>
    <rawText text="&lt;a href=&quot;"/>
    <rawText>
    <boundAttribute name="text">
    <bc4j:attrProperty name="value"/>
    </boundAttribute>
    </rawText text="&quot;&gt;"/>
    Some text in the link.
    <rawText text="&lt;/a&gt;"/>
    </contents>
    <bc4j:attrScope>
    Thankfully, this will be much simpler in 9.0.3, when the following
    will work:
    <link text="Whatever you want">
    <boundAttribute name="destination">
    <bc4j:attrValue name="Notes"/>
    </boundAttribute>
    </link>

  • How can I make some pages in a PDF display in single-page view and others in two-page (facing) view?

    Exactly as it says on the tin. I am looking to save a PDF magazine/book layout in such a way so that when opened, only the front and back covers open to the viewer in single-page mode, and the rest of the pages in two-page facing mode, without re-printing the in-between pages in booklet format  and re-inserting them into a new PDF (with the front and back covers left separate and untouched, and included as single portrait-orientation pages). This is so that individual pages can still be printed (on a physical printer, not a "virtual" one like a PDF driver), as-is without having the page next to it included, or the printouts always requiring landscape orientation (resulting with two "pages" from the PDF showing up on one sheet of paper).
    So when the PDF is opened, I want just the front and back cover to be auto-viewed by themselves, and the content (the "meat" of the document) viewed side-by-side, as though one were actually reading a "book" -- but without actually re-doing the content pages to be "fused" side-by-side. Thus creating the "illusion" that they are, in fact, in booklet form. Is this possible, to have different page-display settings for different pages/page ranges in a single PDF? If so, how is this done? If not, what would be my best course of action otherwise to achieve this "virtual" book layout, while still retaining the "physical" structure of the document and allowing individual pages to be printed by themselves rather than "fused" together?
    Using Acrobat X Pro on Windows 7 Pro SP1.

    Dave Merchant wrote:
    The best you can do practicably is the 'two up with cover page' view mode. The first page will appear singly but not centered, and to get the last page to behave it would have to be a folio sheet.
    It's theoretically possible to use JavaScript to reset the view mode as each page is changed, but it makes for a nightmare of usability (what if someone on a smaller display wants to use 'fit to width'? Not an option if JS keeps overruling it). Anything involving JS won't work on non-Adobe software or mobile devices.
    Not a programmer by any means, so I won't be using JavaScript because I wouldn't know where to begin. I was thinking more in terms of an option I could adjust in the menus or dialogues.

  • How can I display de last items of a region from other page in Portal?

    I want to display de last five items (f.e.) included in a region (with attributes created) from other page. I've tried using custom search, but it also shows the attribute names, and I want show the attribute values (I don´t know how can I format these attributes).
    Thanks a lot.

    How can I display the last items of a region from other Oracle Portal page?

  • How can I make the spry accordion remember the panel open when I refresh the page or jump to a new page?

    How can I make the spry accordion remember the panel open
    when I refresh the page or jump to a new page?
    I am using the accordion feature on all my pages as a
    navigation aid. It has three panels. When you refresh the page the
    panel goes back to the default pane... Is there a way of
    controlling this so that the browser can remember the pane that is
    open (say set a variable, cookie, other?)

    Look for "Set the default open panel" on the following page:
    http://labs.adobe.com/technologies/spry/articles/accordion_overview/index.html
    Keep in mind you would need to change that bit of code on
    every page. The only way to do it more dynamically would be to
    include a custom javascript or PHP/ASP style script in order to
    change the value.

Maybe you are looking for

  • After restoring from Time Machine to new Hard drive, system will not boot

    I replaced my hard drive on my Macbook (2008 model) with a larger drive. I then put in my Snow Leopard disk, and followed the steps to restore from Time Machine backup. a few hours later it said it was restored, but when trying to boot up, I just get

  • Thumbnails in Bridge lost in files saved with AE CS6

    On Windows I have some templates (aet) from AE 7 and CS3 that include thumbnails in the XMP, and Bridge CS6 shows these.  If I open these templates in AE CS6 and save them out, no thumbnail is preserved/added to the XMP. I looked through the preferen

  • The icon says 'waiting'

    I have a problem. I downloaded os x mountain lion with redeem code cause I just bought new mac on 16 july . But when I download it, the icon says "waiting" and until now the download does not continue. And when I open app store I have to pay for os x

  • SAP Bank Analyzer in Banking services

    Hi All, Need some details about the SAP Bank Analyzer in Banking services. Thanks, Ulrich

  • Missing-anchor-value Error using PowerShell MA (Soren Granfeldt)

    Hi Everyone, I'm triying  to do a simple sinchronization using PowerShel MA (Soren Granfeld) v5.0. I've already configured the MA, but when I do a Full Import the Sync Engine sent me: missing-anchor-value. I configured the anchor attribute based on t