I am a total newbie in webdesign and I have created a site using the Joomla CMS. However, on a particular page within the site I am trying to launch an interactive calculator that uses java via .class files which are called by an .html file. I used the embedding tag:
<embed src="images/Calculator/classes/examples/PayeCalc.html"
type="application/x-java-applet"
width="1108" height="407">
Nothing shows up on the page however, when I preview it. What am I doing wrong? The .class files are saved in the folder that the .html file is located. Isn't it supposed to call up the files as needed? Why is the page just blank? Can anyone help this newbie to resolve this issue?
Thanks in advance.
Check if your text editor removes the embed tag.
It can happen from the joomla text filters or from the text editor.
Try using JCE text editor and follow the steps described here
Also if you use RSFirewall check this out
Good luck
Related
I'm running a Java web application using Tomcat and I've got my Java classes and .jsp files rendering the web. I am trying to implement a feature where you search for key words within files and then return the files so the user can download them from the webpage.
I want to store the files within a local directory, as the server will eventually be running off a local Linux machine. However, I am unable to get the path to the file to work on the HTML side. In Java I can easily do :
final File file = new File("/home/user/resources");
Which will find the files in there. However, in HTML I've been trying various URL's, including:
a href="/home/user/resource" download>"Name"</a>
However it cannot find the file, I gather this is because it's looking within the web application.
So, my question is. How can I get the HTML side to find the same files, in the same location as Java? If it's not possible without storing the files within the web app, is there a way to serve up the file from the Java side and make it available to HTML?
Also, the files I'll be storing will most likely be Word files, .doc and .docx.
Thanks for your help in advance.
Let me know if you need any more info.
EDIT : Updated download link within the .jsp file and within <% %> tags.
<a href="file:///home/simon/resources/clientInfo/" + entry.getValue() + "\" download>" + entry.getValue() + "</a>
Chrome complains of a network error.
You can do it with file scheme. Without the file scheme the browser assumes that your file is relative to the webpage and tries to resolve the file by making a request to your webapp.The file or link needs file:/// added before the your jsp's <%=path%> variable, so that the browser knows it needs to open a local file on the user's machine.
Sample link
click here
I am working on a project in netbeans, and right now I want to embed links to various pdf files so that when that link is clicked, the program will call up the appropriate pdf in it or somewhere in the hard disk and open it with the pdf viewer.
I came across a 'clickable label' concept in one article, but I dont know how to do that, all the labels I insert do not link to the source tab when I double click on them.
Can someone please provide an example of how to implement a 'clickable label'?
I want to show windows directory structure in a web page so that user can select a file and upload to server for backup.Using java am able to get all the directory's and files but I don't how to proceed further to show them in web page as in windows directory structure.I already saw many jquery plugins for that.All they are just static.I need a dynamic Tree structure .It must show all user drives,directory's and files. Please help me to find a solution for this.
Thanks in Advance.
Try jQuery File Tree plugin.
Demo
I am trying to integrate CKEditor in Netbeans to my simple web application. I did follow the documentation given in their official site, but cudnt install. It just shows a textarea instead of the editor.
Is there any tutorial on how to integrate or can anyone help me on this?
Thanks,
Shilpa
it seems you are missing to load css & js files. please check again & tell me if css & js files is downloaded & working.
You just have get ckeditor folder from http://ckeditor.com and put it outside the WEB-INF folder.And keep the ckeditor jar file in WEB-INF/lib folder.If you use jsp page get the include this tag in your page
<%# taglib prefix="ckeditor" uri="http://ekeditor.com"%> and in the body section of the html page create one textarea and replace it with <ckeditor:replace parameters />.
If you want to write all the toolbars and events in java and get them into jsp page use script lets and import these libraries. <% import page="com.ckeditor.EventHandler"%>.
If you want more examples on java refer here http://svn.ckeditor.com/CKEditor.Java. Hope this helps.
I am workign on a webpage and in that I am querying a DB and getting filepath. I am able to dispaly that path from DB on my page. Now as an enhancement I wanted to add a 'Open' button next to the path being displayed. As the file would be .xml or .xsd so we can use the new window/tab of browser to open the same.
I am aware of html codes used to upload a file but don't know the code to open a file.
I tried playing with <input type=file> but no luck.
So can anyone help me in this.Any small pointer will be helpful.
I am not using Swings so no point of trying JFileChooser
A file input is for people to upload files.
If you want to let people view files that are on the server, just use a normal link.