Refresh an open web page on closing an applet launch from Java Web Start
Hi
I launch an aplication via Java Web Start from a link in a web page. I am looking to a solution to refresh my web page when I close my applet.
Thanks in advance to give me the solution or only to let me know if it's possible or not.
everything's possible. but this is not trivial. there is no direct connection between the html page that launched the app and the app. You can create an indirect connection by having the app notify a server process when it closes and having the page periodically polling the server for the app's status.
Similar Messages
-
My web pages keep closing when I type in the web browser. How do I fix this?
My web pages keep closing when I type in the web browser. How do I fix this?
Safari?
Safari > Preferences > Extensions
Turn those off and try. -
How to add scroll function in the applet launched by Java Web Start?
I have Java Web Start installed in order for the applet to launch.The applet size: width:700 height:1000
my compuer resolution:800*600
the applet launched by Java Web Start can only be seen partly,especially height.How to add scroll function in the applet launched by Java Web Start?
Thanks for help.
email:[email protected]You can very easily add a JScrollPane manually between the Applet and your content. Perhaps it would be beter if javaws did this automatically. In the browser, an applet can be any size. In Java Web Start an applet is directly contained within a JFrame, so it cannot be smaller than the minimum size of a JFrame, or Larger than the max.
-
How to open a page and closing source page in jdev 10.1.3.3
how to open a page and closing source page in jdev 10.1.3.3.
for example.
From page 'A' , we are opening a page 'B' and closing the page 'A'. how this can achived.Please let me knowYour question is totally not clear?
What page? a JSF page? A code editor in JDeveloper? -
I am sorry if thie is republished-My first time doing this and I am not sure what goes where and where to hear feedback.
Have published iweb site for five years with no problems and just opened a new site and get -
404: Page not found
This error is generated when there was no web page with the name you specified at the web site.-
Troubleshooting suggestions:
Ensure the page you are linking to exists in the correct folder.
Check your file name for case sensitivity . Index.htm is not the same as index.htm!
Temporarily disable any rewrite rules by renaming your .htaccess file if it exists
is the problem with
iweb or with hosting?
One Apple tech started to fix Iweb and had to end session and the next said problem with hosting at Network Solutions as it published
to local folder. NWS has checked sttting a few times-
Any help would be extremely appreciated as trying to fix this for about five weeks
Thanks VG
<Email Edited by Host>It's a really bad idea to post your email address - it's an invitation to spam - and I've asked the Hosts to remove it. (Even though I've now noticed you mis-spelled it! - anyway, never post your address in a forum.)
You have a site here: http://virginiagordon.com/www.virginiagordon.com/WELCOME.html
If that's not the page you are having trouble with, what is that page's URL? -
Have just loaded Safari 5.1. 4 times. It presents a blank page but will not load anything from the web. What do I have to do to get it to work. It worked fine until the update was offered.
Funny thing, even this page was loaded and then quickly turned blank for me (I'm writing from Chrome).
Hope they fix it soon! -
Override the launch of Java Web Start
How can we stop the auto launch of Java web start and prompt the user to enter the desired location to download the jars.
And then launch the jars from that location.
Is there any solution for this.
Please help me in this regard
NanditaThe whole idea of WebStart is to relieve the user of the burden of downloading binaries themselves. The whole point is, they just click a link on a web page, some magic happens, and their app starts up.
Your idea is a complete waste of time. -
Send an event from Java Web Service to BPEL
Hi,
I have a requirement where from an Async BPEL service I have to call a Java Web Service. After the completion of its task Java Web Service will fire an event that has to be consumed by the BPEL to initiate further process. Can anybody help me with how to send an event from Java Web Service and at the same time consume it in BPEL?
Thanks,
AnujSee the following posts for your answer
http://blogs.oracle.com/soabpm/entry/event_delivery_network_chapter
http://blogs.oracle.com/soabpm/entry/using_the_event_api_to_publish
http://guidoschmutz.wordpress.com/2010/01/12/using-the-event-api-to-publish-an-event-to-the-event-delivery-network-edn-the-spring-way/ -
Append Data from Java Web Dynpro to an Internal Table in ECC
Hi,
Currently I am using AdaptiveRFCModels to creating/updating records from Java Web Dynbpro to FM in R/3. Users can add few records before they save the changes. The current design is Java Web Dynpro call RFC FM when user add/edit one record. The record will store in an global internal table in the Function Group. For example, I have added 3 records before I save the changes. It means that global internal table should have 3 records that I added before I save it. But in fact, the global internal table only store one record while I adding the third record. The global internal table not able to keep the previous records. The code below is how I code to execute the FM from Java Webdynpro. Is the code can work as I expected? Anything missing in the codes? Please advice. Thanks.
wdContext.nodeZhr_abc_Input().bind((Zhr_abc_Input) model.createModelObject(Zhr_abc_Input.class));
Zhr_abc_Input objReq = new Zhr_abc_Input();
Zhr_Pad31 insUpdVer = new Zhr_Pad31();
insUpdVer.setQ_Id(wdContext.currentContextElement().getQ_Id());
insUpdVer.setZ_ce(wdContext.currentZhr_Detail_OutputElement().getZ_ce());
objReq.addLt_Pad88(insUpdVer);
wdContext.nodeZhr_abc_Input().bind(objReq);
wdContext.currentZhr_abc_InputElement().modelObject().execute();According to your code you are setting only one record.
You have to create 3 elements for each record and add all the three to the nodeZhr_abc_Input node.
If I understand correctly, node currentZhr_Detail_Output is the one which is containing all the three records. Loop through this node, pick each record and set to the input node.
wdContext.nodeZhr_abc_Input().bind((Zhr_abc_Input) model.createModelObject(Zhr_abc_Input.class));
for(int i=0;i<wdContext.nodeZhr_Detail_Output().size();i++)
Zhr_abc_Input objReq = new Zhr_abc_Input();
Zhr_Pad31 insUpdVer = new Zhr_Pad31();
insUpdVer.setQ_Id(wdContext.currentContextElement().getQ_Id());
insUpdVer.setZ_ce(wdContext.nodeZhr_Detail_Output().getElementAt(i).getZ_ce());
objReq.addLt_Pad88(insUpdVer);
wdContext.nodeZhr_abc_Input().addElement(objReq); // Changed from bind to addElement
}//for end
wdContext.currentZhr_abc_InputElement().modelObject().execute();
Note: I just typed the code. Syntax might be wrong here and there. Please correct it while coding.
Regards,
Jaya. -
Nwdi-managed access of pcd-objects from java web dynpro
Hi,
im am trying to access portal pcd-objects from a java web dynpro component (namely getting and setting personalized iview properties). for locally managed web dynpro components this works fine with the code below.
when i try the same with a nwdi managed web dynpro component i run into problems regarding references to used dcs. for instance, i need to reference used dc SAP_JTECHS/tc/epbc/pcm/adminapi/java because the build needs tcepbcpcmadminapijava.jar which is inside the mentioned dc. but access permissions of this dc don't allow the dependency. when i try to "add used dc ..." in nwds i get the error message: illegal dependency: access list does not allow use of ...
has someone any solution for this problem? are there other ways of accessing pcd-objects from java web dynpro (nwdi managed!)?
thanks
heiko
private static void savePersonalizationData(String value) {
try {
IAttributeSet attributeSet = (IAttributeSet) getIview(IVIEW);
attributeSet.putAttribute(ATTRIBUTE, value);
attributeSet.save();
} catch (Exception e) {
private static Object getIview(String pcdPath) throws Exception {
Hashtable env = new Hashtable();
env.put(
com.sap.portal.directory.Constants.REQUESTED_ASPECT,
com.sap.portal.pcm.admin.PcmConstants.ASPECT_SEMANTICS);
env.put(
Context.SECURITY_PRINCIPAL,
WDClientUser.getCurrentUser().getSAPUser());
env.put(
IPcdContext.PCD_PERSONALIZATION_PRINCIPAL,
WDClientUser.getCurrentUser().getSAPUser());
InitialContext iCtx = new InitialContext(env);
return iCtx.lookup(pcdPath);Hi Kust,
To access the PCD objects the code you used looks ok for me but your main issues is related to the dc access permissions. This thread discussed about the similar issue. Please review this below thread.
/message/979328#979328 [original link is broken]
Regards
Krishna Reddy -
Launched thru Java web Start...?
Is there a way to find out whether my application is launched through Java Web Start or as a stand-alone application?
I have think of 2 round about ways -
- Getting the service names using javax.jnlp.ServiceManager.getServiceNames(), which returns null if launched as a standalone application.
- Getting the classloader name.
But, I am looking for one more concrete way of doing it, if any?Akhil,
I was looking for a solution for this very problem and came across a FAQ in another thread that was helpful. See http://vamphq.com/jwsfaq.html and more specifically http://vamphq.com/jwsfaq.html#under -
I updated to Firefox 36.0.1 and now I cannot get Firefox to open up my yahoo.com mail page. Although the tool bars required some work to get them to look right again, and I had to update Adobe flash software to get videos to play with this version, everything else seems to work with this version of Firefox.
Some added toolbar and anti-virus add-ons are known to cause
Firefox issues. '''Disable All of them.'''
Many site issues can be caused by corrupt cookies or cache.
* Clear the Cache and
* Remove Cookies<br> '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
Type '''about:preferences'''<Enter> in the address bar.
* '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
* '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
If there is still a problem,
'''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
While you are in safe mode;
Type '''about:preferences#advanced'''<Enter> in the address bar.
Under '''Advanced,''' Select '''General.'''
Look for and turn off '''Use Hardware Acceleration'''.
Poke around safe web sites. Are there any problems?
Then restart. -
Flash video on web page takes long very time to load before it starts playback
I just created a basic flash file to play a video on my web page and it's taking several minutes to load before it starts playback.
I'm using progressive downlaod and the file is in *.mov format and is 84MB in size. At first that seemed large to me for web play back, but I thought it could handle it since I thought the way progressive download works is that it would start playing the first frame right away and progressively play other frames as they download. However, this seems to be downloading the whole file first (or a major part of it) before starting any playback at all.
Is there some kind of setting I'm missing or is my understanding of the download incorrect and the file size is too large?
Some vitals:
- I'm using Flash Pro CS5
- To create my flash file, I used the standard import video wizard and selected the a file that is "on my computer" and "load external video with playback component" and then, I selected one of the standard skins.
- To deploy the vidoe on my webiste I have three files:
1) swf file containing the FLV component
2) the swf file related to skin
3) the actual video (84MB, mov file)
- Web page includes/embeds reference to swf fileThanks for your response again. Looks like things have changed a bit to complicate this a little more.
adninjastrator wrote:
Are you saying that if I wait long enough it will start to play .... from the link you posted?
What you are implying here is correct. The file won't play no matter how long you wait. Looks like it's because of the "source" file settings in the Import Wizard may now be incorrrect. This is why it's not playing in the new file.
When I created my original Flash Video using a MOV file, during the import wizard, when asked "Where is your video file?" I selected the option "Already deployed to a web server...". Here I entered the url to where the video file is located on my production server.
When I created the new Flash Video using F4V file, during the import wizard, when asked "Where is your video file?" I selected the option "On your computer". Here I selected the file from my local drive.
Sorry for not pointing out the inconsistency earlier - I didn't think it mattered and plus I couldn't get the F4V file to import from the web server.
Anyway, I've changed my object tag using the acutal published html that flash generates and have uploaded all source files to same location.
http://www.upperhand.com/tv/video-intro.html
To sum up the problem(s) I need help with:
Issue #1 - When trying to import F4V file using import wizard, I cannot use "Already deployed to a web server..." as an option for the file location. I believe this is creating issue #2
Issue #2 - For some reason, the F4V file will not load into the SWF file when it's published to my production server.
It works when viewing locally through browser as c:\inetpub\wwwroot\mywebsite\video-intro.html
It doesn't work when viewing on development server through browser as http://localhost/mywebsite/video-intro.html
It doesn't work when viewing on production server through browser as http://www.mywebsite.com/video-intro.html
Issue #3 - When the above are resolved, I'm not certain if my orignal question/issue will be resolved... browser tries to downlaod full file before any playback. -
How can I open help file (HTML or .chm) from Java Web Start (new to JAVA)
Hi All,
Im trying to open the help file of my application.
When trying to access the help file from the GUI (pressing F1 for launching the help file), I'm geting the an error, something like:
"Can't show help URL: jar:file:C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart\RMjar-name!/com/resources/helpFiles/MyHelpFile.html"
It seems that the file which is packed in a jar, was downloaded to the Java Web Start cache directory:
C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart
The code which is activated when launching the help file is:
try
ResourceBundle resourceBundle = DoubleResourceBundle.getBundle("Resource", "ResourceImpl");
RuntimeUtil.launchFile(new File(resourceBundle.getString("help.file")));
} catch (IOException e)
// TODO Auto-generated catch block
e.printStackTrace();
}where the property "help.file" is in some property file in the resource bundle named "Resource", and looks like this :
help.file="com/trax/docs/help/global/MyHelpFile.html"
The function "RuntimeUtil.launchFile" knows how to launch any file in its default application, and indeed it does launches the html, when giving it an absolute path to the file on my PC, as "C:\Helpfiles\MyHelpFile.html" as such:
RuntimeUtil.launchFile("C:\Helpfiles\MyHelpFile.html");My question is :
The application is going to be deployed on a Customer PC. How can I access the html file from the code, with a relative path and not its absolute path on the customer pc, which I can't know?
I found these restrictions regarding web start:
(copied from "http://rachel.sourceforge.net/"):
*Rule 1: Java Archives only. No loose files.* All your resources have to be packaged in Java Archives (jar) if you want to have
them delivered to the user's machine and kept up-to-date automatically by Java Web Start.
*Rule 2: No file paths.* You can't use absolute or relative file paths to locate your
jars holding your resources (e.g. <code>jar:file:///c:/java/jws/.cache/resources.jar</code>).
Absolute file paths won't work because you never know where Java Web Start
will put your jar on the user's machine. Relative file paths won't work because Java Web Start
mangles the names of your jars (e.g. <code>venus.jar</code> becomes <code>RMvenus.jar</code>)
and every JNLP client implementation has the right to mangle your names
in a different way and you, therefore, can't predict the name with
which your jar will be rechristend and end up on the user's machine in
the application cache.Seems complex or impossible, to perform a simple task like opening a file.
Please advise (I'm new to Java and Web Start).
BTW, I'm working with IntelliJ IDEA 5.0.
Thanks,
Zedik.
{font:Tahoma}{size:26pt}
{size}{font}the follwing method i have used to open html file ...
so to access html file i am shipping resources folder with jar file ..
private void openHtmlPages(String pageName) {
String cmd[] = new String[2];
String browser = null;
File file = null;
if(System.getProperty("os.name").indexOf("Linux")>-1) {
file = new File("/usr/bin/mozilla");
if(!file.exists() ) {
}else {
browser = "mozilla";
}else {
browser = "<path of iexplore>";
cmd[0] = browser;
File files = new File("");
String metaData = "/resources/Help/Files/"+pageName+".html"; // folder inside jar file
java.net.URL url = this.getClass().getResource(metaData);
String fileName = url.getFile();
fileName = fileName.replaceAll("file:/","");
fileName = fileName.replaceAll("%2520"," ");
fileName = fileName.replaceAll("%20"," ");
fileName = fileName.replaceAll("jarfilename.jar!"," ").trim();
cmd[1] = fileName;
try{
Process p = Runtime.getRuntime().exec(cmd);
}catch(java.io.IOException io){
//Ignore
can anyone give me the solution..???
Regards
Ganesan S -
web page automatically loads up each time and the exist bottom is disabled on the screen.
Maybe your problem is caused by that particular add-on?
I use the Print/Print Preview add-on and have never had that happen. <br />https://addons.mozilla.org/en-US/firefox/addon/printprint-preview/
Maybe you are looking for
-
Issue with Workflow in a SharePoint-hosted App Application
Hi, I have created a Sharepoint-hosted app which has a list workflow in it. After I deploy it to the sharepoint server, I can not find any workflow under the associated list. However, I did have target list associated with workflow in workflow proje
-
Bursting 2 Oracle BI Analysis type Data Set
Hi We have 2 Oracle BI Analysis type Data Set.We are able to burst but in the email we just recieve only email attachement with only header(only column headings) ( in excel/pdf output without any data. But when we import the report xml and load into
-
Adding JCheckbox as icon to JTree Nodes
Hi, I need to provide a GUI for something like instllation shield. The application shows a list of modules and sub modules in a tree format. Users can select any sub modules for installation, using a checkbox ( located at icon space of a JTree, if po
-
404 error Exception in thread "main" java.rmi.RemoteException: HTTP �������� 4
I have Install Sun Application Server PE and JWSDP,when I run asant run-sample,an error below: run-sample: [echo] Running the simple.TestClient program.... [java] Service URL=http://localhost:8080/securesimple/Ping [java] 2005-11-11 1:03:11 com.sun.x
-
Does Anybody know a good plugin where you can show what song is playing in iTunes to Yahoo! Messenger for windows? So far I've tried the latest version of HyperIM (the only thing I know that can do it) didn't work too well. It worked with iTunes + Wi