Including htaccess File

Hello.
Is there an easy way to include a .htaccess file so that only authorized users can have access to a page created with iWeb '08 (on a non-.Mac server)? I know I can do this after the site is uploaded to the server, by manually going into the uploaded site and dropping in the file in the appropriate directory, but I would like to do this automatically.
On another note, is there a way to include a file that starts with a . (i.e., a hidden file) in iWeb '08? Even when I can "see" hidden files in Finder I cannot "see" them via iWeb '08.
Thanks for any thoughts,
Ken

No, you must manually add the .htaccess file to your server space, and there is no way to somehow include such files in iWeb.

Similar Messages

  • How to find and edit an .htaccess file?

    I trying to set up a podcast/blog in WordPress, and I need to edit an .htaccess file.
    I use Fetch as my FTP client to access my web site's hosting account, and I can see that there's an .htaccess file there. I need to get it and add a couple lines of code to it to do a URL redirect.
    When I use Fetch to "Get" it, it appears to download okay, but then I can't see it on my desktop or doing a search. I just downloaded EasyFind, on the advice given in another thread, but now I'm wondering, even if I can find the thing, whether I'm going to be able to edit it.
    Anybody got experience with this?
    Dave

    After I posted my inquiry, I solved the problem. Here it is, step-by-step, for somebody wanting a simple solution:
    1. Download EasyFind from this location: http://www.versiontracker.com/dyn/moreinfo/macosx/11706
    2. Launch EasyFind; make sure the option to show hidden files is checked on; and then search for .htaccess. It should show up in a list of all hidden files in wherever you're looking (Desktop or wherever).
    3. I double-clicked on .htaccess in EasyFind, and this opened the file in TextEdit. I edited the .htaccess file by adding the command info I needed (in my case, a redirect command). Then I did a simple "Save" command (not Save As...). This saved the edited version as .htaccess (hidden).
    4. I launched Fetch, and clicked "Put." In the Put dialog box, there's an option to show hidden files. When I checked that on, there was .htaccess, visible in the list. I selected that and FTPed it to my web server account.
    5. I tested the redirect, and it worked like a charm!
    Thanks very much to Matt Baya for talking me through some of this, including how to change the .htaccess to do my redirect.
    Dave

  • How to include .php file in .shtml using SSI

    Hi,
    I've just finished with my "Contact Us form" for my website and have some issues with running it. I have a .shtml file http://mydomain.com/contact-us.shtml in wich I'd like to include a contact us form file http://mydomain.com/includes/ContactUs.php. Now, having my web page "contact-us" as a *.shtml file with ContactUs.php file included, I can run the form but I can't send any emails.  If I would change contact-us.shtml in contact-us.php the form runs perfect but, I can't use other includes on that file as logo, header, footer etc. How could I include an .php file in a .shtml file and runing both the included .php script and includes themself?
    Thank You!

    Keep it simple.
    Your html file uses syntax like "<!--#include file=".header" -->" to include an SSI file. Your server requires either (1) that the html file have the .shtml extension or (2) you twiddle with an .htaccess file to cause the server to parse ALL html files for SSIs. The latter is generally not a good idea.
    PHP files are already processed on the server. You include SSI files the same way, but the syntax is a little different: "<?php include (".header"); ?> ".

  • Using .htaccess file to block access from certain networks

    Does anybody have any tips on getting a .htaccess file to work to block access to my Web Access server from certain network ranges on SuSE 10 SP3 with GW 8.0.2.
    It does seem like the file does anything? With Web Access I'm not exactly sure where to put the file. I used to accomplish this using iptables, but I was seeing if I could do the same with .htaccess.
    Thanks!

    Originally Posted by bbilut
    Does anybody have any tips on getting a .htaccess file to work to block access to my Web Access server from certain network ranges on SuSE 10 SP3 with GW 8.0.2.
    It does seem like the file does anything? With Web Access I'm not exactly sure where to put the file. I used to accomplish this using iptables, but I was seeing if I could do the same with .htaccess.
    Thanks!
    You can block a range with the .htaccess file, for example by defining the range as
    Code:
    order allow,deny
    deny from 10.0.
    allow from all
    ...that would block all 10.0.0.0 upto 10.0.255.255 addresses
    You cannot use this file in tomcat, so useless I think... but as Apache is used as frontend for the tomcat webacc application and you might be able to edit the gw conf apache files to include the range denies (which by default can be found in /etc/opt/novell/groupwise/webaccess/gw.conf).
    Maybe this thread might help as there are some examples in howto include denies in the .conf files.
    Deny IP Ranges in httpd.conf Apache Web Server forum at WebmasterWorld
    Do make a backup of you current gw.conf in case it blows up :)
    -Willem

  • .htaccess files with MAMP + ORIGINAL Apache installation

    I installed MAMP on my MacBook Pro, and it set up phpMyAdmin quite nicely, but everything else has been a disaster. Though I can't connect to my databases with Dreamweaver, so I have to link to my online database. Similarly, working with MAMP's Apache installation kills my virtual hosts - and troubleshooting that is WAY over my head.
    So I'd like to emulate other MAMP users who have decided to stick with the original Apache installation. My big goal is to simply get my .htaccess files with mod-rewrite rules to work.
    According to this article...
    http://rexselin.wordpress.com/2006/07/28/making-mod-rewrite-and-htaccess-work-on -mac-os-x/
    ....htaccess files don't work on Mac's unless you do the following:
    1) Open the httpd.conf file and uncomment these three lines:
    #LoadModule rewrite_module modules/mod_rewrite.so
    #AddModule mod_rewrite.c
    #AccessFilename .htaccess
    The 2nd and 3rd lines were already uncommented. The closest I found to the first line was the following, which was also uncommented:
    LoadModule rewrite_module libexec/httpd/mod_rewrite.so
    I left it alone.
    2) Change "AllowOverride None" to "AllowOverride All" in both the httpd.conf and /private/etc/httpd/users/MyName.conf files.
    I did this in my httpd.conf file, but if I do it in MyName.conf, it kills my virtual hosts.
    3) Restart Apache.
    Can anyone tell me what to do next? I copied some code from my Apache error logs below, in case it includes any tips. However, most of the more recent errors were probably logged when I was using MAMP's Apache program, so it might be worthless.
    Thanks!
    [Sat Mar 24 20:32:22 2007] [notice] Digest: generating secret for digest authentication ...
    [Sat Mar 24 20:32:22 2007] [notice] Digest: done
    [Sat Mar 24 20:32:22 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
    [Sat Mar 24 20:37:40 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
    [Sat Mar 24 20:37:42 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
    [Sat Mar 24 20:37:47 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
    [Sat Mar 24 20:37:49 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
    [Sat Mar 24 20:37:54 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
    [Sat Mar 24 21:02:31 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 00:41:08 2007] [notice] caught SIGTERM, shutting down
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 00:44:16 2007] [notice] Digest: generating secret for digest authentication ...
    [Sun Mar 25 00:44:16 2007] [notice] Digest: done
    [Sun Mar 25 00:44:16 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 00:47:46 2007] [notice] caught SIGTERM, shutting down
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 00:47:53 2007] [notice] Digest: generating secret for digest authentication ...
    [Sun Mar 25 00:47:53 2007] [notice] Digest: done
    [Sun Mar 25 00:47:53 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 00:51:32 2007] [notice] caught SIGTERM, shutting down
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 00:51:37 2007] [notice] Digest: generating secret for digest authentication ...
    [Sun Mar 25 00:51:37 2007] [notice] Digest: done
    [Sun Mar 25 00:51:37 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [I deleted a bunch of stuff here...]
    /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 12:44:40 2007] [notice] caught SIGTERM, shutting down
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 12:44:46 2007] [notice] Digest: generating secret for digest authentication ...
    [Sun Mar 25 12:44:46 2007] [notice] Digest: done
    [Sun Mar 25 12:44:46 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
    [Sun Mar 25 13:26:37 2007] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/bin/phpMyAdmin/css/themes, referer: http://localhost:8888/phpMyAdmin/css/phpmyadmin.css.php?lang=en-utf-8&server=1&c ollationconnection=utf8_general_ci&jsframe=right
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 14:26:12 2007] [notice] caught SIGTERM, shutting down
    Failed loading /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so: (null)
    [Sun Mar 25 14:26:18 2007] [notice] Digest: generating secret for digest authentication ...
    [Sun Mar 25 14:26:18 2007] [notice] Digest: done
    [Sun Mar 25 14:26:18 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations

    Please ignore this thread. I finally stumbled over the problem - a line of sloppy code in my httpd.conf was apparently creating some interference. Thanks!

  • Can I include raw files into the installer folder with LV application builder?

    Hello,
    I have created a batch file that will run at the end of the installer, which will copy over some raw configuration files into the source destination so that the configuration files can be customized for each end user without rebuilding the installer with application builder. I also have an autorun.inf so the installer will automatically run when the user installs the CD.  
    However I would like to have some default configuration files and an autorun.inf file that will be automatically added to the installer "volume" folder using the application builder. 
    However I don't see a way to include raw files in the "volume" folder. It appears all source files in the application builder are embedded into the binary files.
    Please let me know if this is possible with the current application builder.
    Regards,
    Russell
    Engineering Team Leader
    G Systems, www.gsystems.com
    Certified LabVIEW Architect
    Certified Professional Instructor

    Russel,
    i think this link might give you some good hints....
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to include .jar files in coldfusion code 

    To Integrate our cfm code with paypal jar files we do the
    following steps with our local coldfusion server ,and to run and
    integrate the paypal Java SDK jar files, I think we need to do the
    same process on the server, can you suggest any thing to do the
    following setting for my domain on the server, without setting the
    class path in coldfusion administrator.
    The ColdFusion application server must be configured to know
    the location of the PayPal JAR
    files, and your ColdFusion Markup (CFM) pages must be
    configured with the absolute path to
    the PayPal API certificate for the PayPal API user on whose
    behalf the calls are made.
    1. Install the PayPal Java SDK “Installing the
    SDK”.
    2. Copy a subset of the Java SDK JAR files to a location
    accessible by the ColdFusion
    application server. The JAR files are in SDK_root\lib and
    their exact names are as
    follows:
    – bcmail-jdk14-128.jar
    – bcprov-jdk14-128.jar
    – paypal_base.jar
    – paypal_stubs.jar
    sax2.jar
    – xerces.jar
    – xpp3-1.1.3.4d_b4_min.jar
    – xstream.jar-1.1.3.jar
    3. With the ColdFusion Application Server Administrator, add
    the absolute path of the
    location you determined in Step 2 to the Java and JVM
    CLASSPATH environment variable.
    4. Restart the ColdFusion Application Server.
    Suggest me how to include .jar files without setting
    classpath.

    > Suggest me how to include .jar files without setting
    classpath.
    Copy them to {CF_HOME}\lib, where {CF_HOME} is, for example,
    C:\CFusionMX7. Restart Coldfusion.

  • How to include a file as variable in %@ include file tag.

    Hi,
    I have a interesting problem here, how can I include a file in <%@ include file tag. where the include file path is a variable. I am trying to implement the following statement.
    <@ include file="<%=headerLogic_template %>">
    where headeLogic_template is a variable which contains the actual path of the include file.
    Thanx,
    Ramana.
    email:[email protected]

    Please note that you can not write anything else between the quotes nor for page specification or parameters.
    BAD EXAMPLE!!
    <% for (int i = 0; i < 20; i++) { %>
    <jsp:include page="included.jsp" flush="false">
      <jsp:param name="apa" value="prestring_<%=i%>"/>
    </jsp:include>
    <% }BAD EXAMPLE!!

  • Include the file dynamicly by file name

    in my jsp,I want include another jsp dynamicly
    <%@ include file="thefile.jsp" %>
    thefile.jsp should be dynamic like:
    <%=String filename=="thefile.jsp" %>
    <%@ include file=filename%>
    I know above is not working since file only take static name.
    is there any way to include the file dynamicly by file name?

    String path = "..."; // to the ressource to include
    javax.servlet.RequestDispatcher dispatcher
              = getServletContext().getRequestDispatcher(path);
    dispatcher.include(request,response);

  • How to Include JS file already available in SharePoint Site(Style Library) in Command action

    I have included JS file in command Action Using below command 
     <CommandUIHandlers>
            <CommandUIHandler
              Command="EnableCustomGroup"
              CommandAction="javascript:return true;" />
            <CommandUIHandler
              Command="CustomGroupHelloWorld"
              CommandAction="javascript:openPopup();" />
          </CommandUIHandlers>
        </CommandUIExtension>
      </CustomAction>
      <CustomAction Id="Ribbon.Library.Actions.Scripts"
     Location ="ScriptLink"
     ScriptSrc="/_layouts/15/images/Scripts/Popup.js" /> 
    It was working fine now I am embeding my project to Development Project in which we have divided the Modules in to two different projects One project with all Branding work including all CSS and JS files (including the above Popup.JS file) which once deployed
    and the js file is residing in Style Library. 
    The Second project has the Command Action to call the JS file which is already residing in Site (Style Library) I am unable to refer that file path I tried using "/Style Library...... Popup.js" and also the full URL "http://site collection/style
    Library/... Popup.js" just to make sure if it is working or not. But it is throwing error saying file is not found. Can anyone help me how to refer the file what source URL should i give. Thanks in Advance
    Thanks and Regards,
    Raj Kamal Singh Rathore

    Hi,
    According to your description, my understanding is that you want to reference the custom JavaScript file which stored in the style library in custom action.
    I suggest you can reference the js file using the relative path of Style library like below:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
    Title="test"
    ScriptSrc="~SiteCollection/Style Library/jquery-1.11.2.min.js"
    Location="ScriptLink"
    Sequence="100"
    >
    </CustomAction>
    More information:
    Referencing JS files using CustomAction element
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to include External files

    Am Developing an application using servlet jsp and jakarta tomcat 5. Am using MVC frame work also web.xml(deployment descriptor). I could not include script files and image files in my jsp page as its not getting those file although i specified the path currectly. plz help me.
    regards
    sree

    When you use the request dispatcher, the relative path for all your ressources becomes the relative path of your calling serlvet and not the JSP/servlet that you call. Make sure to use the full relative path such as:
    /PATH_TO_YOUR_DIRECTORY/myRessource.ext
    NOT
    SOME_DIRECTORY/myRessource.ext
    Jeff

  • How can I include a file in a servlet?

    I need to include a header file in htm format and a footer as well. My question here is, is it possible to include these files when a servlet is executed? like in the cases of the jsp web apps, with the <%@include file = "header.htm"%> tag... please let me know and thanks in advance.
    Regards

    Use RequestDispatcher.include:
    RequestDispatcher rd =
    = this.getServletContext().getRequestDispatcher(url);
    try { rd.include(request, response); }
    catch (Exception e) { "Error : Dispatch includeError
    : " + e); }Where url is the relative url of the HTML file.Hi, thanks for your answer, I still having a problem there, I used the RequestDispatcher.Include but it didn't show the file this is the code I'm trying to use:
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    OutputStream out = response.getOutputStream();
    RequestDispatcher rd = this.getServletContext().getRequestDispatcher("/form.htm");
    try {
    rd.include(request, response);
    catch (Exception e)
    System.out.println("Error : Dispatch includeError : " + e);
    try {
    IntervalCategoryDataset dataset = createGanttDataset();
    System.out.println("Total Categories: " + dataset.getCategoryCount());
    System.out.println("Total series: " + dataset.getSeriesCount());
         JFreeChart chart = ChartFactory.createGanttChart("Activities for F3319G1", "Activity", "Date", dataset, true);
    response.setContentType("image/png");
         ChartUtilities.writeChartAsPNG(out, chart, 800, 600);
    catch (Exception e) {
    e.printStackTrace();
    System.err.println(e.toString());
    finally {
    out.close();
    This servlet gets an image.. so the ContentType is set to "image/png" I don't know if this is causing the problem in such case what would I need to include an html or htm file in this kind of servlet? thanks in advance.
    Regards

  • How can i include a file in my JSP

    hello i have one jst who need to use an instance of a class called Part I need to include that file in my JSP but How do i do that
    How do i import my Part.java class in my JSP ???

    At the top of your JSP:
    <%@ import="package.*, package.Class" %>or you could do this:
    <%jsp:useBean class="package.Class" id="CLASS" scope="page" />or you can use a servlet as an include and have it write HTML back to the JSP:
    <jsp:include page="MyServlet">
         <jsp:param name="PARAM1" value="data1"/>
         <jsp:param name="PARAM2" value="data2"/>
    </jsp:include>

  • How can i include the file, not xsl file, to xsl ?

    Hi,
    I would like to include a file called 'head.inc' to xsl. How can i do that ?
    the content of the head.inc is simple, just a part of the html code.
    say:
    <html>
    <head></head>
    <body>
    i can't use <xsl:import /> or <xsl:include />, which tag i can ??
    Thx a lot !

    You could use the document() function to access it. But it would have to be a valid XML file, XSL doesn't allow you to risk including a fragment that might cause the result to be invalid XML. Which could happen with your example. Remember that XML and XSL work with elements, not with tags.

  • 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

Maybe you are looking for

  • 2 imacs v 1mbp  for use with FCP and motion.

    I'm in need of advice. I'm in the market for a new computer(s). Let me give you a rundown on my situation. HOME COMPUTER- dual 800 1GIG ram G4. probably 6-7 years old -i got it 2nd hand in 03 i think- (its about 6 years old and very noisy and update

  • 24" iMac firmware issue

    I have a 24" iMac (Early 2009) that has what I believe to be a firmware issue.  The computer boots up to show the grey Apple logo, with a spinning gear and progress bar showing up pretty quickly.  The progress bar fills maybe 5%, then goes away, leav

  • Lyrics not displaying correctly

    I'm trying to add lyrics to the Song "恋に焦がれた八百万" (maybe because of unicode characters?) which I've got as .aiff-File (about 50 MB big). However, when I copy/paste the entire lyrics, the iPhone displays it as blank. More strangely, when I only write "

  • G/L Account creation

    hi, when i open the stocks in mb1c i get an error saying "G/L a/c 799999 does not exist in the company code" , can some body let me know how i can solve this problem .i have checked with all possible FI settings .but then too the problem persists . k

  • Oracle 10g ROWNUM issue

    Hi -- I have the below query which takes about 30 seconds(if rownum used) on 10g and 0.2 (or less) seconds on 9i...stats are up-to-date. 10g results comes back within < 0.2 seconds if i take the rownum out from the query but the issue is when i use r