Display an html page - XSL
Hi,
this is what iam doing in my xsl file:
<table>
<tr>
<td>
>Hello
</td>
</tr>
</table>
I have an element in my XML file called "docindex". I need to get the value of that and pass it as a URL parameter in my html file. How do i do that? please help
This is what Iam doing now:
<xsl:apply-templates select="DocumentInfo">
<xsl:sort select = "reportdate" order="descending"/>
<xsl:sort select = "timein" order="descending"/>
</xsl:apply-templates>
The error is: Expression <-- expected
Where am I doing wrong?
Thanks so much for all your help!
Similar Messages
-
How can I display the HTML page from servlet which is called by an applet
How can I display the HTML page from servlet which is called by an
applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
I am calling my struts action class from the applet. I want to show the response in the same browser.
Code samples will be appreciated.hi
I got one way for this .
call a javascript in showDocument() to submit the form -
How to display static HTML pages in Oracle Forms 6i
I want to display static HTML page in oracle Forms ? Can any body help please ? Its very urgent. Many thanks in advance.
Suresh,
there exist a Java Bean in teh Forms 6i demos that shows a static HTMl example. Note that the HTML that could be shown is somewhat basic, but it will give you an impression how it can work. The demos are at otn.oracle.com/products/forms --> samples --> 6i demos
Frank -
How to display the HTML pages in RRC/RQM dashboard using OpenSocial gadget
Hi,
I have a requirement as below:
1. I have couple of HTML pages which are hosted in the sharepoint site and I would like to display the HTML pages
2. I would like to have an OpenSocial gadget in the RRC/RQM dashboard that will display the HTML pages which are hosted in my sharepoint site.
Could you please suggest the best approach to create an OpenSocial gadget in the IBM's RRC/RQM dashboard whcih will display html contents of another URL ?
Thanks.
Knowledge is power.Hi Manoj,
As I understand, you would like to display SharePoint page in another platform.
Since the you are involving third party platform, you might still need to contact their support engineer about how to render other pages.
From SharePoint side, by default, SharePoint won't let end user to display site page to other platform, you could add "<WebPartPages:AllowFraming runat="server"/>" in master page or single page layout. So that SharePoint ASP.Net
page could be displayed on other platform.
Here I'm talking about ASP.Net page, since HTML page in SharePoint cannot be displayed in browser as I tested, it will be downloaded directly. So I'd suggest you use ASP.Net page as workaround.
https://social.msdn.microsoft.com/Forums/office/en-US/c8755a6b-f33a-43ed-97d9-8f03c336aa1d/how-to-display-sharepoint-url-in-iframe-in-aspnet-page?forum=sharepointdevelopment
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
Display external html page in (Collapsible Panel widget)
i everybody
is there a way to display external html page in (Collapsible Panel widget)
All the example a seen is with raw text in it
is the panel can display different object instead of simple text
At least a internal designed html page
ThanksThanks... surely a easy one for you
But its a great tool and its exatly what i want
even my js button works trough it
Thanks again -
Displaying an html page from a byte array
I'm trying to display an html page that i receive from a byte[ ] but the navigator asks me to download it instead of displaying it.
exactly a better option here would be display that HTML content using a dedicated servlet/jsp.
checkout below example code snippet hope that might help
public void doPost(request,response)throws ServletException,IOException{
//fetch HTML bytes.
Byte buffer[] = Delegate.getBufferData();
ByteArrayInputStream in = new ByteArrayInputStream(buffer);
int contentSize = in.available();
response.setContentType("text/html");
response.setContentLength(contentSize);
BufferedOutputStream out = null;
try{
out = new BufferedOutputStream(response.getOutputStream());
while( contentSize-- > 0 )
out.write(in.read());
out.flush();
}catch(Exception exp){
exp.printStackTrace();
throw new Exception(exp.getMessage());
}finally{
try{
if(out != null)
out.close();
if(in != null)
in.close();
}catch(Exception ep){
ep.printStackTrace();
throw new Exception(ep.getMessage());
}finally{
out = null;
in = null;
}and respectively call the servlet.
Hope this might help :)
REGARDS,
RaHuL -
Display external html page in a view
Hi,
following Problem,
I have a Viewcontainer with 2 columns ans one row. In the left cell I display a tree. OnSelect Event I'd like to display a html page in the right cell.
Example:
Searchengine
-> Google
-> Yahoo
-> ...
On Klick at google in the treeview I'd like to show http://www.google.de in tghe right cell - this means the tree should still display.
Is this possible - and has anyone an idea to do this?
thanks in advance
GregorHi
We strongly donot recommend usage of Iframe, because its support is depcrecated and will not be available for future versions.
For a short duration or for current version, use can Iframe only for static html links. Try using link to URl and display the htmls in external windows.
Check out this link
http://help.sap.com/saphelp_erp2005/helpdata/en/e9/7652a84fada444bd11ca73670ce7dc/frameset.htm
My advice is to change your functionality accordingly
If you have any specific requirements do let us know
Thanks
sathyanarayanan -
To display an html page that contains frames, using servelt
Hi all
i am using a servlet which has to display a html page that contains frames.
I would like to know whether it is possible to display a frame using servlets.
If yes please tell me the how to do it?
Thanks,
Sudheer.Thanks Seth.
I just tried that, but when I run it in preview mode (by simply hitting F12), it gives me an error because it can't find the file in the temporary preview folder it creates (ie:
C:\Users\Tom\AppData\Local\Temp\CP2840464090993Session\CPTrustFolder2840464091009\Captivat ePreviewLoader\
I'm hoping to find a place to put it so that it works when running F12 and when running in regular 'published' mode
I was thinking I could put it in the 'C:\Program Files\Adobe\Adobe Captivate 6 (32 Bit)\Templates\Publish' folder, but when I do that, it doesn't seem to gete copied to the .\CaptivatePreviewLoader folder when running F12 -
How to extract image from oracle database and display at html page
Could you help me how to make the image to display. i manage to extract the data but the data is in Blob so i need to convert it so make it display at html page.
Thanks for ur reply Mr.Rajasekhar
I tried as u said,
i tried without converting to sql date ,but still i din't get any results
java.text.SimpleDateFormat dateFormat=new java.text.SimpleDateFormat("dd/MM/yyyy");
java.util.Date fromDate=dateFormat.parse(startDate);
java.util.Date tillDate=dateFormat.parse(endDate);
String query1="select MTName,Date,MTLineCount from linecountdetails where mtname='"+MTName+"' and Date >='"+fromDate+"' and Date <='"+tillDate+"' " ;
System.out.println(query1);
//From main method
databaseConnection("prasu","1/12/2005","31/12/2005");I got the output as
---------- java ----------
select MTName,Date,MTLineCount from linecountdetails where mtname='prasu' and Date >='Thu Dec 01 00:00:00 GMT+05:30 2005' and Date <='Sat Dec 31 00:00:00 GMT+05:30 2005'
java.lang.NullPointerException
null
null
java.lang.NullPointerException
Output completed (4 sec consumed) - Normal TerminationThanks
Prasanna.B -
How to display a HTML Page in Webdynpro (without IFrame)?
Hi everyone,
maybe this one is really simple. I have a RFC returning the URL to a HTML-Page in the backend. Which of the standard UI-Elements should I use to display that page in my Webdynpro?
My first guess was to use the IFrame. However, according to different sources this element is deprecated and buggy. So I'm hesitating.
Are there any other possibilities? Or is it ok to use IFrame nevertheless?
Many thanks,
Xiaopeng
Message was edited by: Xiaopeng Tanhi Ashutosh,
I took a look at the help document. It states that "_self" is no longer supported. And I should use exit plugs instead and specify the URL there.
But even that won't serve the purpose. I have other UI-elements (fields, tables) on the same screen where I want the page being embedded next to them as co-component. Using _SELF and clicking on the link would would remove all other components. -
How to use getContent() method in custom JSP Provider to display a HTML Pag
Hi,
If anybody knows how to use getContent() method to use in custom jsp providers (developed by ourselves) so that it can be used to retrieve a jsp page (a simple html page) ..
I want the code in the provider java file to for the getContent method...
Pls. get back to me asap....if any body has implemented a custom jsp provider...as it's urgent...
I have alreday placed the JSP file in the directory structure /etc/opt/SUNWps/desktop/default/channel_dir..But still the jsp is not being displayed..
Pls get me the getContent() method code to retrive the JSP file..
satyabrataHi,
You don't have to do anything in the custom JSPProvider's getContent method except the call { return super.getContent(request,response); } . If all you want is just to show your jsp, then create a channel from the default JSPProvider, and edit the property contentPage of that channel from samplecontent.jsp to your jsp name, save the changes and login again. You should see your JSP.
Sanjeev. -
Jsp page calls javascript to be displayed in html page
I want to test if user is logged in or logged out and put the logic of it on the header of my static html page (tomcat, apache)
I would put .js code like this in my html header:
document.getElementById("test").innerHTML= '<a href="/login.jsp>Login</a>
And if user is logged in then put link to LOGOUT dynamicaly.
I am using JSP page to check for logic login/logout:
<c:if test=${!empty user">
<p><a href="/logout">Logout</a>
How do I implement following: call to the javascript from this JSP page to display on my html page (header) .
I am not to use jsp on my html pages thus this workarounddouble post
-
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 -
Display an HTML page within a a panel
I want to create an applet with multiple panels, and have the ability to display HTML pages within these panels. These will be HTML pages with formatting complex enough that the JEditor display won't be able to handle them. I experimented with showDocument() but that seems to only work in the main applet frame, and attempts to put a frame inside a panel did not work. I came across some postings that talked about JSObject, but got the impression that does not always work and is very browser dependant.
Any suggestions?Yes JLabel supports HTML, e.g.
public static void showHelp()
JFrame frame = new JFrame();
JLabel helpLabel = new JLabel();
JLabel.setText("<HTML>This is a <b>help</b> file.</HTML>");
frame.getContentPane().add(helpLabel);
frame.setBounds(0,0,200,200);
frame.setVisible(true);
} -
Displaying clickable html page in a JFrame
Hello again programmers,
i'm wondering how can i display a clickable html page in a JFrame using any Panel (JEditorPane,.....) can you show me the way plz?
BernardMakes a pretty crappy browser, but its OK for help-type functions.
HtmlViewFrame.java
import java.net.URL;
import java.io.File;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
*Primitive HTML browser window based on a HtmlViewPane.
public class HtmlViewFrame extends JFrame
private HtmlViewPane pane;
private JFrame frame;
*Creates a frame based on a file.
public HtmlViewFrame(File file) throws Exception
this(file.toURL());
*Creates a frame based on a URL.
public HtmlViewFrame(URL url) throws Exception
frame = this;
getContentPane().setLayout(new BorderLayout());
JPanel but_panel = new JPanel();
but_panel.setLayout(new FlowLayout(FlowLayout.LEFT));
JButton but_home = new JButton("home");
but_home.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
try
pane.home();
catch(Exception e)
JOptionPane.showMessageDialog(frame, "Error: " + e);
but_panel.add(but_home);
JButton but_back = new JButton("back");
but_back.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
try
pane.back();
catch(Exception e)
JOptionPane.showMessageDialog(frame, "Error: " + e);
but_panel.add(but_back);
getContentPane().add(but_panel, BorderLayout.NORTH);
pane = new HtmlViewPane(url);
JScrollPane jsp = new JScrollPane(pane);
getContentPane().add(jsp, BorderLayout.CENTER);
getContentPane().add(pane.getActionField(), BorderLayout.SOUTH);
*HTML viewer application.
*Uses java.lang.System.exit(int), so method should not be called from within a Java application.
*@param args String array; provide a URL or file path as args[0]
public static void main(String[] args)
if(args.length==0)
System.out.println("must provide File path or URL as argument");
System.exit(1);
Exception err = null;
try
File file = null;
try
file = new File(args[0]);
if(!file.exists()) file = null;
catch(Exception ex)
file = null;
err = ex;
URL url = null;
try
url = new URL(args[0]);
catch(Exception ex)
url = null;
err = ex;
HtmlViewFrame frame = null;
if(file!=null) frame = new HtmlViewFrame(file);
else if(url!=null) frame = new HtmlViewFrame(url);
else throw err;
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(600,400);
frame.show();
catch(Exception e)
err = e;
if(err!=null) System.out.println("ERROR: " + err);
HtmlViewPane.java
import java.net.*;
import java.io.*;
import java.util.Vector;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.html.*;
*A HTML panel based on JEditorPane.
*Suitable for rendering primitive HTML files such as help documentation.
public class HtmlViewPane extends JEditorPane
/**The maximum number of elements the object can hold in its history.*/
public static int MAX_HISTORY_SIZE = 100;
private Vector history = new Vector();
private URL home;
private JTextField lab_lastact = new JTextField("loaded document");
*Creates a panel based on a file.
public HtmlViewPane(File file) throws Exception
this(file.toURL());
*Creates a panel based on a URL.
public HtmlViewPane(URL url) throws Exception
home = url;
setEditable(false);
addHyperlinkListener(new HtmlViewPaneListener(this));
setPage(url);
lab_lastact.setEditable(false);
void addToHistory(HyperlinkEvent e)
lab_lastact.setText("ACTION: go here: " + e.getURL().toExternalForm());
if(history.size()>=MAX_HISTORY_SIZE) history.removeElementAt(0);
history.add(e);
*Causes the pane to move back to the last item in the history.
public void back() throws Exception
if(history.size()==0)
lab_lastact.setText("ACTION: exhausted history list (max size=" + MAX_HISTORY_SIZE + ")");
return;
HyperlinkEvent e = (HyperlinkEvent) history.lastElement();
history.removeElement(e);
processEvent(e, false);
lab_lastact.setText("ACTION: back to here: " + e.getURL().toExternalForm());
*Returns a JTextField that reports hyperlink, back and home actions to the user.
public JTextField getActionField()
return lab_lastact;
*Causes the browser pane to return to the initial page.
public void home() throws Exception
setPage(home);
lab_lastact.setText("ACTION: home to here: " + home.toExternalForm());
void processEvent(HyperlinkEvent e, boolean addtohistory)
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
if (e instanceof HTMLFrameHyperlinkEvent)
HTMLFrameHyperlinkEvent evt = (HTMLFrameHyperlinkEvent) e;
HTMLDocument doc = (HTMLDocument) getDocument();
doc.processHTMLFrameHyperlinkEvent(evt);
else
try
setPage(e.getURL());
if(addtohistory) addToHistory(e);
catch (Throwable t)
t.printStackTrace();
class HtmlViewPaneListener implements HyperlinkListener
private HtmlViewPane pane;
HtmlViewPaneListener(HtmlViewPane pane)
this.pane = pane;
public void hyperlinkUpdate(HyperlinkEvent e)
pane.processEvent(e, true);
}
Maybe you are looking for
-
"Waiting for printer to become available" LaserJet 3390 OSX 10.8.5
I have had my LaserJet 3390 for years and it has worked great. I have a MacBook Air running OSX 10.8.5. According the the documentation I've seen, I can't download a specific driver, but there is a set of HP drivers that gets installed and updated
-
Showing swing components in the palette og jdeveloper
hello, I have found a problem with jdeveloper, as a user uses jdeveloper since 2 years I have never found a problem like this. (IDE problem). like habitude I created a simple java project which contains a jframe and an entry class (main class), but w
-
I Lost My Application Folder and I Can't Get It Back With It's Previous Features
I lost my application folder!! I have tried dragging it from my hard drive but all I have left over is my skype. when i was trying to change the size of my screen's window i accidently picked up the applications folder and when i let go of my mouse i
-
Airport woes - suddenly stopped working
I’m unfortunately currently having Airport issues, and was hoping to get some help. My wireless network has been running fine for a while, but yesterday evening it suddenly stopped working. I could see and join my network, but it wasn’t working. When
-
Slightly misled & eye strain - Macbook Retina Display
Anyone else feel slightly misled over the new macbook "retina" display? Highest resolution ever in a laptop etc. Well it isn't it's still basically the same 1440x900 desktop as my old macbook even if it is underpinned by 4 x the pixels. If I deviate