Re: include uploaded by a customer html to jsp

From: Chris Smith (cdsmith_at_twu.net)
Date: 12/17/03

  • Next message: Chris Smith: "Re: Target VM Microsoft? or Java Lint to check for MS VM compatibility?"
    Date: Wed, 17 Dec 2003 12:55:56 -0700
    
    

    Natasha wrote:
    > I need to include header into jsp page. This jsp is a SiteMesh
    > decorator. The only thing it should do - apply header and footer to
    > the output.
    > This jsp page decorates pages generated by Struts and Java.
    > This header is an html file and uploaded by a customer and it stored
    > in URL like:
    > /appName/fileservise?upload/header2.html - I used this path when
    > access the file from XSL pages and it worked OK.
    > How can I reach this file from jsp?
    >
    > When I just put those HTMLs inside applicatin using <jsp:include> it
    > was OK, that means there is nothing wrong with Sitemesh. I am just not
    > expiriensed with JSP.

    The path in jsp:include is context-relative, so if "/appName" is your
    context path, try "/fileservise?upload/header2.html".

    That said, it still may not work because the path you're asking for is
    broken. Why are you using a broken URL like that, as opposed to
    "/fileservise?file=upload/header2.html"?

    -- 
    www.designacourse.com
    The Easiest Way to Train Anyone... Anywhere.
    Chris Smith - Lead Software Developer/Technical Trainer
    MindIQ Corporation
    

  • Next message: Chris Smith: "Re: Target VM Microsoft? or Java Lint to check for MS VM compatibility?"

    Relevant Pages