Can RequestDispatcher.forward() forward to a plain html file

Hi,
          I'm using the 4.5.1 eval weblogic server to service my jsps and servlets.
          I'm using IIS 4.0 to serve the web pages. I've set up IIS4.0 to send all
          *.jsp, *.jhtml, and *.servlet files to weblogic. I'm trying to forward the
          request from a servlet to an plain old html file. The html file is located
          in c:\inetpub\wwwroot. I have my weblogic.httpd.documentRoot set to
          c:\inetpub\wwwroot. I can't find a way to make this work. I've tried
          various combinations include
          equestDispatcher.forward( "/register2.html",req,resp) ....
          forward( "/file/register2.html",req, resp ) ... Any suggestions? BTW
          everything works fine if register2.html is renamed to register2.jsp and kept
          in the same directory.
          Thanks,
          John
          

Sorry (and thankyou very much for your response).... but, I'm not confident that I understand fully what you mean....
Since, what I want to do is write the output generated from my servlet to a specific frame in the frameset.
How does
"<a href="http://myDomain.com/servlet/MyServlet" target="frameName">My Servlet</a>"
help me to do that?
-- Are you assuming that I am invoking the servlet from somewhere in the frameset to begin with?
Thanks again for your input!

Similar Messages

  • Servlet for plain HTML files? (i.e. not JSPs)

    Hello,
    I have a webapp that includes plain-old HTML files (in a WAR) and a servlet that executes and then dispatches the request to a plain-old HTML file.
    When this runs I get this error:
    500 Internal Server Error
    Cannot get request dispatcher for path foo/bar.html
    I am not sure what the problem is, but I think it may be that this is an HTML file (as opposed to a JSP file), and my OC4J instance is not configured to handle HTML files.
    So, my question is: How do I configure OC4J to handle plain HTML files?
    In config/global-web-application.xml I see several servlets, one for JSPs, one for CGI, for SSI, for Perl, for PHP.... but how do I handle just HTML?
    Thanks,
    Otis

    Hello Steve,
    I think this exception may explain what I'm seeing:
    java.lang.ClassNotFoundException: introduction.videos._tasks__welcome
         at oracle.jsp.runtimev2.JspClassLoader.loadClass(JspClassLoader.java:758)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at oracle.jsp.runtimev2.JspPageInfo.getInstFacade(JspPageInfo.java:167)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:451)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:542)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:304)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    So, it looks like OC4J is using a JspServlet and JspClassLoader to try to load:
    _introduction._videos._tasks__welcome.class
    However, that "_tasks__welcome" is not a Java class - it is a regular .html file that lives in my WAR file as:
    tpri/introduction/videos/tasks_welcome.html
    So it looks like I have to tell OC4J not to try to load .html files as JSPs and treat them as plain HTML files that they are. Is there a way to do this with OC4J? (9.0.4.0.0)
    Thanks,
    Otis

  • Can I make cluster servers auto reload html files without redeploy applications?

    For example, I have some html files under application directory, these html
              files were
              generated and synchronized to all clustered servers by other external
              programsfrom time to time¡£ But with weblogic, I have to redeploy these html
              files to enable these files been viewed via browser.
              Is there any way to let weblogic auto refresh these files without redeploy?
              

    OS X Lion- About Auto Save and Versions
    Handles this automatically. Otherwise, such frequent backups will overtax the drive and probably cause some slowdowns, but you can change the interval using the freeware utility, TimeMachineEditor 3.0.3.

  • Why can't I drag an image or html file into a browser window with Firefox 17

    to get a quick view of various images or html files, I like simply dragging the files from my local drive into a Firefox browser window.
    since upgrading to FF 17, I can no longer do that. a NO symbol comes up when attempting this. and Dreamweaver will no longer preview with Firefox, even though it's my designated, preferred browser.
    anybody know if both of these are some setting or something?

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Can I create a subdirectory and custom html file within a domain?

    I'm preparing to migrate to a new weblogic server but recently realized that the new url address for users will be different from the original (current) url. Is there a way that I can simply create the root context of the original url within the new server?
    So, if the original url is http://aliasname/subdir/subdir/file.html ; and the new url is http://aliasname/domain
    ...can I manually create the subdir's within the root of the new server and create my own file.html that basically provides a message to the users that the current url has changed?
    That way, users who don't happen to update their bookmarks, will be updated and redirected to the new site. I'm new to weblogic and am coming from an MSFT IIS background where I could handle this simply by doing just what I described above in my question.
    Thanks in advance!

    The best is to have IIS handle that kind of work. Note that you use IIS as a front-end for WebLogic, such that requests meant
    for WebLogic are forwarded by using the IIS plug-in - http://docs.oracle.com/cd/E21764_01/web.1111/e14395/isapi.htm#BGBBCFID

  • I recently installed Firefox 4.0 and it does not have the Organize Bookmarks option in the Bookmarks tab. How can I export my bookmarks to an html file?

    The Organize Bookmarks option has disappeared in Firefox 4.0. How do I organize, import and export bookmarks?

    '''Show All Bookmarks'''

  • Firefox can not open .HTML files

    I am using the Firefox 14.0.1 . I can't not open any kind of .HTML file(written in notepad) in Firefox when in others browsers I can open these normally. When I am trying to open my HTML file to test them in Firefox, they couldn't be open rather than I am getting some unsorted of scripts like chines or something like this (I don't know clearly which kind of language)
    I don't understand what do?
    In advance thanks for your helping.

    It is possible that you saved the file in an UTF-16 encoding instead of UTF-8.
    You can try to test that if you aren't sure.
    *Firefox > Web Developer > Character Encoding
    *View > Character Encoding

  • How Can I change the Directory and Name of Coded UI Test Result html file

    I'm Using Visual Studio 2013
    Now I can find the Coded UI test result html file insde the following path
    TestProjectFolder\TestResults\2015_01_22_05_59\In\anotherfolder\MyMachineName\UiTestActionLog.html
    VS2013 enables editing the name structure of this folder only (2015_01_22_05_59). and it should contains a static name+DateTime (Using the Project TestSettings).
    I need to (Programatically)
    Collect all test result html files on one folder with the project name (Change the path of the test result file)
    Put the testcase name on the result file name (for example : TC13505_ValidateScreenComponents_2015_01_22_05_59)
    If possible,Programatically attach the html result file to the test case attachements
    More Details:
    I need to set a custom valus for (ResultsDirectory -
    TestLogsDir -TestResultsDirectory
    - TestName) on the runtime.
    please if any onw know how to do the previous tasks
    by code, please share your knowledge.
    Regards, Ahmed Elgazar Skype:A7medelgazar

    Hi AhmedElgazar,
    Thank you for posting in MSND forum.
    As you said  that you want to collect all test result html files on one folder with the project name by programmatically way to change the path of test result file in coded UI test.
    As far as I know that when we run a coded UI test every time, it is default that there will create a new folder to save the new UITestActionLog.html.
    So we could not change the path of test result file and collect all test result html files on one folder in VS IDE.
    At present, there have no way to collect all test result html files on one folder and change the test result file path.
    In addition, I know that we can change the TestResults folder using mstest.exe in command line.
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/58d3d2a6-1a45-41ba-9afa-12d087c7c661/how-to-change-the-test-results-path-of-codedui?forum=vstest
    If you still want to this feature, I suggest you can submit this feature request:
    http://visualstudio.uservoice.com/forums/121579-visual-studio. The Visual Studio product team is listening to user voice there. You can send your idea there and people can vote. If
    you submit this suggestion, I hope you could post that link here, I will help you vote it.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Include an HTML file that needs parameters??

    I have a JSP that includes an HTML file template.
    Lets say I don't know all the contents of the HTML at the time. How do I add it?
    Simple Example:
    myHTML.html
    <HTML>
    <HEAD>
      <TITLE>myVariablePassedFromJSP</TITLE>
    </HEAD>
    <BODY></BODY>
    <HTML>myJSP.jsp
      String title = "My Title To Display";
      <%@ include file="myHTML.html" %>
      etc...and the result should be
    <HTML>
    <HEAD>
      <TITLE>My Title To Display</TITLE>
    </HEAD>
    <BODY></BODY>
    <HTML>

    If the included file can be a JSP instead of a plain HTML file you can use the <jsp:include> tag with parameters. The parameters will become request parameters in the included JSP. You can use them anywhere in the JSP.
    e.g.
    *** 1.jsp ***
    <jsp:include page="2.jsp" flush="true">
    <jsp:param name="title" value="the window title" />
    <jsp:param name="someBody" value="something for the body" />
    </jsp:include>
    *** 2.jsp ***
    <HTML>
    <HEAD>
    <title><%= request.getParameter("title") %></title>
    </HEAD>
    <BODY>
    <%= request.getParameter("someBody") %>
    </BODY>
    </HTML>
    Be careful with includes because you can end up with multiple conflicting tags. For example, if 1.jsp has <html>, <head>, and <body> tags, and 2.jsp does, too, then you may run into a problem.

  • Import html file freezes RoboHelp

    I have to shut down RoboHelp right after an import. The file won't import. I'm using 7.03. I really need to find a solution fast. Anyone out there have a fix?
    Thanks!

    OK. So, if it happens in multiple projects. Chances are the projects themselves are not the issue, then.
    So what's left - either the program,  or the html files you are trying to import.
    Let's start with the html files. You haven't said whether any html file causes the crash. Have you tried multiple files? Is there anything unusual about these files? Can you create a plain html file with miminal content (even in Notepad you can do this) and try to import that?
    If every html file, no matter the content, fails to import, then I would start looking at the third variable - the program. Now, as I said before, I don't think a normal, complete installation of RH 7.03 has a problem with import, because I do it all the time. It would fail for me too, right?
    So - are your RoboHelp program and your project files ALL on your local workstation? They must be, for best results - RH is not a networkable program. It may seem to work fine with the project and / or the program on some remote drive, but sooner or later, it will bite you in the arse. So if that's the case, move everything to your local hard drive and try again. That means uninstalling the program from your networked location, and installing it with all v7 updates on your personal workstation.
    If everything is already local, then I would consider uninstalling and reinstalling the v7 and all the updates on your local workstation.
    gives you a lot to think about. just take one step at a time. you'll get there, because this functionality is not broken.

  • Extension to Force DW to Recognize PHP in HTML files

    Hi there,
    I've got several sites that use PHP code blocks embedded
    within plain .html files. It's an apache server and I simply use
    AddHandler application/x-httpd-php in the .htaccess file to tell
    the server to parse them for PHP.
    It works fine for these sites where we don't want to change
    URLs by modifying filenames.
    However, Dreamweaver doesn't treat these PHP code blocks as
    PHP (with one exception, which I'll get to). Instead, it displays
    the code block as plain text, without code coloring or code hints.
    It also doesn't provide the "Insert > PHP Objects" option from
    the insert menu.
    I'd like to find a way to get Dreamweaver to treat the PHP
    code in these files properly, but I haven't found an extension that
    could do it.
    The one exception I mentioned above is with PHP includes.
    When I have a PHP include, Dreamweaver displays it as "Server
    Markup" in the properties box, without the filename selection or
    edit properties you get with an actual .php file.
    However, the "related files" bar does correctly show the
    included file (I'm using CS4), so on some level, DW seems to know
    that it is a PHP code block.
    I'm hoping this is either an existing extension that I wasn't
    able to find when I searched the libray, or that it's a
    functionality I could enable myself without an extension if I'm
    given the right direction to look.
    Anybody have any thoughts on this?
    Thanks in advance,
    Jade

    "spiderjade" <[email protected]> wrote in
    message
    news:gnsbfg$l7h$[email protected]..
    > I'm hoping this is either an existing extension that I
    wasn't able to find
    > when I searched the libray, or that it's a functionality
    I could enable
    > myself
    > without an extension if I'm given the right direction to
    look.
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16410&sliceId=1
    Massimo Foti, web-programmer for hire
    Tools for ColdFusion, JavaScript and Dreamweaver:
    http://www.massimocorner.com

  • Javascript function not working in template-based html files

    Does anyone have any insight as to why the following function works only in the .dwt file but not in the related html files?
    *Note: it only works in the dwt file if I change the path of:
    var imgs = new  Array('images/header1.jpg','images/header2.jpg','images/header3.jpg');
    to
    var imgs = new  Array(../'images/header1.jpg',../'images/header2.jpg',../'images/header3.jpg');
    but with the paths reading correctly (as below) in the html files it still doesn't work...
    <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    var imgs = new Array('images/header1.jpg','images/header2.jpg','images/header3.jpg');
    var delay = 7500;
    var counter = 0;
    function preloadImgs(){
      for(var i=0;i<imgs.length;i++){
        MM_preloadImages(imgs[i]);
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
      MM_swapImage('rotator', '', imgs[counter++]);
      setTimeout('randomImages()', delay);
    </script>
    </head>
    <body onLoad="preloadImgs();randomImages()">
    Any help would be appreciated!
    Andy

    Wow - now I have a real doozy for you. That duplicate function has generated itself all on its own. The script in the template file is:
    <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    // Comma separated list of images to rotate
    var imgs = new Array('images/header1.jpg','images/header2.jpg','images/header3.jpg');
    // delay in milliseconds between image swaps 1000 = 1 second
    var delay = 5000;
    var counter = 0;
    function preloadImgs(){
      for(var i=0;i<imgs.length;i++){
        MM_preloadImages(imgs[i]);
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
      MM_swapImage('rotator', '', imgs[counter++]);
      setTimeout('randomImages()', delay);
    </script>
    As you can see - no duplication.
    For some inexplicable reason, this is being added in to all the html pages based on the template:
    MM_swapImage('rotator', '', imgs[counter++]imgs[i]);
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
    Which explains why it works in the template file but not in any the html files. Of course, because the code is not in an editable region, I can't remove it manually from the html files. Have you ever heard of code generating itself in this manner? Or how to solve it?

  • Convert Multipage fireworks document to HTML file

    Hi,
    I am preparing a Fireworks multipage file containing visual style guide of a product. I would like to convert this to html file for maintainance by other designers and developers. How can I convert all pages to a html file? I tried to export to html file but it exports only 1 page. How can I convert all the pages? I am using CS4.
    -Shivanand

    You can export multiple pages in a single step by selecting all the pages you want to export at once.
    -In the Pages panel, select the pages that you want to export.
    -Right-click, and select Export Selected Page(s).
    -In the Export dialog box, select one of the options from the Export menu:
    Layers To Files Exports layers in the selected pages as individual files
    States To Files Exports states in the selected pages as individual files.
    Pages To Files Exports selected pages as individual files.

  • Load html file and dependent files into a movieclip?

    So I'm trying to load output from articulate storyline which is a combination of html and swf files. So just having the swf file load didn't pull in the dependent files. I'm viewing my project in a projector file from flash, not a browser. So is it possible to have a button trigger an html file to display in a movieclip (like you can with and swf file and a loader)? I can get a button to trigger the html file to load in a browser tab, but I'd love for the html content to be pulled directly into a movieclip in a frame or loader. is this even possible?

    if you use adobe air, you can use the htmlloader class or stagewebview class.
    otherwise, you'll need to use javascript and the externalinterface class.

  • When I try to open the HTML file "file:///C:/Users/DHeimann/Documents/JP Cohousing/Retreat agenda 2014.htm", the system attempts to access Gmail and hangs.

    I can open various most other *.htm or *.html files on my C drive without a problem. However, there are other HTML files on the drive that do have this problem when I try to open them.
    When I try to open the file in Internet Explorer rather than Firefox, I get a message that JavaScript is not enabled. However, I do have JavaScript enabled, and have just updated Java to Version 7, Update 51.

    One of the problems with saving web pages from complex dynamic sites like Gmail is that you may be saving the instructions for rendering the page rather than the actual content of the page. In that case, if you are logged out of your account or there is a cross-site security bar to pulling the needed data, then the saved page may not display correctly or at all. If a message is critical, it's a good idea to print or save the page to PDF or grab a screen shot to work around that problem.
    The message you're getting in Internet Explorer may be related to the fact that IE has different security zones with different restrictions. For example, sites in the Internet Zone normally can run JavaScript, and sites in the Restricted Sites list cannot. The local computer zone has much tighter security compared with the old IE6/XP days, and that may explain what you're seeing there.
    P.S. Browsers interpret JavaScript internally without using the Java plugin.

Maybe you are looking for

  • My desktop hard drive failed. Most of the photos on my IPad were backed up but some were not.

    The only copies I have of some of them are on my iPad. Because they are the only copies I have I want to be certain how I should go about assuring I can get them as they are very important to my wife and me. If I reinstall iTunes to my rebuilt comput

  • Decentral Adapter Engine SOAP ( XI ) to ECC Proxy

    Hi, I'm facing a situation in one of our integration scenarios, where we have a Integrated Configuration ( Sender -> Decentral Adapter Engine -> Receiver ). File -> SOAP ( XI 3.0 ). On Adapter Engine I see the messages in OK status, but I didn't see

  • Help with FW drop shadow

    I have created a website in FWCS3 and when I put a background behind it (in DWCS3), the drop shadow effects I have do not work with any colors other than white.  Can anyone give some advice?  If I use another color for the background the shading look

  • Tax Management setting - goods and services

    Hello SAP experts, In my DMEE for tax declaration (tree type USM1), I need to distinguish tax codes for goods and tax codes for services. Is there any setting to distingsuish both type of tax? I have checked the data dictionary for table T007A but I

  • Importing FXG Into Flex Application

    I'm currently working on a SWF that is being built using the open source Flex 4.5.x SDK.  Part of the project requires that I import graphics in FXG format.  Since this is my first time handling this kind of import, I decided to build a sample in the