Server-Side Includes in weblogic server 5.1

          Hi,
          I tried Server-Side Includes examples in weblogic server 5.1 thru .shtml file.
          I am able to load the .shtml file but its not loading the included servlet. But
          I am able to load the included servlet alone separately.
          Somebody can be assist me what I have to do?
          I am using WebApplication WAR structure for my application.
          ex: http://localhost:7001/esp/hellooWorld -- loading the servlet
          http://localhost:7001/esp/html/ServletInclude.shtml -- not loading servlet
          where 'esp' name of the WebApplication
          The .shtml file code is given below
          <html>
          <body>
          <servlet name=hellooWorld>
          </servlet>
          </body>
          </html>
          Looking forward for some help
          Thanks
          

          Your WebLogic doesn't know it's supposed to be doing server-side includes. Make
          sure you have .shtml registered/enabled - see the docs.
          Mike
          "Jyothi" <[email protected]> wrote:
          >
          >Hi Mike,
          >Thanks for your reply.
          >>What errors (if any) do you see in the log file?
          >Just coming up with blank screen. No errors reported in log file. Nothing
          >coming
          >in log file regarding the servlet.
          >>
          >>When you display the page in a browser, what does View -> Source show?
          >Just getting blank screen. If I see view source same source code coming
          >up. Here
          >is the view source when I view it from browser
          >**********************************************
          ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
          ><html>
          ><head>
          ><title>Including a servlet with SSI</title>
          ></head>
          >
          ><body
          > bgcolor="#FFFFFF"
          > link=#DB1260
          > vlink=#828282>
          >
          ><font face="Helvetica">
          >
          >
          ><p>
          ><servlet name=hellooWorld>
          ></servlet>
          >
          ></font>
          ></body>
          ></html>
          >*********************************************************
          >>Did you register the servlet?
          >Yes. I registered the servlet. Thats why if I load the servlet alone
          >I am getting
          >the output.
          >http://localhost:7001/esp/hellooWorld -> url used to load servlet alone
          >>
          >I hope this info helps to you to analyze my problem
          >
          >Thanks
          >Jyothi
          >>
          >>"Jyothi" <[email protected]> wrote:
          >>>
          >>>Hi,
          >>>I tried Server-Side Includes examples in weblogic server 5.1 thru .shtml
          >>>file.
          >>>I am able to load the .shtml file but its not loading the included
          >servlet.
          >>>But
          >>>I am able to load the included servlet alone separately.
          >>>Somebody can be assist me what I have to do?
          >>>I am using WebApplication WAR structure for my application.
          >>>ex: http://localhost:7001/esp/hellooWorld -- loading the servlet
          >>>http://localhost:7001/esp/html/ServletInclude.shtml -- not loading
          >servlet
          >>>
          >>>where 'esp' name of the WebApplication
          >>>
          >>>The .shtml file code is given below
          >>>-----------------------------------
          >>><html>
          >>><body>
          >>><servlet name=hellooWorld>
          >>></servlet>
          >>></body>
          >>></html>
          >>>--------------------------------------------------
          >>>
          >>>Looking forward for some help
          >>>
          >>>Thanks
          >>>
          >>>
          >>>
          >>>
          >>>
          >>
          >
          

Similar Messages

  • Enable Server Side Includes in Appp server 8?

    Hello
    Java App Server 8
    I posted again in case my original post wasnt clear. Im trying to find in the admin guide where I can find instructions on how to enable Server Side Includes in my application ie. how to allow .shtml documents.
    Any suggestions appreciated.
    Jon

    Hi !
    I have installed Sun App server 8 update 1 on a Windows server 2003.
    Is it possible to run the application server as a NT service ?
    If so how can I accomplish this ?
    /Regards Krister

  • Contribute changing relative path for server-side include

    I am using Contribute CS3, version 4.1, and my pages crash
    every time a send a draft for review, because Contribute is
    rewriting a relative URL in a server-side include.
    The server-side include (before I send for review) reads:
    <!--#include file="../foo/bar.fileextention"-->
    After I edit other portions of the page and send the draft
    for review, it reads:
    <!--#include file="http:
    //www.servername.com/foo/bar.fileextension"-->
    Which results in the draft being unreadable.
    Is there any way to tell Contribute not to monkey with this
    URL? I have hunted, read the forums, checked the knowledge base,
    and coming up empy.
    Thanks in advance for any help you can provide!! I really
    appreciate it!
    -Nicholas

    Answering my own question.
    I researched this complete forum and with taking ideas from
    different posts, I was able to figure this out. I thought I would
    post it for anyone else needing to know the answer in one place:
    Include tags must read:
    <!--#include virtual="includes/fileName.html"-->
    (Include file is NOT a real HTML doc -- no tags in file
    except for CSS, as it would be used if not using Contribute.)
    No reference to .dwt needed nor Template created.
    No Edit instance tags needed anywhere.
    Contribute user navigates to page:
    [Upper right corner] Click Choose...
    [In my structure] User opens includes folder (double clicks)
    User selects THE file (clicks OK)
    User clicks on Edit Page button
    (Text is now editable.)
    User edits text.
    User clicks on Publish button.
    Worked for me several times trying.
    - Janet

  • WLS5.1 (Sp5)/Netscape 3.6 & Server Side Includes

    We are trying to dynamically create a reference to a server side
              include(ssi) in a JSP rendered
              by the Weblogic servlet engine. Unfortunately, the combination of WLS and
              netscape is treating the dynamically generaetd ssi as a comment (instead of
              forwarding the server side include to the netscape webserver for further
              evaluation or actually resolving the server side include).
              Has anyone encountered a similar problem i.e. attempting to have the SSI
              resolved in the proxy webserver instead of having weblogic simply interpret
              and forward the ssi as a comment?
              We're using Weblogic 5.1, Netscape Enterprise Server 3.6.
              Thanks
              

    We are trying to dynamically create a reference to a server side
              include(ssi) in a JSP rendered
              by the Weblogic servlet engine. Unfortunately, the combination of WLS and
              netscape is treating the dynamically generaetd ssi as a comment (instead of
              forwarding the server side include to the netscape webserver for further
              evaluation or actually resolving the server side include).
              Has anyone encountered a similar problem i.e. attempting to have the SSI
              resolved in the proxy webserver instead of having weblogic simply interpret
              and forward the ssi as a comment?
              We're using Weblogic 5.1, Netscape Enterprise Server 3.6.
              Thanks
              

  • What is the difference between jsp :include and server side include

    what is the difference between jsp :include and server side include(request dispatcher include method)????
    i understand that both request dispatcher include method and jsp:include take dynamic data,so when would one use request dispatcher include and when jsp:include.
    Is the usage interchangeable?i believe jsp include is used only for jsp/html but include directive can be used to include servlets ,jsp and html....correct me if i m wrong and
    do suggest if u hav ny other diff in this context...

    The difference really is: in what format do you want your inclusions? If your environment has many Java developers and only a few designers that focus mainly on, say, Flash, that might push you more towards the server-side include() directive. Or, if you have a large set of pages that receive dynamic content that is displayed in a consistent fashion (such as a workflow header area on a page).
    If, on the other hand, you have more web designers, there may be a greater desire to deal in markup rather than Java code. Java developers themselves might prefer to view markup (JSP) that more resembles the eventual output than something occuring in Java code.
    Finally, there are considerations of tiering. While it is totally possible to (and I have previously) implement 'view classes' that render markup or generate layout templates, JSP's offer, IMO, a subtle, psychological advantage. By forcing a developer to work in a different format, markup versus Java source, the separation on view from controller and model becomes a bit easier. It is still possible to make mistakes, but if a developer at some point notices, "Wait, I'm in a JSP, should I be importing a java.sql class?", then the choice to use JSP includes has paid off in spades.
    - Saish

  • Server-Side Include Issue - Please Help

    I am having trouble using server-side includes in
    Dreamweaver. When I use the SSI to insert the header file, the
    header document shows up on the page in design view, but I cannot
    click anything. The cursor turns into a "no sign" no matter where
    it is on the page. I cannot see anything but the header document,
    and I cannot click outside of it or anywhere else in design view.
    When I test the whole document in a web browser it actually seems
    to work just fine. I see the header and the other text on the page
    (unlike in dreamweaver, I cannot see anything but the header). Also
    in Dreamweaver code view, the php tags and the included filename
    are in red. This is the code for the test document:

    On Wed, 7 Mar 2007 04:02:29 +0000 (UTC), "AngryCloud"
    <[email protected]> wrote:
    > <?php include("header.php"); ?>
    What does the code look like in header.php? Does it have
    <html>, <head>
    and <body> tags? It should not.
    Gary

  • Problem in Server side includes using Tomcat

    Problem in Server side includes using Tomcat:
    I am trying out small programs in servlet.
    I get one example program for server side includes from net.
    The code is:
    <HTML>
    <HEAD><TITLE>Times!</TITLE></HEAD>
    <BODY>
    <P>
    The current time in London is!!! :
    <SERVLET CODE="CurrentTime" codebase="../servlet">
    <PARAM NAME="zone" VALUE="GMT">
    </SERVLET>
    </P>
    </BODY>
    </HTML>
    I placed this test.shtml file in tomcat-home/webapps/ROOT folder and i kept the servlet in WEB-INF/classes folder.
    I renamed the servlets-ssi.jar and i removed the comments for SSI in web.xml file.
    When i run the servlet separately, i am getting the correct result. But if i run shtml file with the URL : http://localhost:8080/Test.shtml,
    i am getting the result as:
    The current time in London is!!! :
    It is not invoking servlet program.
    CAN ANYONE HELP ON THIS!
    Thanks.

    Thanks...as u said I tried putting dir & found that
    my file was saved as Ch1Servlet.java.txt instead for
    Ch1Servlet.java......So that was a problem.Now I'm
    able to compile.Oh, yeah. Notepad will do that to you. I think when you save in Notepad if you put quotes around the name "Whatever.java" then it won't add the .txt.
    But on compiling I'm getting the following error
    package java.servlet.* does not exist
    package java.servlet.http.* does not exist
    package java.io.* does not exist
    Do u the reason for this??? The servlet stuff is java[b]x.servlet. For the io stuff, I don't know, I'd have to see your code. Either you have a typo or a corrupt installation.

  • Spry accordion widget - SSI (server side include) as content in the panel

    After having inserted the following command <!--# include file = "content2.asp" -> in the accordion Panel Content I get an error in Dreamweaver - every time I open the file. See the error in the attached picture.
    Once all files are uploaded to the server it works apparently without problems or script errors.
    Is there anyone who can help me to use SSI "server side include" as content in accordion panels?

    Thanks for your reply.
    The fault lay in the SSI file. This file contained these tag:
    </ html>
    And of course the tag </ html> generate an error if the tag is inserted in the content of the accordion panel via ssi file.

  • Server Side Includes not displaying in DW CS3 design view

    I have this code in my page (see below):
    When I open the file in Dreamweaver MX 2004 in design view,
    the page displays correctly. That is, I see the correct styles from
    the style sheet contained in Head_Standard.html and the logo/menu
    in Logo_TopMenu.html
    When I open the page in DW CS3, I do not see the effects of
    the style sheet and I do not see the logo/menu.
    However, when I change the code for the first include from:
    virtual="/ServerSide
    to
    virtual="
    ../../ServerSide
    then the page renders correctly in Dreamweaver CS3.
    My first reaction was: what?! And my question is: how do I
    use a root reference inside the head and get it to display properly
    in DW CS 3?

    "Go to Edit > Preferences > Invisible Elements >
    Server-Side Includes (Check this box) to show contents of included
    file"
    I already do this.
    For me:
    /ServerSide... does NOT work
    ../../ServerSide... works
    So, a relative reference works and a reference to the root
    does not. I have over 20 websites with root references and I need
    this to work in DW9.

  • Server Side Includes not rendering correctly in Firefox with Layers

    Hi
    The server side includes are not correctly rendering with layers in firefox. From my site here:-
    http://www.osteriastecca.com/index.php
    the home_page.php content renders above a layer on the index.php page. Initially I thought this might be a Flash layer issue but the wmode is set correctly to transparent and it works fine with a normal ssi. It also works fine in Firefox without a server side include as you can see here:-
    http://www.osteriastecca.com/index_old.php
    Works fine in IE and Safari, but not Firefox.
    How can this be rectified?
    Regards
    Glennyboy

    What testing server setup do you have? Are you using something like WAMP?
    What do you see on screen which tells you the SSIs are not rendering? Any error message?

  • Server Side Includes

    I would like to create a website that allows the business owner to post information by simply updating a Word or Excel document and uploading it to the server.  I'm using a Server Side Include to bring in the .doc and .xls files.  It kind of works... I can see the data from these files, but the formatting is crazy and includes a bunch of extra characters.  I've set the extension as .shtml and selected "virtual" for the Apache server.
    I've searched the forums for an answer, but it doesn't look as this has been addressed.  Thanks in advance for you time!

    Ah, very good point.  I've actually tried that with some sample text and it shows up fine in my browser, but I had assumed that creating a page in Word or Excel wouldn't allow for the same level of functionality and aesthetic that I've created with the original page in Dreamweaver.  I will go ahead and play with Word to see what can be achieved.  Thanks and sorry for the newbie question!

  • Server Side Includes and Divs

    I have a template (dwt) for my site with editable regions for
    menus. I want to use Server Side Includes for the menu, as not all
    the pages will have the same menu.
    I have designed the site template (and pages) with css and
    divs. The area for the SSI is a div of size 145x335. The menu which
    I want to put inside this div will be a div based menu. I havent
    had any luck displaying the Div from the SSI yet. I have been
    looking on Google for help, but not much luck. I can get the Div to
    appear but the formatting doesnt show up.
    Im putting the SSI code in where I want it on the page, but
    im not sure exactly which code to get rid of in the shtml file. I
    know I need to remove body, head parts etc
    My site template uses CSS stored on the document, not an
    external css file.
    Any ideas?

    > Im sure Ive not got it right yet!! My head wont work
    lately!
    Yes. It's not working well here, either.
    Create your template with the editable region. In it, have
    links to a) the
    general stylesheet for all the pages, and b) the general
    stylesheet for all
    of the includes (these don't really need to be separate
    files). Spawn a
    child page, drop in the desired include, and save that page
    as
    whocares.shtml.
    That's it....
    The incude files themselves can be names anything you want -
    I like the
    'monkeybutt' extension, e.g.,
    yourinclude.monkeybutt
    The include files can make reference to CSS selectors, but
    cannot have
    embedded CSS rules, or links to external CSS files.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "~Billy~" <[email protected]> wrote in
    message
    news:eq234v$eq6$[email protected]..
    > Ive made myself confused now! I need it spelling out to
    me!
    >
    > Ok, a template file (dwt) with its css as an external
    style sheet.
    >
    > Rest of the sites pages made from the template file.
    >
    > Next, the template has one editable region for a choce
    of 2 div based
    > menus to
    > be placed into. Place either of these div menus into the
    template editable
    > region by creating two seperate SHTML files - one for
    each menu with the
    > body/head removed(and with internal or external css?)
    >
    > Next put the SSI code into the body of the template
    where I want the SSI
    > to
    > appear.
    >
    > Im sure Ive not got it right yet!! My head wont work
    lately!
    >

  • Server Side Includes for Apache and parsing text files

    I have an old website I used to do zipped up and I decided to set it up on my personal webserver in OS X . I got apache configured to allow server side includes (edited the httpd.conf to all them:
    <Directory />
    Options FollowSymLinks Indexes MultiViews Includes
    AllowOverride None
    </Directory>
    But I can't get the pages to come up. See I have this .shtml page which loads fine and a part of it has this line:
    <!--#include file="news/news.txt" -->
    But it won't parse that txt file and show the html that its formatted in.
    Anyone have any ideas on how to get it to parse that txt file? Even if I load just that txt file it shows raw code not it formatted. Please help.

    Ignore that first reply. I thought I was dealing with server.
    As usual, I fogot to make sure that Includes was in the Options directive for the DOCUMENT_ROOT or VirtualHost. After 10 years, you'd think I'd remember that. I just configged one of my macs to do SSI. Here's the 3 lines that I changed:
    Line 399 (the DOCUMENT_ROOT definition): Options Indexes FollowSymLinks MultiViews Includes
    Line 887 (To use server parsed HTML): AddType text/html .shtml
    Line 888: AddHandler server-parsed .shtml
    apachectl restart
    and off it went!
    Roger

  • Server-side includes from a table

    The instructions are very basic and do not include instructions on how to use server-side includes from a table.
    I can find nothing on Google or at Adobe on this subject, not even on the old InterAKT site.
    Has anyone got a demo, tutorial etc. or just some advice please.
    I have created a table in the database, embedded the script in the page but what now?
    I find the server-side includes from a list easy to use but it has limitations that I hope server-side includes from a table will overcome.

    I found the answer, all on my own. Go to http://www.interaktonline.com/Documentation/MXKollection/108000_sever_side_includes.htm
    Its a video demo and all is revealed.

  • Server-side includes not rendering

    Hi, I'm on CS5.5 (Windows operating environemnt). The server-side includes are not rendering in Live view now, whereas they were previously. Is this some sort of configuration issue, if so can you help me fix it.

    What testing server setup do you have? Are you using something like WAMP?
    What do you see on screen which tells you the SSIs are not rendering? Any error message?

Maybe you are looking for

  • Hi I want to but more storage as I have gone over my amount. I cant make any sense of the jargon on the site as mildly dyslexic. Can someone tell me in a clear and SIMPLE way how to do this please?

    Bad start put my question above Lol!! As it says I need a simple instruction on how to buy more storage.  My plan only provided 20 GB. Too small! Please help me. I am not very good with reading instructions. My mind goes all blip blip blurp if I see

  • PDF file is blank in external email attachment

    Dear all, I have successfully convert a SAPScript to PDF file and then attach in email to be sent to customer externally. However, the contents in the attachment is blank. It works properly if I remove the email function, and download it to front end

  • Change Data Plan

      I'm writing because I very dissatisfied with Verizon at this time, I wish to change my plan I don't use 700 minutes the most I have used is 125.  I don't even meet the text limits with the phone. I have  a family plan and the second phone on the pl

  • Show/Hide PHP If user logged in

    Hi, I have done some research and nothing seems to be working. I'm also not very experienced with this. I have on my side frame a section where if the user is NOT logged in, we the sign in form appears and if the user IS logged in, a simple 3 rowed t

  • Better sound

    Just bought a new Samsung 65 LED HDTV.  I am somwhat hearing impaired.  Tried to use the setting "clear listening" and the "amplified" sound settings under tools.  Best I can determine, I can't have both at once.  Also, didn't find a place where I hi