JSP in place of server side includes

I would like to know what is a server side include and why is it that JSP is preferred to server side includes.

SSI is used to paste external parts into static HTML Pages and only for simple
things (not for programs, database accesses,..)
JSP is much better, because you can use a rich toolkit (JDK), can manipulate the HTTP-answer in more flexible manner as SSI, and all advantgaes of JAVA.
Regards,
Geri

Similar Messages

  • 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

  • SSI (Server Side Include)

    Hi folks.
    I have installed J2EE SDK 1.4_03 and I'm interested in using it to develop my personal website locally on my PC. At a later date I wish to upload it to a paid web host.
    The reason I have chosen to run a server rather than just accessing html files directly from my hard-drive is because I would like to utilize SSI (Server Side Include). That's really all. I'm not really interested in doing anything too interactive between the viewer and the server! Not yet anyway.
    I have found various information online but nothing is working. I'm sure there is information that I am missing or something further I need to do to actually initiate it. The information I have found says to un-comment the various section in the file default-web.xml located in this folder c:\Sun\AppServer\domains\domain1\config for this to be activated globally. Below is a copy and pasted chuck of text that I have un-commented within this file..
    Secondly I'm putting my test html pages in the folder C:\Sun\AppServer\domains\domain1\docroot using the include syntax that I have found all over the net such as <!--#ECHO var="DATE_LOCAL" --> & others.
    I can not get the thing to work. I'm guessing there is more to it. For a start... am I putting my html pages in the correct folder for this to work? And Is there something I need to do to activate the ssi servlet? The only reason I'm putting my test pages in this folder is because the page at http://localhost:8080 says that I can overwrite the index file to replace it. Is this the correct place for this?
    Also this class has me thinking... org.apache.catalina.servlets.SsiInvokerServlet Am I suppose to download this separately and put it somewhere? If so where is it? And where do I put it? I am horribly confused and I can not find any further information on this.
    If anyone could help me out on this topic I'd really appreciate it. btw, I'm a beginner in this area... I'd really just like to server html pages with ssi features at this point. Nothing more. The server seems to be working.
    Thanks,
    Tane
    <servlet>
    <servlet-name>ssi</servlet-name>
    <servlet-class>org.apache.catalina.servlets.SsiInvokerServlet</servlet-class>
    <init-param>
    <param-name>buffered</param-name>
    <param-value>1</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>expires</param-name>
    <param-value>666</param-value>
    </init-param>
    <init-param>
    <param-name>isVirtualWebappRelative</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>ignoreUnsupportedDirective</param-name>
    <param-value>1</param-value>
    </init-param>
    <load-on-startup>4</load-on-startup>
    </servlet>

    You can always use jsp:include or Apache tiles or something similar. I have not used SSI in a while, but you may want to check out those technologies, as they offer more than simply includes.
    - Saish

  • 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

  • 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 with Server Behaviors

    Is it possible to include pages that have server behaviors attached to them, or are these behaviors limited to pulling in just plain html from the included pages?
    For example, I want two pages, index.php and login.php.
    I want the login.php page to have all of the user login behaviors/links/fields/buttons/etc. and then Include that on the index.php page. Am I supposed to be able to do this using ADDT server side includes?
    I've been successful using server side includes to include static text on a page, but not dynamic content with behaviors attached. I'm not sure if I'm just have a mistake, or if this won't work in the first place.
    thanks!

    Hi,
    this is generally possible, as the included files sure can have their own server hehaviours -- did that several times, where the "container" page had about no server behaviours embedded, but the included file did.
    ADDT´s server side includes will, loosely said, basically just "dynamically" strip the included document´s "head", but leave other components like server behaviours untouched
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • TOMCAT - Enable Server Side Includes

    Hi, i tried to include files in my pages using <!--#include file="file_name"--> but its not working so i suppose i must configure my tomcat in some way in order to enable the server side includes (im tottaly new to TOMCAT) so, anyone can explain me how to do it?
    Thx!

    Hi, i tried to use the tag like this:
    <jsp:include page="../menu.jsp" flush="true" />
    But it did not work.. why?
    id did something like this:
    <% jsp code %>
    <html>
    <head>
    </head>
    <body>
    <jsp:include page="../menu.jsp" flush="true" />
    some content
    </body>
    is there any special use?
    thX!

  • Making drop down menus in server side includes

    Can drop down menus be part of a server side include? If not,
    how do I have drop down menus in my pages without copying the code
    to all the pages individually?
    I am working in Dreamweaver 8 on a Mac. I've made the drop
    down menus using the behaviors window. Everything is fine in the
    original html file. When I use the file as an include in my main
    page, the javascript drop downs do not work. I have the style sheet
    used in the drop down file attached to the main page. What do I
    need to do with the main page to have the drop down menu work? I
    need to use this drop down on the majority of my pages. Thanks!
    Note: I've taken out the extra code in the include file
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head> <meta http-equiv="Content-Type" content="text/html;
    charset=ISO-8859-1" /> <title>Untitled
    Document</title></head><body></body></html>

    > Can drop down menus be part of a server side include?
    Sure - it's the only way I do them.
    > I've made the drop down menus using the behaviors window
    That's too bad. You will want to read this -
    http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/
    There are MUCH better ways -
    Check the uberlink and MacFly tutorials at PVII -
    http://www.projectseven.com/
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "aacjp" <[email protected]> wrote in message
    news:[email protected]...
    > Can drop down menus be part of a server side include? If
    not, how do I
    > have
    > drop down menus in my pages without copying the code to
    all the pages
    > individually?
    >
    > I am working in Dreamweaver 8 on a Mac. I've made the
    drop down menus
    > using
    > the behaviors window. Everything is fine in the original
    html file. When I
    > use
    > the file as an include in my main page, the javascript
    drop downs do not
    > work.
    > I have the style sheet used in the drop down file
    attached to the main
    > page.
    > What do I need to do with the main page to have the drop
    down menu work? I
    > need
    > to use this drop down on the majority of my pages.
    Thanks!
    >
    > Note: I've taken out the extra code in the include file
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html
    > xmlns="
    http://www.w3.org/1999/xhtml">
    <head> <meta
    > http-equiv="Content-Type"
    > content="text/html; charset=ISO-8859-1" />
    <title>Untitled
    >
    Document</title></head><body></body></html>
    >
    >

  • SSI Server Side Includes searchable?

    I'm creating a site that uses Server Side Includes to pull
    content into pages. The client wants to include a Search function
    to the site. My question is can a search function not only find the
    SSI pages but pull them up directly?
    Please see
    http://www.trainride.org/mtm_index.shtml
    The 2nd line of the bottom navigation are links that pull
    content into the page with server side includes. Is there a way to
    search and load the content pulled in by the server side includes?
    Any help would REALLY be appreciated.
    Thanks in advance!

    Melissa,
    I believe that the search engines create their indexes using
    spiders
    that walk through all of the browser links in your site. The
    content of
    your SSIs get embedded into your page on the server, so there
    is no
    actual link by the time the page gets to the browser.
    So, I think you need to add a hyperlink to your SSI pages
    some (maybe
    hidden) place in your site so the spiders will find them.
    HTH,
    Randy
    > I'm creating a site that uses Server Side Includes to
    pull content into pages.
    > The client wants to include a Search function to the
    site. My question is can a
    > search function not only find the SSI pages but pull
    them up directly?
    > Please see
    http://www.trainride.org/mtm_index.shtml
    > The 2nd line of the bottom navigation are links that
    pull content into the
    > page with server side includes. Is there a way to search
    and load the content
    > pulled in by the server side includes?

  • 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
              

  • Cannot Preview Server Side Includes in Browser

    I am working on building a new site using server side
    includes for the main header graphic and menu items. For testing
    purposes, I created an .html file with one <div> tag
    containing a single graphic and an .shtml file with the server side
    include code placed in the <head> area. (Doesn't seem to work
    if I place it anywhere within the <body> tag... not sure
    why). At any rate, I can see the SSI in the design view of my
    document, but cannot see it whenever I go to preview the page in my
    browser (Firefox 2.0.0.3). Everything works fine if I upload the
    files to my Web server and view them that way, but why can't I see
    the SSI when working on my local files? The Dreamweaver help files
    explain that I should be able to do so, but it's just not working.
    Well, I'm now at a loss and cannot figure out if I'm doing
    something wrong of if this is just a bug of some kind. Can anyone
    help me to solve this problem so that I can get back on track?
    Much appreciated,
    ~Greg

    >I am working on building a new site using server side
    includes for the main
    > header graphic and menu items. For testing purposes, I
    created an .html
    > file
    > with one <div> tag containing a single graphic and
    an .shtml file with the
    > server side include code placed in the <head>
    area.
    This is not going to work at all. You cannot place body HTML
    in the <head>
    region.
    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
    ==================
    "Myrrhlin225" <[email protected]> wrote in
    message
    news:f1hdmh$clh$[email protected]..
    >I am working on building a new site using server side
    includes for the main
    > header graphic and menu items. For testing purposes, I
    created an .html
    > file
    > with one <div> tag containing a single graphic and
    an .shtml file with the
    > server side include code placed in the <head>
    area. (Doesn't seem to work
    > if I
    > place it anywhere within the <body> tag... not
    sure why). At any rate, I
    > can
    > see the SSI in the design view of my document, but
    cannot see it whenever
    > I go
    > to preview the page in my browser (Firefox 2.0.0.3).
    Everything works
    > fine if
    > I upload the files to my Web server and view them that
    way, but why can't
    > I
    > see the SSI when working on my local files? The
    Dreamweaver help files
    > explain
    > that I should be able to do so, but it's just not
    working. Well, I'm now
    > at a
    > loss and cannot figure out if I'm doing something wrong
    of if this is just
    > a
    > bug of some kind. Can anyone help me to solve this
    problem so that I can
    > get
    > back on track?
    >
    > Much appreciated,
    > ~Greg
    >
    >

  • Server side includes vs Library assets?

    I like server side include because I just see a single line referring to the included file, and that keep my code free of 'irrelevant' detaiuls.
    However, I cannot preview my program in a local browser (because the include takes place on the server, and not locally on my machine).
    Is there a compromise?  Is there a way to NOT have Dreamweaver CS4 (on my iMac) expand the included library code?

    I am not using anyPHP in this project, so I do not specify it.  I tried specifying in, but that made no difference.
    http://localhost shows me the default index file that is in //Application/MASMP/htdocs (sonce I used MAMP to get PHP up and running).
    The issue seems to be to do with relative paths.
    On my remote server I am installig the files into a folder named /NWC/  The domain name (www.BilliantlySimple.com) is set up to point to that folder.
    I can see the page EXACTLY as I would expect it to be in design view, HOWEVER, when I go to live view it is not finding all of the files that it need to include.  Id does find the such as the CSS file (included with the line: <link href="../_css/Test.css" rel="stylesheet" type="text/css" media="screen" />) BUT any image files included for, say background-image: url(../_images/bg_dot.gif); it does NOT find (even though images in the page itself it can find!)
    I  am using Pop Magic Menus 2 and including those with these lines:
         <link href="../_includes/p7pmm/p7PMMh07.css" rel="stylesheet" type="text/css" media="all" />
         <script type="text/javascript" src="../_includes/p7pmm/p7PMMscripts.js"></script>
    BUT it does NOT find the files to include ONLY in Live view!!!!
    You can see what I am working on at http://www.BilliantlySimple.com but since I cannot use Live view to see the finished result I have to put the code onto the server to see how it is behaving.

  • Server-side includes question

    I preface this all by saying that I have never used a
    server-side include but am considering it based on a suggestion
    from a thread yesterday.
    If I created a server-side include file that contained only
    my title banner/nav bar and placed that file at the top of each of
    my pages, would it then be possible to have content (Flash, in this
    case) from an editable region in a template-based file display on
    top of that banner? Can they overlap, I guess is what I'm asking.
    Thanks - JAY

    > This would probably be an issue mostly if you don't want
    to synchronize
    > your
    > entire site, I suppose. What about file directory
    issues? Can you keep
    > pages in
    > sub-directories based on the specific template from
    which they were
    > created or
    > will that cause problems (such as SSI functionality)?
    DW is quite smart enough to manage your page links.
    Plus, if you can use virtual includes, then the link to the
    include files
    will be the same for any page in any location in your site.
    So - you have no link worries in this sense. But a more
    specific example
    that leads you to ask your question might help get a better
    answer here.
    > class 1. I've got my nav bar/title banner
    > happening as an SSI to be included on all pages - class
    2. Lastly, all
    > page-specific content including detail text, images, and
    some info and nav
    > Spry
    > panels will appear in editable regions, (defined by
    divs, presumably?) -
    > class
    > 3. WIth the latter, I'll preload the editable regions
    with the type of
    > content
    > I want and then customize it on each page, relink, etc.
    Using an editable region for a section-specific navigation
    include is a
    great way to do it.
    Good luck!
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "LumberBisquit" <[email protected]> wrote in
    message
    news:[email protected]...
    >
    quote:
    Originally posted by:
    Newsgroup User
    > But underlying it all is this nasty requirement to
    upload all changed
    > files.
    >
    >
    > This would probably be an issue mostly if you don't want
    to synchronize
    > your
    > entire site, I suppose. What about file directory
    issues? Can you keep
    > pages in
    > sub-directories based on the specific template from
    which they were
    > created or
    > will that cause problems (such as SSI functionality)?
    >
    >
    quote:
    > First, I mentally separate the page layout into three
    sections:
    >
    > 1. Stuff that will not change for the life of the site
    (i.e., the basic
    > structural elements)
    > 2. Stuff that *could* change from time to time (e.g.,
    navigation
    > elements,
    > burst advertisements, section-specific navigation, etc.)
    > 3. Stuff that *will* change from one page to the next
    >
    > Then I create a template containing all class1 elements.
    Next I create
    > server-side include files containing all class 2
    elements and place them
    > on the
    > template as needed. Note - some of the class 2 elements
    may be
    > "section-specific elements", and their placement on the
    template will be
    > subject to the next item. Finally, I insert editable
    regions to cover the
    > class
    > 3 items, INCLUDING the section-specific navigation.
    >
    >
    > This makes sense to me and is very much what I had in
    mind, (after asking
    > lots
    > of questions on this forum, that is). This site will
    need at least three
    > different structural pages - class 1. I've got my nav
    bar/title banner
    > happening as an SSI to be included on all pages - class
    2. Lastly, all
    > page-specific content including detail text, images, and
    some info and nav
    > Spry
    > panels will appear in editable regions, (defined by
    divs, presumably?) -
    > class
    > 3. WIth the latter, I'll preload the editable regions
    with the type of
    > content
    > I want and then customize it on each page, relink, etc.
    >
    > Thanks so much!
    >
    > JAY
    >

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

Maybe you are looking for

  • Ipod isn't recognized by itunes after trying everything

    i've searched the apple website high and low to find a solution to my problem with itunes 7. i have a 60GB 5th gen and no matter how many times i have re-installed, updated and did the 5 r's my ipod will not show up in itunes after i close out and op

  • Help! How to send Dynamic HTML table as an email?!

    hi i want to send a dynamic html table as an email i am using php/mysql and have a mysql database i have a dynaimc table contins some data from the database i have a form with textbox to write the email in and a submit button i want to send the the t

  • Exracting Nested Structure as raw String

    Hi all, I think this is a unique problem, and was wondering if anyone else has encountered this, or has clean suggestion. lets say the xml is as follows: <foo>    <bar>    </bar>    <stuff>       <sometag>        </sometag>    </stuff> </foo>I'm usin

  • Mac 10.7.5 Lion2012, and Sophos auto updat problem

    I have Mac OS X 10.7.5 Lion 2012, as it was suggested in the forum, I downloaded the Sophos av for Mac,  but I keep seeing the following warning in auto up date.   Please help 3/5/14 10:42:08.332 AM SophosWebD: <SMENode: 0x7ff9cb042dd0> localNode csc

  • Urgent - Servlet with Property file

    Hi all, I have a servlet which ueses a property file to get the Database information such as Driver, URL etc. The content of the property file is dbDriver=sun.jdbc.odbc.JdbcOdbcDriver dbDSN=jdbc:odbc:Sundar dbUser= dbPassword= The servlet has the fol