Including dynamically generated pages in jsp

          Hello All, Scenario is like this, i am creating the dynamic htmls pages, in the
          servlets and after creating the htmls pages in the servlets , the control passes
          to the jsp page, where i am including the html page that is created at the servlets,
          its works fine, but some time it shows me null exception at the jsp page, i.e
          it won't find the htmls pages, even they are created b'fore. I am using weblogic
          server 6.1 with sp3. Can anybody know what is the reason.
          

After you have generated checkbox by jsp, you have to generate JavaScript for the checkboxes.
<%
// assume I have found I need to generate 5 checkboxes with jsp
int chkboxCount = 5;
String user = request.getParameter("user");
boolean showUser = false;
if (user!=null && user.trim().length()>0){
  showUser = true;
%>
<script lang="JavaScript">
var chkcount = <%=chkboxCount%>;
for (int i=0; i<chkcount; i++)
     alert(i);
<%
if (showUser)
%>
    alert("hello <%=user%>");
<%
%>
</script>It is difficult to trace though.
Edited by: evilknighthk on Nov 25, 2007 11:55 PM

Similar Messages

  • Dynamic generate JNLP from JSP ?

    Hello,
    I tried to generate JNLP from JSP, but it just show the Opem/Save diakog and cannot startup the Web Start.
    I am using Tomcat-5.5.12 in WinXP + JDK1.5
    How can I dynamically generate JNLP ?
    Eric

    It will range from easy to rather difficult, depending on how hard you try...
    If you want to do the bare minimum it will require you to code up some JSPs with scriptlets, declarations, expressions, and <jsp:xxx ...> tags, have some server turn them into a servlet for you, and then determine how things like
    <%@ page isELIgnored="false" %> are handled. Things like:
    <jsp:useBean ...> <jsp:setProperty ... > should be rather easy to translate using introspection on the beans they refer to. But <jsp:import ...> and the likes may be more difficult.
    Any normal html code is just wrapped inside a out.println(...) statement. Scriptlets should have the <% %> stripped and coppied to the output. Expressions should have their <%= %> stripped and be added to the surrounding out.println...
    for example:
    <a href="<%=thePage%>">
    should become:
    out.println("<a href=\""+thePage+"\">");
    All the content should be added to a _jspservice method.  Then, things between <%! %> should be coppied to source file as methods.
    Complications come when people start to use custom tags. You will have to learn how to create a PageContext that will be available to the jsp service method.
    You should also look up the JSP/Servlet spec to see how this stuff should be done.
    It is a whole nuther can o worms if the resulting JSP is expected to compile without a server...</a>

  • Dynamically generate javascript in jsp

    i really need sm ideas...
    i have got image url in my table in database.. for eg:---------> /img/img.jpg(this is there in my table)
    in the jsp page i have got the urls in an arraylist..now i have to put it on roll...for eg there are10 images, when the page loads i have to display the first image and then on mouseover it will keep rolling to the next image and it goes on..
    the roll is done in javascript..
    i have to dynamically generate the javascript...what do i do?...how do i do that?

    which JavaScript you want to generate?
    Can you post your jsp and explain what kind of javascript you want to generate in that jsp?

  • How to put links (name anchors) in a dynamic generated page

    I have a page (results.asp) that gets dynamically generated
    from a db using a DW and MySQL app. The page (a table) looks
    sometihng like this:
    Year Card #
    1951 01
    1951 02
    1951 03
    1952 01
    1952 02
    1953 01
    1953 02
    1953 03
    and so on
    I've made the "Year" column a text link and added a Pop-Up
    Menu behavior so that users could select a year and jump directly
    to a specific section of the page (table). However, I'm not sure
    how to put a <a href> name anchor in for each of the years.
    For instance calling :
    <a name="1951">1951</a>
    from a declaration of:
    <a href="#1951">Go to year 1951</a>
    I would want to call each year (1951, 1952...1973) using name
    anchors. But again, I'm not sure how to put all the named anchors
    in a document that gets dynamically generated. It is a a table that
    gets its data generated via a Repeated Region. Hope this question
    makes sense. Any suggestions/comments appreciated. Thanks.

    If you year card allways follows that format then you could
    use the
    following code on the page.
    Outside of the repeat region have this statement
    <%
    Dim TestYear, CurrentYear, ThisYearCard
    TestYear = "0000"
    %>
    Then in the repeat region where you want the anchor to appear
    use this code
    <%
    ThisYearCard = recordset.fields.item("YearCard").value
    CurrentYear = Left(ThisYearCard, 4)
    If TestYear <> CurrentYear then
    response.write("A name='") & CurrentYear & "'>"
    TestYear = CurrentYear
    End if
    %>
    Where you want the Year card to appear you would then use
    <%=ThisYearCard%>
    rather than the recordset element.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "obcbeatle" <[email protected]> wrote in
    message
    news:e67pg5$rp0$[email protected]..
    >I have a page (results.asp) that gets dynamically
    generated from a db using
    >a
    > DW and MySQL app. The page (a table) looks sometihng
    like this:
    >
    > Year Card #
    > 1951 01
    > 1951 02
    > 1951 03
    > 1952 01
    > 1952 02
    > 1953 01
    > 1953 02
    > 1953 03
    > and so on
    >
    > I've made the "Year" column a text link and added a
    Pop-Up Menu behavior
    > so
    > that users could select a year and jump directly to a
    specific section of
    > the
    > page (table). However, I'm not sure how to put a <a
    href> name anchor in
    > for
    > each of the years. For instance calling :
    >
    > <a name="1951">1951</a>
    >
    > from a declaration of:
    >
    > <a href="#1951">Go to year 1951</a>
    >
    > I would want to call each year (1951, 1952...1973) using
    name anchors.
    > But
    > again, I'm not sure how to put all the named anchors in
    a document that
    > gets
    > dynamically generated. It is a a table that gets its
    data generated via a
    > Repeated Region. Hope this question makes sense. Any
    > suggestions/comments
    > appreciated. Thanks.
    >

  • How to include an ASP page from JSP?

    I had a working ASP page to be repeated on each page of the web site as an navigation bar updated from a single SiteMap.xml. Anyone knew how to include the ASP page from the JSP app?
    Thanks

    You might achieve your desired result by calling the ASP page from your JSP controller (server side) using the standard JAVA HTTP classes you could then process the resulting XML. I suggest you look at the JAVA API for more information in particular the JAVA.NET package and the HTTPUrlConnection class...
    http://java.sun.com/j2se/1.4.2/docs/api/java/net/HttpURLConnection.html
    Hope this helps,
    BRgds,
    Simon

  • Including dynamically generated jpg files in a report in PDF

    Hi all,
    hope I'm in the right forum.
    We have an issue with images we must include in a report, when the report output format is PDF.
    We are using these versions for Reports etc... :
    Report Builder 10.1.2.0.2
    ORACLE Server Release 10.1.0.4.2
    Oracle Procedure Builder 10.1.2.0.2
    Oracle ORACLE PL/SQL V10.1.0.4.2 - Production
    Oracle CORE    10.1.0.4.0    Production
    We need to include in a report a image (jpg or png) which is provided (and created dynamically) by NWA Quality Analyst.
    We use a BoilerPlate Field, and in the hyperlink property, we have something like  :
    http://myserver/XBAR_GRAPH.NWG?CachedFile=something,etc.><IMG SRC="http://myserver/XBAR_GRAPH.jpg?CachedFile=....
    Works fine when getting the report in HTML output format.
    But doesn't work when the report is in PDF output format. Seems to be a security constraint of PDF.
    Question 1 : Has anybody already faced a similar issue ? And solved it ?
    We tried to include a jpg file located anywhere on our server, it works fine, BUT in our case, the jpg file returned by NWA Quality Analyst is not stored anywhere (generated on the fly)
    Question 2 : is there a way, in PL-SQL (in beforereport trigger) to call the URL, get the file returned and save it somewhere ?  Or display it as a image ?
    Thanks for any idea and help effort.
    (French translation available on demand as my english is not so good ;-)

    Hi all,
    we found a solution for our issue :
    we generate the png file from the QA server using UTL_HHTP package, with a defined name.
    Then we get this image in our report,  in PDF format output.
    May this help...
    If you got question...

  • The Include Directive (at Page Translation Time)

    Version: 5.1
              Service Pack: 6
              I am generating the following error when I attempt to manually compile a JSP
              file:
              [jspc] parsing /vobs/projects/public_html//test.jsp:
              WARNING: Failed to include file 'test.inc' in include directive of page
              /test.jsp
              I've attempted practically every permutation of full and relative path
              locations, and cannot get it to work. Weblogic's JSP documentation did not
              have much to say about this either.
              Is anyone aware of a bug in the jsp compiler that would cause such a
              problem?
              

    Really strange, I used absolute path and put it under docroot, and I didn't
              put that folder into my any of my classpaths, the wls can find it without
              any problem. I used wls5.1 and sp6, do I miss sth?
              Thanks.
              mreiche <[email protected]> wrote in message
              news:[email protected]...
              >
              > No, it's not useless to add the include directory to the classpath - due
              to a bug in WLS 5.1,
              > it looks in the classpath for include files that begin with '/'.
              >
              > He is using the absolute path. That's why WL does not find it.
              >
              > Mike.
              >
              > "Tao Zhang" <[email protected]> wrote:
              > >
              > >Anchal Jain <[email protected]> wrote in message
              > >news:[email protected]...
              > >>
              > >> I added the directory that contains the included files to the
              > >> classpath but I still get the error below.
              > >It's useless to add such directory to the classpath. Please remove it.
              > >In order to recompile it dynamically you have to set it up in
              > >weblogic.properties file.
              > >
              > >>
              > >> WARNING: Failed to include file 'authenticate.jsp' in include
              > >> directive of page /analyze.jsp
              > >>
              > >You should inlcude all these jsps under your docroot.
              > >
              > >Make sure the relative path of include directive is right. Or you can use
              > >the absolute path and try.
              > >
              > >> Do I have to compile the included files
              > >> individually and then compile the main jsp?
              > >>
              > >> Any suggestion will be greatly appreciated.
              > >>
              > >> Anchal
              > >>
              > >>
              > >> "Greg Panzer" <[email protected]> wrote:
              > >> >The Weblogic JSP compiler is looking in the classpath for the include
              > >files.
              > >> >
              > >> >When manually compiling the JSPs, put the docroot in the CLASSPATH.
              > >> >
              > >> >Greg Panzer <[email protected]> wrote in message
              > >> >news:[email protected]...
              > >> >> Version: 5.1
              > >> >> Service Pack: 6
              > >> >>
              > >> >> I am generating the following error when I attempt to manually
              compile
              > >a
              > >> >JSP
              > >> >> file:
              > >> >>
              > >> >> [jspc] parsing /vobs/projects/public_html//test.jsp:
              > >> >> WARNING: Failed to include file 'test.inc' in include directive
              of
              > >> >page
              > >> >> /test.jsp
              > >> >>
              > >> >> I've attempted practically every permutation of full and relative
              path
              > >> >> locations, and cannot get it to work. Weblogic's JSP documentation
              did
              > >> >not
              > >> >> have much to say about this either.
              > >> >>
              > >> >> Is anyone aware of a bug in the jsp compiler that would cause such a
              > >> >> problem?
              > >> >>
              > >> >>
              > >> >>
              > >> >>
              > >> >
              > >> >
              > >>
              > >
              > >
              >
              

  • No JavaScript libraries seem to be included in generated JSP pages

    JHeadstart 10g (9.0.4)
    Struts/JSP
    It seems that the generated JSP files do no longer contain the necessary runtime JavaScript libraries.
    Pages generated with 9.0.4Beta 3 contained the statements:
    <script language="javascript" src="jheadstart/form.js"> </script>
    <script language="javascript" src="jheadstart/messages.js"> </script>
    <script language="javascript" src="jheadstart/calendar/calendar.js"> </script>
    Is this intentional? I get JavaScript errors so I have the feeling at least something is wrong.
    thanks and best regards
    Lucas

    Lucas,
    These javascript libs are now defined in routerForm.jsp which is generated as an include in your page.
    When upgrading from an older jheadstart version, make sure you delete all your jsp includes (and uix templates), so the JAG will copy the latest version to your file system.
    Steven.

  • Dynamically generate JSF Source code in a JSP

    Hi,
    I have a JSP and instead of writing the JSF source Code like:
    <h:inputText
    styleClass="entryInput"
    id="textNumberOfServerMachinesInput"
    value="#{DataAccess.value}"
    valueChangeListener="#{InputValueChanged.processValueChange}">
    </h:inputText>
    manually in the jsp I want the JSF source code to be added dynamically to the jsp.
    So what I want is including a tag in the jsp and this tag generates JSF source code like seen above.
    This source code should then be treated just the way it would be if I had written it manually in the JSP. This means that the dynamically generated JSF code must be interpreted and all Listeners and Beans work just fine.
    How can I make this???

    Hi,
    I have a smiliar problem:
    JSP:
    <h:panelGrid binding="#{fileUploadGrid.panelGrid}">
       <%-- emty in jsp --%>
    </h:panelGrid>The panel should be populated with items the backing bean creates in source code:
    FileUploadGrid.java
    public void setUploadFieldNumber(int uploadFieldNumber) {
        this.uploadFieldNumber = uploadFieldNumber;
        this.refresh();
    private void refresh() {
        if (this.panelGrid == null)
          this.createPanelGrid();
        List children = this.panelGrid.getChildren();
        children.clear();
        for (int i = 0; i < this.uploadFieldNumber; i++) {
          HtmlOutputText out = new HtmlOutputText();
          out.setTitle("Image " + i);
          out.setRendered(true);
          HtmlInputText in = new HtmlInputText();
          children.add(out);
          children.add(in);   
    private void createPanelGrid() {
        this.panelGrid = new HtmlPanelGrid();
        this.panelGrid.setColumns(2);
        this.panelGrid.setCellpadding("1");
        this.panelGrid.setBorder(1);
        this.panelGrid.setWidth("50%");
        this.panelGrid.setRendered(this.isRendered());
    public void setPanelGrid(HtmlPanelGrid panelGrid) {
        this.panelGrid = panelGrid;
      public HtmlPanelGrid getPanelGrid() {
        return this.panelGrid;
    }The backing bean is initialized in faces-config.xml:
    <managed-bean>
      <managed-bean-name>fileUploadGrid</managed-bean-name>
      <managed-bean-class>org.smi.pte.isf.FileUploadGrid</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
      <managed-property>
        <property-name>rendered</property-name>
        <value>true</value>
      </managed-property>
      <managed-property>
         <property-name>uploadFieldNumber</property-name>
         <value>6</value>
      </managed-property>
    </managed-bean>The problem is: although the debug output of the faces framework (I use it along with Tomcat) shows that the in- and output fields are added correctly to the panel, the page remains empty at display.
    Thanks in advance for any help.
    F. Eckhardt

  • Include dynamic pages

    Hi i have a jsp page(page1) which includes another jsp file (page2), but the name of (page2) jsp file is dynamically generated. I tried using <jsp:include="<%= variable %>" />, but it's not including the page2, it's giving error.
    Please check the below example
    <%@ page language="java" %>
    <%@ page import="oracle.apps.apt.aptWebHomeNews" %>
    <%
    aptWebHomeNews lHomeNewsObj = new aptWebHomeNews();
    lHomeNewsObj.getBrandInfo(_connection,gBrandNameStr);
    String lNewsPageStr="";
    String lErrStr;
    lNewsPageStr = lHomeNewsObj.getPageName();
    lErrStr = lHomeNewsObj.getStatus();
    lNewsPageStr = lNewsPageStr + ".jsp";
    %>
                   <table >
                        <tr height="20" > <td> </td> </tr>
                   </table>
              <table width="272" cellspacing="0" cellpadding="0" border="0">
              <% out.println("lNewsPageStr is " + lNewsPageStr); %>
    <jsp:include page="<%= lNewsPageStr %>" />
    <%-- @ include file="aptFndIncNewsComm.jsp" --%>
    <tr>
              <td align="center" width="270">
                   <table width="270" cellspacing="0" cellpadding="0" border="0">
    <tr>
         <td width="270">
                   <%@ include file="aptFaqInccatsolnpop.jsp" %>
    </td>
              </tr>
                   </table>
                   </td>
              </tr>
    <tr>
    <td height=30>
    </td>
    </tr>
              </table>
    Could anyone let me know what is the issue.
    Thanks,
    Raj.

    1. Please make sure that dynamically generate jsp is available in $OA_HTML
    The <jsp:include> element allows you to include either a static or dynamic resource in a JSP page. The results of including static and dynamic resources are quite different. If the resource is static, its content is included in the calling JSP page. If the resource is dynamic, it acts on a request and sends back a result that is included in the JSP page. When the include action is finished, the JSP container continues processing the remainder of the JSP page
    Hope this helps.
    Thanks,
    RK

  • How can I do a dynamic include of a page fragment?

    I have a technical support website with a lot of simple html pages. What I want to do is hyperlink from the index page to another page, which would display these html pages as a page fragment, dynamically based on a session bean set by the hyperlink.
    I basically want to do this, if it was possible:
    <jsp:directive.include file="#{SessionBean1.pageToDisplay}"/>
    Now the FAQ's has a topic "How can I do a dynamic include of a page fragment?", which would seem to answer my question.
    But this is all it says, and it makes no sense to me. Could someone please translate? :)
    "Using a page fragment file (but using instead of the usual Creator approach) will accomplish a dynamic include."

    Here is 1 solution:
    First add this to the jsp:root tag:
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    Then surround the page fragment directive with something like this:
                            <div style="position: absolute; left: 24px; top: 408px">
                                <c:if test="${SessionBean1.count > 0}">
                                    <jsp:directive.include file="testPF.jspf"/>
                                </c:if>
                            </div>

  • How to include element on page TOC in dynamic converter

    Hi,
    I am trying to create TOC in dynamic converter, when I open edit template, select element, and properties, check on include in page TOC, Click OK to close properties window, then come back to take look the change, the check is gone. it happens to all the elements. How to include element in page TOC? are there other steps have to be done before elements can be added? Thanks!
    T.J.

    JSP tags don't add html elements. Add the html and body elements as listed:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:pe="http://xmlns.oracle.com/adf/pageeditor"
              xmlns:cust="http://xmlns.oracle.com/adf/faces/customizable">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <html>
      <body>
      <af:pageTemplateDef var="attrs">
        <af:xmlContent>
          <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
            <display-name>sampletemplate</display-name>
            <facet>
              <facet-name>content</facet-name>
            </facet>
            <attribute>
              <attribute-name>hideBreadcrumb</attribute-name>
              <attribute-class>java.lang.Boolean</attribute-class>
              <default-value>#{false}</default-value>
            </attribute>
          </component>
        </af:xmlContent>
       <af:resource type="javascript" source="//scripts/code.js"/>
      </af:pageTemplateDef>
      </body>
    </html>
    </jsp:root>

  • Include jsf file in a jsp page

    Hi Everyone,
    I have a plain jsp page with no JSF Components, but it has a jsp:include tag which is another jsp file which contains jsf components.
    When i try to run the plain jsp file ... i get the following error...
    java.lang.IllegalStateException: Cannot forward after response has been committed
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:324)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         at org.apache.jsp.DynamicWebpart_jsp._jspService(DynamicWebpart_jsp.java:278)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         at org.apache.jsp.Webpart_jsp._jspService(Webpart_jsp.java:302)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         .......... so.....on........
    I saw the source code for the plain jsp file and the error is because of including the jsp file with jsf components.
    The contents of both the jsp file is given below
    Plain jsp file
    DWStaticJSP.jsp
    <%@ page import="java.util.*" %>
    <%@ page import="com.mirus.bi.jsp.*" %>
    <%@ page import="com.mirus.bi.util.Log" %>
    <% Log.logDbg("*******before calling the faces file from DWStatic :"+rSetting.getStaticJSPFileName()); %>
    // name of the file name : /faces/report_palm.jsp
    <jsp:include page="<%=rSetting.getStaticJSPFileName()%>" flush="false" >     
                   <jsp:param name="DMode" value="DBoard" />
    </jsp:include>
    Jsp file with JSF component
    it is stored in faces folder
    /faces/report_palm.jsp
    <%@ page contentType="text/html" %>
    <%@ page import="com.mirus.bi.util.Log" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://mirus.com/jsftaglib" prefix="my" %>
    <f:view>
              <h:outputText value="Store Name:" />
              <h:outputText value="#{palmReportUIHandler.currentStoreDisplay}" />
              <h:outputText value="Year:" />
              <h:outputText value="#{palmReportUIHandler.currentYear}" />
              <h:outputText value="Month:" />
              <h:outputText value="#{palmReportUIHandler.currentMonth}" />
    </f:view>
    The Configuration in the web.xml for faces Servlet is given below
    <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    Does anybody know the solution to this problem
    Any kind of help will be highly appreciated.
    Pinkesh

    Hi Adam Winer,
    I want to try your solution.
    just wanted some more clarification .....
    So, let's say you have:
    DWStaticJSP.jsp: plain JSP
    report_palm.jsp: JSF JSP included by DWStaticJSP.jsp
    What you should do is use an URL of:
    /faces/DWStatic.jsp
    to access the outer plain JSP (yes, even though it's not really a faces page), and then have
    /faces/DWStatic.jsp include just plain /report_palm.jsp.
    In essence, the critical thing is that the FacesServlet wraps the entire request - FacesServlet cannot run
    for just a piece of the request.My question is where should i store the DWStatic.jsp file ... As u said i should acces it using /faces/DWStatic.jsp do i need to save it in the faces folder or just in the web app root.
    I cant save the DWStatic.jsp in the faces folder as this file is used for lot of different purpose in my company application.
    So can u give me a solution where in i can keep the DWStatic.jsp in the web-root folder and still try your solution
    Also is this the right setting for facesServlet in the web.xml.
    <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    Whatever follows below this line is the describtion of the web appp structure which i have in my company.
    We have an application where in all the jsp files are stored in the web-app root folder.....
    I will be using alphabets like a.jsp ... b.jsp .... to keep the explanation small...
    I have an a.jsp file which includes a b.jsp file which in turn includes a c.jsp......
    Now we have started using JSF.....
    Now as a developer .... i want the c.jsp to include a d.jsp file which contains JSF components...
    The thing is i cant change the location of a.jsp, b.jsp and c.jsp......
    Can u tell me how i should call " a.jsp" ... imean the url so that the "d.jsp" file gets processed properly.
    Also where should i save all the jsp files and what config is requiered in the web.xml for your solution
    I thank you for your help
    Pinkesh

  • How can i render a dynamic html file in jsp page

    Hi everybody,
    i am trying to render a dynamic html file in jsp page with the result of querying a database.
    The response of the query is a xml document. And i have a stylesheet to transfer it to html.
    How can i render the html in a jsp file?

    I am using below code for HTML files
    private var appFile:String="index.html";
    if (StageWebView.isSupported)
                        currentState = "normal";
                        webView.stage = stage;
                        webView.viewPort = new Rectangle( 10, 130, (stage.stageWidth)-20, 750 );
                        var fPath:String = new File(new File("app:/assets/html/aboutus/"+ appFile).nativePath).url; 
                        webView.loadURL(fPath);
                        addEventListener(ViewNavigatorEvent.REMOVING,onRemove);
                    else {
                        currentState = "unsupported";
                        lblSupport.text = "StageWebView feature not supported";
    above code is working fine for me.

  • Urgent: Including a dynamically creted file in JSP

    Hi all,
    My problem structure is like this
    In my JSP page i am haiving one String which contains a source code of the other JSP. When i use out.println to print the code it works fine for all the HTML tags, but the JSP tags don't get processed. The reason behind this could be that the string is being printed after JSP translation phase. Now my requirement is the same String which contains some JSP code should work like normal JSP.
    I tried following solution, which is not working
    1.In the same JSP file i created a temparory xyz.jsp file with that String contents
    2.And i am trying to include that file using <jsp:include page="xyz.jsp/>
    3.I am using Weblogic 7.0, So in order to deploy the application i have to create .ear file and then proceed.
    4.The temperory file xyz.jsp is being creted in the domain folder of the server. which is out of the web context
    5.Now i am not able to access that temperory file, since it is not in the context.
    I am confused about the approch itself, because it involves IO and could make the application slow.
    Is there any other way to solve this problem ??
    Thanks in advance
    --Bhupendra Mahajan

    I know that this is the "New To Java Technology" forum, so my suggestion may be more than you want to tackle, but how about custom JSP tags?
    http://java.sun.com/developer/Books/javaserverpages/cservletsjsp/chapter14.pdf
    They allow their body content to be manipulated / evaluated. I don't know if they're appropriate in this case, since I haven't seen your code and don't know specifically what you're trying to evaluate, but I thought it would be worth it to suggest them.

Maybe you are looking for

  • The question about parameter in ECC 6.0 system.

    hi T-code RZ10 ,  I checked  the parameters about  DEFAULT. but  there are one error and three Warns. ---one error      there is [E:j2ee/dbname changes not permitted]   below  the parameter of  j2ee/dbname.      PS: the background is red. ---three wa

  • Images Not Appearing Correctly On Some Websites

    Hello, I have a 13-inch MacBook Pro I purchased in December 2012 and, prior to very recently, never had any issues. I recently upgraded from OS X Mountain Lion to OS X Mavericks v. 10.9. Since then, I've had 2 issues I need help resolving: 1. Images

  • Trying to Download CS Suite 5.5 Design Premium to a new computer getting an exit code 7

    I am trying to download CS Suite 5.5 Design Premium to a new computer.  I am getting error (Exit Code 7). I have two computers with this software.  Do I need to Uninstall software on one of the other computers??

  • Some requests for 6.0.1

    Dear Apple - while you're hard at work ironing out the bugs in the new Maps app (which I quite like), here are a few requests that will help retain me as a phone customer. 1. An improvement to Contacts:      Searchable categories would be nice, but p

  • Centrino Advanced-N 6205 and Windows 8 Connectivity Issues

    Hi. I've been having issues with the latest Lenovo issued drivers for the WIFI card (Intel Advanced-N 6205) v15.05.7000.1763. I have recently installed a fresh install of Windows 8 Pro on my W530 (2438CTO) and have been experiencing slow connections