How to call an HTMl page using URL in OAF?
Hi,
There is a page that has a toolbar. There we have to provide a help menu in which we need to display a customized html page. Therefore, we need to set the URL property in such a way that it should map to the path where this HTML file is located.
Kindly provide a solution.
Create a JSP page. Put your HTML code inside it. Place the JSP page under OA_HTML directory in server.
Mention the JSP page name in destination URL property of the link item.
-ANand
Similar Messages
-
How to show an html page using JEditorPane in applet.
I have never use jeditorpane with applet so i dont know how to show a html page.if you have some code or any example then please posted that.Thanks
public class MyApplet extends JApplet{
private JTextPane textPane = null;
public void init(){
HTMLEditorKit editorKit = new HTMLEditorKit();
HTMLDocument htmlDoc = (HTMLDocument)editorKit.createDefaultDocument();
textPane = new JTextPane();
textPane.setEditable(false);
textPane.setEditorKit(editorKit);
textPane.setContentType("text/html");
textPane.setDocument(htmlDoc);
Container c = getContentPane();
c.add(new JScrollPane(textPane), BorderLayout.CENTER);
c.add(buttonPanel, BorderLayout.SOUTH);
c.add(Box.createVerticalStrut(5), BorderLayout.NORTH);
c.add(Box.createHorizontalStrut(5), BorderLayout.EAST);
c.add(Box.createHorizontalStrut(5), BorderLayout.WEST);
public void setHtml(String html){
// you should check the textpane's document to detrmine if there
// is already text in there..if so, then clear the textpane text and then
// set the new html...Note: JTextPane only show basic Html ..
// not like a full blown browser
textPane.setTextt(html);
textPane.setCaretPosition(0);
} -
How to call an HTML page from a JSP
Hi,
I am getting problem in calling an html page from a jsp
The Sample code is
int rowsAffected = stm.executeQuery("Select * From Table");
if (rowsAffected == 1)
{ %>
<jsp:forward page="xyz.html" />
<%See the other forum where you asked the same question http://forums.java.sun.com/thread.jsp?forum=45&thread=158981
Please refrain from cross posting. -
How to display a HTML page using ABAP program.
Hi all,
I know that this is easy and possible too but I haven't worked on this kind yet. I need to display a screen/ABAP program like TCODE PPMDT, where an HTML page is to be displayed and on the click of the HTML links provided, I need to navigate to someother transaction codes.
Cheers,
SamHi,
See this sample code
REPORT ZTESTHTML .
DATA: ok_code LIKE sy-ucomm,
myurl(132).
data: custom_container type ref to cl_gui_custom_container,
myhtml type ref to CL_GUI_HTML_VIEWER,
repid like sy-repid.
DATA events TYPE cntl_simple_events.
DATA wa_events TYPE cntl_simple_event.
CLASS lcl_event_receiver DEFINITION
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
CLASS-METHODS NC_Handler
FOR EVENT NAVIGATE_COMPLETE OF CL_GUI_HTML_VIEWER
IMPORTING URL.
ENDCLASS.
CLASS lcl_event_receiver IMPLEMENTATION
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD NC_Handler.
myurl = URL.
ENDMETHOD.
ENDCLASS.
start-of-selection.
set screen 100.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
WHEN 'BACK'.
CALL METHOD myhtml->go_back
EXCEPTIONS cntl_error = 1.
if sy-subrc ne 0.
endif.
WHEN 'FORW'.
CALL METHOD myhtml->go_forward
EXCEPTIONS cntl_error = 1.
if sy-subrc ne 0.
endif.
WHEN 'STOP'.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'REFR'.
CALL METHOD myhtml->SHOW_URL
EXPORTING
URL = myurl
IN_PLACE = 'X'
FRAME = ''
EXCEPTIONS
CNTL_ERROR = 1
CNHT_ERROR_NOT_ALLOWED = 2
CNHT_ERROR_PARAMETER = 3
DP_ERROR_GENERAL = 4.
WHEN 'OTHERS'.
CALL METHOD CL_GUI_CFW=>DISPATCH.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'MENU'.
if myhtml is initial.
CREATE OBJECT custom_container
EXPORTING
CONTAINER_NAME = 'CONTAINER1'
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
LIFETIME_DYNPRO_DYNPRO_LINK = 5.
CREATE OBJECT myhtml
EXPORTING
PARENT = custom_container
EXCEPTIONS
CNTL_ERROR = 1
CNTL_INSTALL_ERROR = 2
DP_INSTALL_ERROR = 3
DP_ERROR = 4.
wa_events-eventid = CL_GUI_HTML_VIEWER=>M_ID_NAVIGATE_COMPLETE .
wa_events-appl_event = 'X'.
APPEND wa_events TO events.
CALL METHOD myhtml->set_registered_events( events = events ).
SET HANDLER lcl_event_receiver=>NC_Handler FOR myhtml.
CALL METHOD cl_gui_cfw=>flush
EXCEPTIONS cntl_system_error = 1
cntl_error = 2.
endif.
ENDMODULE. " STATUS_0100 OUTPUT
Svetlin -
How to generate dynamic HTML pages using Swing Application?
Hello,
I am writing a Java application to connect to a local light-weight java database. I would like to generate and present a HTML on the fly after selecting records from a database. At server side, I could easily use JSP/Servlet to do this. How can I do this on a desktop client machine using Java application? I do not want to install Apache web server on the desktop machine. Any help will be greatly appreciated. Thanks in advance.
DominicThe way u need to generate your html pages depened on what u want to generate,
anyway what i can help with, is how to display a generated page.
u have to use JEditorPane with HTMLEditorKit and HTMLDocument to display any HTML.
also u can use the methods provided with the above objects to generate your html format.
I hope I helped. -
How to create dynamic HTML page using PL/SQL code in APEX.
hello,
I am woking on one APEX application in which i want to create one dynamic HTML page on button press using PL/SQL code.
ThanksIt is possible to create HTML page with dynamic content. One way would be creating hidden field (e.g. P1_HTML on page 1) with dynamic HTML and on button click you redirect to page 2 and pass P1_HTML item value to item P2_HTML on page 2. On page you must have PL/SQL region. You can then render your dynamic HTML with code:
htp.p(:P2_HTML);
Don use APEX URL for passing HTML value. Problem and solution is described here: http://blog.trent-schafer.com/2011/04/03/dont-pass-string-parameters-in-the-url-in-apex-its-a-bad-idea/
Edited by: MiroMas on 3.2.2012 3:20 -
How to call a html page from servlet
i want to link a servlet to a html page, if i use requestdispatcher, it says XXX.html is not available, can anybody help
Can you be more specific about what you're trying to do? Can't read your mind =). But if you mean you want to just have an static HTML page such as a header read by the servlet you can you the requestdispatcher include().
Create a servlet to generate a page, and then map it as /getPage in the web.xml file. Then you can use:
// header
RequestDispatcher rd = ...getRequestDispatcher("/getPage");
rs.include(req, res);
// the rest of the servlet output
// and you can do another one for the footer down here
rd = ...getRequestDispatcher("/getPageFooter");
rs.include(req, res);
and it'll output the HTML in the servlet.
Hope this helps -
Call other html page on using a java applet!!
Can I call other html page using a function into a java Applet? Please, somebody reply!!!
How can i do? Explain!! Thanks...
-
How to create hyperlink in Html page using Java
Hello every one
I want to know that how can I create a hyperlink in Html page using java ?
Let for example
I have code like this and i want to give hyperlink to it using java.
rember that i am creating node using this id="name" which give me multiple value. and i want to assign diff link to each name..?
<tr>
<td ><span id="name"></span>
</tr>but i m using this code to create node in html file
HTMLLIElement li = (HTMLLIElement)appHTML.createElement("LI");
Text txt = appHTML.createTextNode(name);
li.appendChild(txt);
appHTML.getElementById("name").appendChild(li);
this will display all name value which is coming from database,
and i want to assign a hyperlink to it,
I have id with name also so I thought that using id i will
create javascript like
function popup(id)
if(id==1)
var n1 = window.open("../list/name1.html");
if(id==2)
var n1 = window.open("../list/name2.html");
this way i want to popup particular file if i can pass id value in this function
so want hyperlink like
name -
Calling a html page deployed in weblogic server using RequestDispatcher
Hi All,
I want to call a HTML page from a java page using requestdispatcher. The whole application is deployed in Weblogic server.I have used the below syntax to call the page from any machine..
ServletContext sc = getServletContext();
RequestDispatcher rd = sc.getRequestDispatcher("http://172.25.40.148:7001/Filecomparetool/Result3.html");
rd.forward(req, res);
Im getting Null pointer exception...Plz help..Thanks in advance!Please use the CODE tags (see the CODE button above, or the formatting tips page, and not the BOLD button.
Post the stack trace.
Either getServletContext or getRequestDispatcher is returning null. Find out which, read the API to find out why. -
How to embed jnlp file into html page using object tag
hi everyone,
i have written one jnlp file like this.
<?xml version="1.0" encoding="utf-8" ?>
<!-- JNLP file for Demo applicaion -->
<jnlp spec="1.0+" codebase="http://localhost:9080/base/" href="SampleExample.jnlp">
<information>
<title>Demo Application</title>
<vendor> </vendor>
<description>Sample Demo Application</description>
<offline-allowed/>
</information>
<security/>
<resources>
<j2se version="1.3+" />
<jar href="common.jar" main="true" download="eager" />
<jar href="classes12.jar" download="eager" />
<jar href="toplink.jar" download="eager"/>
<package name="com.applet.*" part="applet" recursive="true"/>
</resources>
<applet-desc name="grid" main-class="com.applet.PriceGrid" width="1000" height="300"/>
</jnlp>
i am trying embed that jnlp file using object tag like
<OBJECT
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">
<PARAM NAME="jnlp" VALUE="http://localhost:9080/base/SampleExample.jnlp">
</OBJECT>
but i am not able to load the applet using Web Start.
Can anyone please help me. This is very Urgent for me.
Thanks & Regards,
Shiva.thanks.
i am giving my problem clearly. i have one applet. Previously i am loading the applet in my html page using object tag like this...
<OBJECT
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">
<PARAM NAME="CODE" VALUE="com.adp.base.applet.PriceGrid.class" >
<PARAM NAME="ARCHIVE" VALUE="common.jar,classes12.jar,toplink.jar" >
<PARAM NAME="NAME" VALUE="grid" >
<PARAM NAME="type" VALUE="application/x-java-applet">
<PARAM NAME= "cache_option" VALUE ="no">
</OBJECT>
now what i need to do is
i need load the applet only first time using web start and when ever the applet code changes in the server i need to reload the applet.
for that i kept all the applet resources in .jnlp file.i want to cache all the resources which are in .jnlp file and applet must be displayed within a web page within a browser.
Webstart always open a new application windows.
I need to run an Applet embedded within a web page within a browser.
Is there a way to still use Webstart? -
How to embed a HTML Page in a Web Template and display it
Hi All
Can you please share ideas how I can embed a HTML page in a web template and how I can make it displayed as a popup when a button is pressed.
Also, how do I call a HTML page stored in Portal KM from the press of a button in the web template.
Your help is greatly appreciated.
Thanks
KarenUsing C# or javascript to authenticate the user to AD to read the property directly will be very difficult. Creating a custom user profile property and adding a sync from AD to that property is definitely the easiest way to do what you are describing.
Once its in User Profiles there are lots of samples on how to add it to the page.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
I want to know how to call navigate to page in new window.
Hi,
I want to know how to call navigate to page in new window.
Following is the code which i am using on Event OnInputProcessing.
navigation->goto_page( 'index.htm' ).
From the above code i am able to open the index.htm in the same window.
but I need the index.htm in the new window.
Please suggest
Thanks in advance,
Nilesh LabdeThanks ,
I was able to find the navigatiion tab, But after entering the The Form name in that TAB, Still the New Page opens in ths SAME window.
Following is the Code written on the Eevent--> OnInputProcessing
navigation->next_page( 'NEXT' ).
In the Navigation TAB
Start Navigation Request Target
Sales_Person.htm NEXT index.htm
Please suggest.
Thanks in advance,
Nilesh Labde -
To know the Status code of a HTML page using Javascript
To know the Status code of a HTML page using Javascript
Hello,
I am not sure to understand, which status are you talking about? The HTTP Status?
If your javscript is executed it is more or less sure that the HTTP Status is 200 since the request is back to the browser.
or are you talking about this is in the context of a XMLHTTPRequest call ?
Regards
Tugdual Grall -
How do I create HTML mail using Mac OS X Mail 2.0.7?
I know how to create an HTML page. How do I send it as HTML e-mail? OS X Mail receives HTML e-mail. It's kind of hard to believe it can't send it as well. I've tried pasting it in and attaching it - neither works. Any ideas?
Thanks,
Jim Carruth
iBook G4 Mac OS X (10.4.6)I know how to create an HTML page. How do I send it
as HTML e-mail?
You open the page with Safari and use a menu option to send the page as email.
10.5 is supposed to add html email to Mail.
Maybe you are looking for
-
How do I send an app to a friend. I can't seem to locate send as gift app option.
How do I send an app to a friend. I can't seem to locate send as gift app option
-
There is nothig like Iweb on the market. And yes I have tried the top three apps that are suggested on most sites to replace Iweb. I also understad that you ca still use Iweb without Mac hosting. If apple does not update Iweb, it will only be a m
-
I'm using Adobe Illustrator CS3. Before I upgraded my illustrator to CS3 vision this is never happen. Now I cannot able to preview image from the illustrator file icon. Usually after we have saved the file as a .ai format file, the icon of this file
-
G'day, I've just bought a 400/800 firewire cable to connect my G5 PowerMac and 2010 Macbook Pro 13". (Yes, I realised after purchase, the G5 has FW800... so I could have gone for a 800/800 cable... doh me). I tried connecting the 2 machines using Ta
-
Hi, I installed 10g R2 on linux x86 with 2 nodes. after booting the first node and running <CRS_HOME>/bin/crs_stat -t i see all node1 services in "UNKNOWN" state when i try to start them i get dependency failure. looking at the crsd.log shows many ti