How to Include a HTML file in a UIX Page
I have an old .html file (content.html) which contains some infomation and now I want to present that information inside a Uix Page! Is it possible to do so if then how.
I tried using uix include tag but no luck.
Any help is greatly appreciated.
Thanks
Kolluru
Here is the .jsp file and the serverinclude tag is written in the 4th line from last.
<uix:servletInclude source="layout.html" />
I want the content of the layout.html in the main content pane but instead it is getting added on to the top or to the SideNav.
Thanks for the help anyway.
====================================================
<%@ page errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<jbo:ApplicationModule id="MyBC4JModule" definition="MyUIX.MyBC4JModule" releasemode="Stateful" />
<jbo:DataSource id="ds1" appid="MyBC4JModule" viewobject="EmpView1" rangesize="4" />
<%-- user interface begins here --%>
<HTML>
<HEAD>
<TITLE>Oracle Migration Maps </TITLE>
<uix:styleSheet/>
</HEAD>
<BODY>
<uix:pageLayout>
<uix:pageHeader>
<uix:globalHeader selectedIndex="0">
<uix:contents>
<uix:link text="Migration Maps" destination="uixpage1.jsp" />
<uix:link text="Migration Checklist" destination="http://www.oracle.com" />
<uix:link text="Templates" destination="http://www.oracle.com" />
<uix:link text="Scripts" destination="http://mtg.ie.oracle.com" />
<uix:link text="Release" destination="http://www.oracle.com/" disabled="true" />
</uix:contents>
</uix:globalHeader>
</uix:pageHeader>
<uix:productBranding>
<uix:image source="productBrand.gif" shortDesc="product" />
</uix:productBranding>
<uix:cobranding>
<uix:image source="cobrand.gif" shortDesc="brand" />
</uix:cobranding>
<uix:copyright>
<uix:flowLayout>
<uix:contents>
<uix:image source="images/info.gif" />
<uix:link text=" @Copyright 2003, Oracle Corp. " destination="http://www.oracle.com" />
</uix:contents>
</uix:flowLayout>
</uix:copyright>
<uix:privacy>
<uix:flowLayout>
<uix:contents>
<uix:image source="images/info.gif" />
<uix:link text="privacy statement" destination="http://www.oracle.com" />
</uix:contents>
</uix:flowLayout>
</uix:privacy>
<uix:globalButtons>
<uix:globalButtonBar>
<uix:contents>
<uix:globalButton icon="images/returntoportal.gif" text="Home"
destination="uixpage1.jsp"/>
<uix:globalButton icon="images/logout.gif" text="Logout"
destination="http://www.oracle.com"/>
<uix:globalButton icon="images/preferences.gif" text="Preferences"
destination="http://www.oracle.com"/>
<uix:globalButton icon="images/help.gif" text="Help"
destination="http://www.oracle.com" targetFrame="_blank"/>
</uix:contents>
</uix:globalButtonBar>
</uix:globalButtons>
<uix:breadCrumbs>
<uix:contents>
<uix:link text="Home" destination="uixpage1.jsp" />
<uix:link text="Qualification" destination="qualification.jsp" />
<uix:link text="Customer Survey" destination="customersurvey.jsp" />
</uix:contents>
</uix:breadCrumbs>
<uix:quickSearch>
<uix:messageTextInput prompt="Search" name="QSearch" text="Cabo">
<uix:end>
<uix:submitButton accessKey="g" text="Go" />
</uix:end>
</uix:messageTextInput>
</uix:quickSearch>
<uix:start>
<uix:sideNav>
<uix:link text="Home" destination="uixpage1.jsp" />
<uix:link text="Help" destination="/site1/PageTemplate.jsp" />
<uix:link text="Migration Process Guide" destination="http://pta.us.oracle.com:9999/" />
<uix:link text="MSMS v1.1" destination="http://amgdev1.ie.oracle.com/mtg/" />
<uix:link text="Knowledge Base" destination="http://webiv.oraclecorp.com" />
<uix:link text="Factory Infrastructure" destination="http://webiv.oraclecorp.com" />
<uix:link text="BugDB" destination="http://bug.us.oracle.com" />
<uix:link text="Oracle Migration Workbench " destination="http://webiv.oraclecorp.com" />
<uix:link text="Application SQL Tools" destination="http://webiv.oraclecorp.com" />
<uix:link text="Support" destination="http://webiv.oraclecorp.com" />
<uix:link text="Migration Technology Centre" destination="http://otn.oracle.com/tech/migration/content.html" />
<uix:link text="Migration Technology Group" destination="http://mtg.ie.oracle.com" />
</uix:sideNav>
</uix:start>
<uix:end>
<uix:contentContainer text="Related Maps" background="light" icon="testInfo.gif" width="100%">
<uix:link text="Customer Surveys" destination="http://www.oracle.com" />
<uix:link text="Survey Request" destination="http://www.oracle.com" />
<uix:link text="Customer Analysis" destination="http://www.oracle.com" />
</uix:contentContainer>
</uix:end>
<%-- Main page contents go here --%>
<uix:contents>
<uix:header styleClass="OraLightHeader" text="Qualification Stage" />
<uix:styledText styleClass="OraHeaderSubSub" text="" />
<uix:spacer width="10" height="15" />
<uix:styledText styleClass="OraDarkHeaderSubSub" text="Qualifying the Customer - Receiving Customer Surveys" />
<uix:spacer width="10" height="10" />
<bc4juix:TableDetail></bc4juix:TableDetail>
<uix:styledText styleClass="OraInstructionText" text="Prospective customers
are identified by a variety of sources, such as sales consultants and
Oracle Direct. These customers are asked to complete a customer survey and
the results are automatically sent to the Migration Factory. The table below
lists the location of the customer surveys once they are released on the
Oracle eMarketing system." />
<uix:spacer width="10" height="20" />
<uix:servletInclude source="layout.html" />
</uix:contents>
</uix:pageLayout>
</BODY>
Similar Messages
-
How to include a .class file in a jsp page
hi everyone,
i know the syntax as:
<%@ include file = "filename.class" %>
then at run time the server could not find the class file
if i use,
<%@ page import = "FileName.class" %>
then also the same problem persists
& if i use
<jsp:include page = "Relative address"/>
the problem still remains as it is...
please help me out...i am working on developing an EJB application in which client interacts with server's Stateful session bean through a jsp page...it is necessary for me to include the home interface class file in my jsp page.
P.S. do not suggest me to include the class file in a package & then use
<%@ page import = "packageName.ClassFileName" %>
i
Edited by: Ankit_JIITU on 6 Jul, 2008 1:55 AMAnkit_JIITU wrote:
i have already included the remote interface class file by <%@ page import = "University.RemoteInterfaceName" %>in my jsp page ...
if i try to make a new package called test & then include my home interface in that package...i need to import University.*to generate the class file of my home interface ; but the class file generation is not taking place as i am getting the error..
"package University does not exist".How can i overcome this problem. The package University, which you are trying to import, must be in the classpath. If you removed it then you will have to add it back.
i have tried my best..but tell me if there's any possible way of including a class file in the jsp page without involving a package.No, there isn't.
If not,then pls help me to generate the class file of my home interface within a package called test.Read the New To Java Tutorial and understand how packages work.
>
i am assuming that u have a deep knowledge of developing EJB applications. -
How to include a html file in jsp
hi all
I have a question about including a html in jsp.
here's the sample of my jsp file:
<%
String filename = "helloworld.html";
%>
<%@ include file="helloworld.html" %>
how will you go about doing it so that the included file depends on the variable "filename"? I've tried doing the following but I got an error:
<%@ include file=filename %>
Thank you very much :)try this:-
<%
String filename = "helloworld.html";
%>
<jsp:include page='<%= filename %>' />
This should work. -
JDev 10.1.3.3.0: How to include an HTML comment in a JSPX page
When adding an HTML comment to a JSPX file, it automatically gets stripped out before being rendered to the browser.
How do I write a comment to the browser for diagnostic purposes (to figure out where something gets rendered in the HTML).
Thanks,
JonathanTry enclosing the HTML code in a <f:verbatim> tag.
-
How to include a js file in the JSP page
Hi
i have included a script tag like the following in the JSP file
<SCRIPT language="JavaScript">vDateFormat='mm/dd/yyyy';</SCRIPT>
while deploying i am getting an error 'vDateFormat' unidentified
Can any one help meunder view put a new tag
<f:view>
<ui:script url="page.js"/>
and thats it -
How to include assigned .as files in MXMLC ant task ?
When i use mxmlc ant task, i found that
the tag <include-sources/> doesn't support !
( described by http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a63.html )
neither SDK version 3.x nor 4.x
Are they lying?!
How to include assigned .as files ?
Thank you !My understanding is that mxmlc will use all available resources in the source path, as needed. Instead of giving it individual resources to include, you simply need to give it the source-path that contains those resources. This is different from a library project, which may need to include individual classes that are never used in that library.
-
Hi,
The following syntax does not work:
<%@ include file="htmls/mydocs/<%=dynamicFileName%>.htm" %>
could you tell me how to include a dynamic file?
thanks,
peterzhuThe include directive <%@ include ... does not work with dynamic file names, because it is evaluated at compile time.
You have to use the include standard action <jsp:include page=... This is executed during runtime, and hence a dynamic file name can be used. -
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. -
ANT how to include NetBeans Jar files in my script of ANT ??
ANT how to include NetBeans Jar files in my script of ANT ??
I mean the library say swing layout ...
which is SwingLayOuts1.0.jar ...
in side this there is folder org.jDesktop....
I want this folder in my jar file ...
also ....
My question ... i know the path of the jar file of NetBeans .... i can copy that ...dirctly ... but if m using Netbeans editor ... can i give NetBeans class to my jar command for ANT........... -
How to call a html file in a java file
how to call a html file inside a java file ?
Hopeless. Are you by any chance a rare gas? You seem completely inert. LOL You totally pwned him there :rolls eyes:
well, no, I think he's looking for something to this degree:
in HTML, there is a mailto: command that makes the system default handled way to email emails open up. He's looking for a command thats very nice and opens a html file in the system default browser.
So, Dick, Runtime.exec would work execpt that he needs a way to find the default system browser to call exec on, AND he has to know how to pass html file locations to the executable via command line arguments
He just didnt try to phrase it at all :P -
How to put an HTML file into JEditorPane
Hi
I am doing an aplication on swing.But I don't know how to add a html file to the JeditorPane keeping the html file on the source code. i.e my html file is in my source code.Then how to add this source code to Jeditor pane.
Thanks
Srikanthi srikkant,
ur html code is inside the source code..? are you working on applets..? if ur html file can be read as a file and the file stream can converted to a string and put into a Jeditor pane using the setText() method. for editing HTML text a editor called javax.swing.text.html.HTMLEditorKit can be used.
Refer to JAVA API for further clarifiactions and examples. -
How to Parse an HTML File?
Hi all
I want to parse an HTML file?
How is it possible?
After taking an input which is an HTML file, i need to parse it, and i need to print/modify values based on some tags?
Please help me, how to parse an HTML file?You start by reading the first character and then continiung until you reach the last character.
For a more serious answer try elaborating on your question. Its really really vague. -
How to add a html file into JEditorPane
Hi
I am doing an aplication on swing.But I don't know how to add a html file to the JeditorPane keeping the html file on the source code. i.e my html file is in my source code.Then how to add this html file to Jeditor pane.
Thanks
SrikantQuickTime requires player and plugins that most people don't have. You'll reach a much wider audience if you use HTML5 <video> with mp4, webm and ogg files.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>HTML5 with Video</title>
<!--help for older IE browsers-->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<style>
video {
max-width:100%;
display:block;
margin:0 auto;
</style>
<body>
<h2>Use 3 File Types to support all browsers & mobile devices: MP4, WEBM and OGV.</h2>
<h3>Online Video Converter
http://video.online-convert.com/</h3>
<!--begin video-->
<video controls poster="Your_poster_image.jpg">
<!--these are 6 sec sample videos for testing purposes. Replace sample-videos with your own files-->
<source src="http://techslides.com/demos/sample-videos/small.webm" type="video/webm">
<source src="http://techslides.com/demos/sample-videos/small.ogv" type="video/ogg">
<source src="http://techslides.com/demos/sample-videos/small.mp4" type="video/mp4">
If you're seeing this, you're using an
outdated browser that doesn't support
the video tag. </video>
<!--end video-->
</body>
</html>
Nancy O. -
Including static html file (WebServer) with JSP (App server)?
Hi,
I want to know how can a static html file that runs on a Web Server (iPlanet) in a JSP that runs on an App Server (WebLogic 6.1).
What would be the tag used and how the html file is referenced? Is there any other extra settings involved while integrating iPlanet with WebLogic 6.1?
Responses are highly appreciated.
Thanks and Regards,
Madanlal.Web servers usually work with the MIME Types. In the mime type settings will determine how a request for a particular mime type is served. Usually HTML, JPG,GIF... are served by the web server itself. A JSP request will be forwarded to the APP Server for peocessing.
The HTML and the image files need to be in a directory visible to the web server from the document root.
See the files
config\mime.types
config\obj.conf
under the web server installation directory.
Refer to the web server's admin guide for more info. -
Can AnyOne Please Tellme How to configure the HTML files
This is very Urgent.
1.I am using the WLS7.0 sp1 .I need to configure theHTML files which are in a
different path how can I map them to the present DefaultWebAPP directory.
2. How can I get rid of the port number when I am fully using in production mode.
I have been posting this query since long but in vain. Please guide me1. I got rid of port number with link provided by the karthik.
2.How can I create a link .The link appends to the defaultwebapp directory
and checks from their .I need to know how to configure the
HTML files which are not in the DefaultWebApp.But completely in directory.
Any suggestions !!!!!!!
Shehzad <[email protected]> wrote:
1. You can create a link to that directory
2. In order to get rid of port number, either boot weblogic at default
port 80, or use Apache or Iplanet webserver, and use Weblogic plugin.
That way all the traffic comming in from http will comein at port 80
to the webserver, and would then be forwarded to Weblogic at whatever
port it is booted.
This is very Urgent.
1.I am using the WLS7.0 sp1 .I need to configure theHTML files whichare in a
different path how can I map them to the present DefaultWebAPP directory.
2. How can I get rid of the port number when I am fully using in productionmode.
I have been posting this query since long but in vain. Please guideme
Maybe you are looking for
-
Opening stock for stock provided to vendor
Hi Gurus, I m trying to get opening stock for stock at subcontracter. I m using 0TOTALSTCK in the Query and I'm getting wrong values as compare with MB5B. I dont know how to show the opening stock and closing stock in the Query for this special stock
-
Using Visio for Web UI mockups - how do I add a drop-down menu?
I found the control shapes and I see there is a listbox and a "drop down" but I want to save this visio file as html and have a few links that navigate to the different "pages"if possible. Is it possible to actually create a dropdown menu and have
-
Unable to access certain areas of Photoshop Elements 7
I would be really grateful if someone could help me with these problems I am having with Photoshop Elements 7. 1. On start up I have never been able to access the Learn More option. 2. I can't access Help in editor or organiser. Error Message: The re
-
Hello, I have been reading a little about EJB's and I have seen some EJB examples defining the class atributes inside and other examples using helper classes. I do not understand yet when it is better to use one or the other. Of course I see that an
-
I have a 7 minute MP3 that I want to edit, however when I drag it into garageband it only pulls in the first 3:30. Any thoughts on why? At the 3:30 mark in the song there is a pause but then it starts back up but for some reason the program won't p