Put HTML reference on JSP

Hi everybody,
I'd like to have a web app based on jsp files which include different HTML files stored on Apache Web Server (on a different machine!!)
Ex. Header.html, Menu.html and so on...
I tried with Stuts tags but it seems not working with HTML files!
Es.
<template:insert template='/jsp/FixedPortal/template.jsp'>
<template:put name='Fixed_Portal' content='http://webserver/Portal.htm' />
</template:insert>
Do you know how to create JSP with struts or in another way.
Regards

I doubt the template taglib supports getting files from other servers. maybe write your own version which uses URLConnection to get the file?

Similar Messages

  • How to put Tool Tip in JSP page

    Hello.
    How can i put Tool Tip in JSP page and also html page.

    title="value"
    put this in all the tags whereever it is required

  • How to include HTML file in JSP using HTML elements or Javascript?

    Hi,
    I have around 15000 static html files one for each item which we display each upon invoking an item.The HTML file should be part of a JSP file.
    Please note that the name of the HTML file is determined dynamically
    Placing all the HTML files within the web application does not give us good performance so i would like to put all of them in the webserver.
    I am not able to include the file in the JSP using the jsp:include attribute if i place the HTML files in the webserver ,
    in order to do that i think should use either HTML element or javascript to include the HTML in the JSP.is there any alternative to <Jsp:include>
    Does anyone have an idea how to include the HTML file and take advan tage of webserver?
    Any ideas are appreciated

    What you need to do is simply read the HTML file from the disk and dump it out to the outputstream. It really is that simple.
    There's no reason you need to include all 15000 files in the actual WAR, you can place those files any place handy that is easy for the application to see (in another directory, or accessible from a file server if you have multiple front ends).
    Then, just write a utiility function that takes the output stream (i.e. the 'out' JSP variable), and the file name, read the file, and write it to the stream.
    If you start noticing performance issues, then you can try doing some caching, but truth is your OS should be doing that for you.
    But, truth be told that's the only practical way to do it.
    Another solution would be to use JavaScriipt and XMLHttpRequest (i.e "AJAX") to load the file at the client side, and simply replace a tag with the results.
    That's also pretty trivial to write, any web site talking about AJAX should give you hint there.
    Of course, that won't work for folks who have JavaScript turned off, or some other incompatible browser, whereas the server side solution obviously works everywhere.

  • How to call HTML page through JSP ?

    i want to know Hw to call Automaticly a HTML page through JSP.
    example :-
    have u seen yahoo login wen u put your ID & pass & Clock on login button it will chack ID & pass in the database & if it is correct then It will call A Mail Home Page.
    that's same i want to do.
    i have a jsp page which chacks the userID & Pass & call the first.html page
    but i dont know how to call html page automaticly.
    Any one can help me
    what i think is this
    tell me is it right or not
    suppose i have made a variable
    String add = "first.html"
    after chacking userID & pass
    if(idpass == true)
    add;
    if(idpass == false)
    erre;
    it will work or not pl tell me

    If you do the redirect with javascript, the user cannot resubmit his login when he presses the refresh button. When he does press refresh, he only refreshes the redirect, not the form post that was before it. When he presses back the redirect will also kick him back in stead of going back to the login page. A simple javascript redirect page would look like this:
    <html>
    <body onload="document.location.href='myhtmlpage.htm';">
    </body>
    </html>But that is only if you care about resubmits of course.

  • Contructing HTML tags in JSP files

    Hi,
    I am new oracle portal development and using version 10.1.4. version for my development. Our requirement is develop a portlet using JSR compliance API so we could deploy our portal applications across all vendors like IBM,ORacle,Vignette,weblogic,etc...
    As of now have written a portlet application where all html tags are constructed in Portlet Action class not in JSP file.
    Please help me to develop JSP file to put html contents and examples.
    Note: it should be JSR 168 compliance.
    thanks in advance
    thanks
    Suren

    That was an attempt to just change the outputText tag, not my actual CSS.
    Below is my "source" which i don't find particularly helpful, since its JSP/JSF doesn't it just use scripting to load new pages onto the original address?
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <link rel="stylesheet" href="../../theme/Master.css" type="text/css">
    <title>Product Catalog</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <meta name="GENERATOR" content="Rational Application Developer">
    </head>
    <SCRIPT type="text/javascript">
    window.onbeforeunload = function(){
         window.location.href = "/forms/faces/jsp/searchforms/Logout.jsp";
         unloadPage();
    function unloadPage()
         var now = new Date();
         var exitTime = now.getTime() + 500;
         while (true) {
              now = new Date();
              if (now.getTime() > exitTime)
              break;
    </SCRIPT>
    <FRAMESET cols="100%">
    <FRAME name="main" src="faces/jsp/searchforms/SearchForms.jsp">
    <NOFRAMES>Your browser doesn´t support frames!</NOFRAMES>
    </FRAMESET>
    </html>

  • Urgently Need Code for Copy & Paste from Html Table in JSP to Excel file

    I am creating a html table in JSP file .
    I need code for 'Cut,Copy,Paste' functions ie. if someone wants to copy data from my table to excel file or from excel file to html table he shud be able to do that.
    Can someone give me code for 'Cut,Copy and Paste' i.e. some javascript functions which can do cut, copy and paste which i can put in my jsp file
    Thanks
    Message was edited by:
    javatechguru2007

    package com.chinmayananda
    public class Tetris{
    // complete here
    code]
    public abstract class AbstractTetris {
       public abstract void start();
       public abstract void stop();
    }nearly done

  • How to put html file into a canevas?

    How to put html file into a canevas?

    Hi,
    would require you to write a JavaBean that interprets the HTML (there are commercial versions of this available)
    Frank

  • How can i render a dynamic html file in jsp page

    Hi everybody,
    i am trying to render a dynamic html file in jsp page with the result of querying a database.
    The response of the query is a xml document. And i have a stylesheet to transfer it to html.
    How can i render the html in a jsp file?

    I am using below code for HTML files
    private var appFile:String="index.html";
    if (StageWebView.isSupported)
                        currentState = "normal";
                        webView.stage = stage;
                        webView.viewPort = new Rectangle( 10, 130, (stage.stageWidth)-20, 750 );
                        var fPath:String = new File(new File("app:/assets/html/aboutus/"+ appFile).nativePath).url; 
                        webView.loadURL(fPath);
                        addEventListener(ViewNavigatorEvent.REMOVING,onRemove);
                    else {
                        currentState = "unsupported";
                        lblSupport.text = "StageWebView feature not supported";
    above code is working fine for me.

  • Referencing static html pages from jsps...

              Hi,
              This is probably a very simple thing to solve, but I'm having problems with referencing
              html pages from jsps under Weblogic.
              I get Error 404 - not found, whenever I try something like this in a JSP...
              <frame name="title" src="title.html" scrolling=no>
              The title.html file has definitely been copied into my ear file, and yet it isn't
              found. I can solve the problem by turning title.html into a jsp and registering
              it in web.xml. But this seems like serious overkill with static content!!
              Am I missing something really simple here?
              

              I've worked it out - directory mistake...
              Thanks,
              Chris
              "Matt Krevs" <[email protected]> wrote:
              >it sounds like a relative pathing problem
              >
              >is title.html reachable if you enter its address in the browser?
              >
              >is title.html in the same directory as your jsp?
              >
              >perhaps you could post your web.xml file?
              >
              >"Chris Sceats" <[email protected]> wrote in message
              >news:3d9c41b5$[email protected]..
              >>
              >> Hi,
              >>
              >> This is probably a very simple thing to solve, but I'm having problems
              >with referencing
              >> html pages from jsps under Weblogic.
              >> I get Error 404 - not found, whenever I try something like this in
              >a
              >JSP...
              >>
              >> <frame name="title" src="title.html" scrolling=no>
              >>
              >> The title.html file has definitely been copied into my ear file, and
              >yet
              >it isn't
              >> found. I can solve the problem by turning title.html into a jsp and
              >registering
              >> it in web.xml. But this seems like serious overkill with static content!!
              >>
              >> Am I missing something really simple here?
              >
              >
              

  • Where should i put html with applet class embedded?thanks

    Tomcat4.0 server
    i put html and applet class in the root of my project(/webapps/test/)
    when i hit the html file locally, it displays well. but it doesn't work when it comes to service.
    plus:the applet class is developed with jdk1.1.8
    any help is apprieciated!

    The first thing I would do is recompile the applet with a newer JDK. Second, you need to post more info on the problem. What do you mean by "service"?

  • Conditional HTML in a JSP page?

    I've been scouring the help and web for about 2 hours and haven't found a way to do this yet.
    What I'm trying to do is to conditionally generate attributes to a html tag via JSP, but everything I've tried (even stuff that's valid JSP) won't pass the JDeveloper HTML checks and it won't compile the JSP page.
    Specifically, I'm trying to add a bgcolor attribute to a <tr> tag if conditions are met in data in the row, but everything I've tried to get the added data in the tag results in some error.
    I've tried something like this in the HTML:
    <tr <%= color %> >
    and this from the java side:
    if (rowCont > 20) {
    out.prinln("<tr bgcolor=\"#c0c0c0\">);
    else {
    out.prinln("<tr>");
    Both methods result in lots and lots of HTML errors and JDeveloper won't even compile the page. The hmtl way resutls in "name expected" errors, and the java way results in a bunch of "end tag doesn't match start tag" errors.
    Any clues on ways to do this?
    Thanks

    Can you send me a larger snippet of code from your JSP? I do pretty much the exact same thing in all of our JSP's in our app. If you have a uix:form tag, you'll need to wrap all html inside uix:rawText tags.
    String colText = "class=\"OraTableCellText\" style=\"border-left:1px solid #CCCCCC;border-bottom:1px solid #CCCCCC\"";
    <td <%=colText%> >Text here </td>
    <td <%=colText%> >More Text </td>
    -Teri
    [email protected]

  • How to upload an html file using jsp and jdbc

    Hi,
    im trying to upload an html page using JSP and jdbc. but of no success.
    my aim is to keep some important html pages in the database.the file size can vary.the file has to be selected from a local machine (through the browser) and uploaded to a remote machine(where the databse resides).
    any help/sample code or pointer to any helpful link is appreciated.
    thanks in advance
    javajar2003

    When uploading a file, I use a byte array as a temporary buffer..
    So, you should then be able to store the byte array in the
    database as binary data.
    example>
    //Temporary Buffer To Store File
    byte[] tmpbuffer = new byte[860];
    //Some Code To Upload File...
    //File Should Now Be In Byte Array
    //Get DB Connection and execute Prepared Statement
    Connection con=//GET DB CONNECTION;
    String sql=insert into TABLE(page) values(?);
    PreparedStatement ps=con.prepareStatement(sql);
    ps.setBytes(1,tempbuffer);
    ps.executeUpdate();
    //Close PS and Free DB Connection
    ..... and this method looks like you dont even have
    to store the file in a byte array, you can just give
    it the input stream.
    ps.setBinaryStream(int, inputStream, int);
    You may have to make several attempts at this. I have
    uploaded a file and temporarily stored it in a byte array,
    but have never from there stored it in the DB as binary
    data.. but this looks like it'll work.
    Good Luck!

  • How to put HTML file in IFrame?

    I want to put HTML file in  IFrame. what i will do? please give details...

    Hi
    Copy the HTML file into your x:\<project name>\src\mimes\components\<your package name>\<your html>.html
    after that in NWDS -- > <b>IFrame</b> --> <b>Source</b> property just type <your html>.html
    Regards
    Chaitanya.A

  • Putting HTML around APEX items

    Gday,
    I am trying to convert the following HTML to APEX. I am trying to put the html around the APEX items but I cannot get them to sit properly in the tables.
    Can I put html around the APEX items? Or can I put in the HTML and access the objects via APEX?
    <TABLE WIDTH="100%" HEIGHT="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
       <TR ALIGN="CENTER">
          <TD HEIGHT="100%" VALIGN="MIDDLE" ALIGN="CENTER" WIDTH="100%" >
             <TABLE WIDTH="250" BORDER="0" CELLSPACING="0" CELLPADDING="0">
                <BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
                <TR>
                   <TD COLSPAN="3" HEIGHT="2" BGCOLOR="#336699"><IMG SRC="/i/spacer.gif" HEIGHT="2" BORDER="0"></TD>
                </TR>
                <TR>
                   <TD WIDTH="2" BGCOLOR="#336699"><IMG SRC="/i/spacer.gif" WIDTH="2" BORDER="0"></TD>
                   <TD>
                      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER" BORDERCOLOR="#336600">
                         <TR>
                            <TD VALIGN="MIDDLE" ALIGN="CENTER" ROWSPAN="3" bgcolor="#000000">
                               <img src="/i/logo.gif" border="0"  alt="logo" title="logo"><br>
                               <h3><font color="#FFFFFF">Login Page</font></h3>
                            </TD>
                            <TD WIDTH="2" BGCOLOR="#336699" ROWSPAN="3"><IMG SRC="/i/spacer.gif" WIDTH="2" BORDER="0"></TD>
                            <TD VALIGN="MIDDLE">
                               <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
                                                      <TR>
                                                           <TD HEIGHT="5"><IMG SRC="/i/spacer.gif" HEIGHT="5" BORDER="0"></TD>
                                                      </TR>
                                                      <TR>
                                                           <TD VALIGN="MIDDLE"> Username: </TD>
                                                           <TD VALIGN="TOP"><INPUT TYPE="text" NAME="p3_username"></TD>
                                                      </TR>
                                                      <TR>
                                                           <TD VALIGN="MIDDLE"> Password: </TD>
                                                           <TD VALIGN="TOP">
                                                  <INPUT TYPE="PASSWORD" NAME="p3_password" maxlength=15>
                                     </TD>
                                                      </TR>
                                                      <TR>
                                                           <TD HEIGHT="5"><IMG SRC="/i/spacer.gif" HEIGHT="5" BORDER="0"></TD>
                                                      </TR>
                                                      <TR>
                                                           <TD> </TD>
                                                           <TD HEIGHT="25" VALIGN="BOTTOM">
                                                              <INPUT NAME="p3_submit" TYPE="submit" value=" Login ">
                                                           </TD>
                                                      </TR>
                                                      <TR>
                                                           <TD HEIGHT="5"><IMG SRC="/i/spacer.gif" HEIGHT="5" BORDER="0"></TD>
                                                      </TR>
                                 </TABLE>
                            </TD>
                         </TR>
                               <TR>
                                            <TD HEIGHT="2" BGCOLOR="#336699" COLSPAN="4"><IMG SRC="/i/spacer.gif" HEIGHT="2" BORDER="0"></TD>
                                       </TR>
                                       <TR>
                            <TD HEIGHT="34" COLSPAN="3" ALIGN="LEFT" NOWRAP>
                                Enter Username and Password 
                               <br>
                               <center>
                                  <A href="security.changepass" title="Change Password">Change Password</a></center>
                            </TD>
                         </TR>
                      </TABLE>
                   </TD>
                   <TD WIDTH="2" BGCOLOR="#336699"><IMG SRC="/i/spacer.gif" WIDTH="2" BORDER="0"></TD>
                </TR>
                <TR>
                   <TD COLSPAN="3" HEIGHT="2" BGCOLOR="#336699"><IMG SRC="/i/spacer.gif" HEIGHT="2" BORDER="0"></TD>
                </TR>
             </TABLE>
    <BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>Cheers

    And like I said I basically want to put APEX text items inside Oracle HTMLAPEX can only handle items [created declaratively through the App Builder|http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#CHDGFCGB] or programmatically using the [APEX_ITEM API|http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/apex_item.htm#CACEEEJE].
    It looks like you want to create a Login Page. This is a standard APEX page type that can be created from the application home page: click Create Page >, select Login Page, and complete the wizard. The look and feel of this page is controlled by standard APEX [page layout techniques|http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/ui.htm#BABJIECG], and the [themes, templates and CSS|http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/themes.htm#CJABAEIE] applied. To achieve the required appearance in APEX, page and region templates and CSS can be modified to contain the necessary HTML and properties.
    Try experimenting a bit with the above. If you hit problems, raise new threads dealing with specific, discrete issues...

  • How to put flash as a table or cell background or put HTML elements on top of flash file?

    Hi Guys,
    Could anyone please suggest me that how to put flash file as a table or cell background. I want to design a website and want to put HTML elements like table, images, text on top of flash file. so its look like animation in background. please visit following websites for an example: http://www.gagudju-dreaming.com/ and http://disneyworld.disney.go.com/
    Please guide me ASAP, thanks a lot in advance.
    Nitz.

    Hi Nitz
    The first thing you must do is convert your layout from table based to css based, (tables are o/k for tabular data, but not layout) but if you have never used css for layout it may be a steep learning curve.
    My recommendation is to start with the following tutorial on converting a table based comp to a css layout -
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    More info on using css is available here - http://www.adobe.com/devnet/dreamweaver/css.html.
    Once you have converted your site the 'procedure' for using swf's as a background, (does not work well with flv's, but can be done using html5 video without a skin, to a limited extent) is the same as having a background-image resize automatically to the full browser view-port. The best way to learn how to do this is to view the code on a page using the background-image technique, view the code on this page - http://www.pziecina.com/indexold.php.
    However, instead of having a fluid layout I would recommend using a fixed layout size to start with, as this overcomes many problems. I have uploaded a basic test page to illustrate the idea to - http://www.pziecina.com/test_ideas/swfbg_test.html. As I said the page must be resized in this example in order to see the effect, (so do not forget to resize the browser, even if it is only by 1px), but if you use a fixed size layout and your swf's size fits the desired area correctly the resize should not be required.
    PZ
    www.pziecina.com

Maybe you are looking for

  • No disk located when upgrading to 10.6

    When i inserted the 10.6.3 disk and opened up the installer it brought me to a window to "select the disk where you want to install Mac OS X" but my disk doesnt show up (there is nothing in the box to select). I recently repaced the HDD and cloned th

  • JAXP Parsers Performance

    Hi, I need to carry out performance tests for DOM based XML parsing with schema(XSD) validation. (eg with Xerces,Crimson etc.) If there is any such benchmark result available, please let me know. Also if anyone has carried out such tests, please shar

  • Printer says "Incompatible Print Cartridge"

    I have a HP Photosmart D110 series..  I bought it yesterday and when I first started it, it worked fine until I went and registered it..  Now the printer says Incompatible Print Cartridges and refer to status screen on my computer for details. So I l

  • What about programs like excel and word? college students need these!!!

    college students need to be able to access files, send files, and store files using the programs excel and word, why cant i have these on my iphone?

  • Secondary EdCess In ARE3

    Dear Sd experts We are having Deemed Exports Senario while i am creating Excise invoice Basic Excise duty,Ed cess and SEcess are determing and the values also flowing into the data base table J_1iExcdtl  table but when i am creating ARE3 Document wit