Need
DNN Support
?
DeskPal.com
Learn DNN / DotNetNuke
Login
Subscribe to DNNCreative
Home
Subscribe
Training & Tutorials
Tutorials for Beginners
Tutorials for Administrators
Tutorials for Core Modules
Tutorials for Advanced Users
How to Build a Website in DotNetNuke
Skinning Tutorials
Module Development
Third Party Modules
Forum
Search
Search
Home
Subscribe
+
Training & Tutorials
Tutorials for Beginners
Tutorials for Administrators
Tutorials for Core Modules
Tutorials for Advanced Users
How to Build a Website in DotNetNuke
Skinning Tutorials
Module Development
Third Party Modules
Forum
You need to
Register
for free and
Login
to post a message in the forum.
Forum
Forums
Search Forum
Search
Advanced Search
Topics
Posts
Unanswered
Active Topics
Forums
>
DotNetNuke®
>
DotNetNuke® Questions
java applet implementation in DNN
Last Post 04/19/2011 9:13 PM by
Pilot
. 1 Replies.
Sort:
Oldest First
Most Recent First
Check this box to subscribe to this topic.
Prev
Next
You are not authorized to post a reply.
Author
Messages
Bo
Nuke Master
Posts:215
01/17/2011 11:21 PM
Hello There, I have been trying to get my java applet to working properly on my powerdnn host and was having a hard time with it. After conversing back and forth with their level1 and level 2 technitions tonight I finally got to the bottom of the problem and realized that in my specific case the cause had to do both with the hosting company and myself as their were many factors in this issue which weren't all factors in regards to host related tasks like setting up proper mimes but I wanted to share with you the letter I wrote to them about my solution as I thought it might help some folk here on creative magazine who might of run up against a wall when trying to implement java applets. --------------------------------------------- Hello There, I just wanted to let you know I finally cracked the case of the defunct java applet and what my investigation turned up was that there were multiple factors causing this not to work correctly for me and I thought I might list them here so in case someone else has an issue you may be able to look at it. 1. When creating the MIME for the java applet and jar file I failed to use correct extensions (i.e. .class and .jar) rather I interpreted extension as meaning the same as say label or how would you like the mime to be named opposed to what extension should be associated with perticular MIME Content. Thanks for creating the jar mime for me correctly by adding the .jar in the extension area that was what gave me the clue that my extension called javaapplet should have been called .class. 2. Apparently a signed JAR file has a rule that it can only be one directory deep from the root of your web application check out the following website for insight on this
http://www.coderanch.com/t/259054/A...FoundError
by attempting to put the class and jar files in what I considered the place where DNN would likely call the root of the application (i.e. /portals/0) was actually two folders deep from the real root (i.e. admin, desktopmodules, etc...) so hence broke the rule for signed jar extension and hence wouldn't work 3. While I did upload the class file that showed up in the code attribute of the applet tag apparently this compiled java code was calling for another class which I hadn't uploaded and I guess I just assumed when the java console at times gave me the message NoDefClass found instead of carefully reading the name of the .class file it was looking for I assumed it was looking for the one I had wired into the code attribute of the applet tag opposed to a class file that was being called from the compiled class that was wired into the applet tag. Once I fixed up issues with the mime on your server, uploaded all needed class files and assured all these files were only one directory deep from the root of the application all worked fine. By the way in order to do this I had to use the codebase attribute (which had to be an absolute link) to tell the applet tag that the jar and class files could be found in a folder one level deep from the root of the domain. the codebase tag would not allow me to use a relative link though. Now the only other hiccup I have to figure out (which isn't something you guys have to worry about) is how to get two submit buttons that initially came with this applet to post without using actual <form>> and </form> tags since this would be breaking the asp.net rules of form within a form. I know the javascript DOM is capable of allowing form components to post appropriately without the use of the FORM tag I just have to dig in and figure out how this could be done. Thanks ya'll for working with me on this though and hopefully this comment can be beneficial to all you level 1 and 2's out there if another customer like me runs against a wall in regards to these java applets in a DNN environment. Take Care, Bo --------------------------------------------------
Pilot
Nuke Newbie
Posts:1
04/19/2011 9:13 PM
Bo,
Thank you for this detailed posting. I too am attempting to get a java applet to work. Here is the structure as it is called in a simple .html page:
</style>
Untitled
<script language="javascript" type="text/javascript" src="scripts/mycustomapp.js"></script> <br /> <script language="javascript" type="text/javascript"> <br /> //<![CDATA[ <br /> var applet = new MYApplet("applet", "applet/mycustomapp.isms", getCustomDefaultResources("applet/resources"), ""); <br /> //]]> <br /> </script> <br /> </html> <br /> <br /> My questions are: <br /> - where/how did you place your statements in your DNN page (in an ascx page?) <br /> - how is this best to load? Putting in my aspx skin doesn't allow me to add statements outside of <body> tag but before the closing </html> tag. <br /> - is this the best way to proceed? <br /> - where did you place your java and support files (under your \Portal\nn\ folder?) <br /> <br /> Thanks for your help! <br /> <br /> - where did you place your java and support files (under your \Portal\nn\ folder?) <br /> <br /> Thanks for your help! <br />
You are not authorized to post a reply.
Special Bonuses
--Subscriber Bonuses
--Readers Offers
Users Lounge
--Announcements
--DNN Creative Articles
--Everything Else
--Feedback, Suggestions and More
--Membership
--Site Review Please!
--Testimonials
--Podcasts
DotNetNuke®
--DotNetNuke® Questions
--Modules
--Modules - What's needed?
--Quick Tips
Hosting
--DotNetNuke® Hosting Providers
Skinning Toolkit
--Skinning Toolkit
UK DotNetNuke User Group
Forums
>
DotNetNuke®
>
DotNetNuke® Questions
Latest Forum Posts
Can you Run Xcode in Linux?
by Aman Singh
Can you Run Xcode in Linux?
Can you Run Xcode in Linux?
by Aman Singh
Can you Run Xcode in Linux?
Billed for subscription that was canceled
by Ryan
I was just billed for a subscription that was canc eled / inactivetive how do I get a refund for th
Meta Title and Meta Description are not showing properly
by DNN User
Hi, On my site the meta title and meta descriptions are not showing properly. It's showing the m
Search is not functioning properly
by DNN User
Site: https://www.prv-engineering.co.uk/search If I search any item only the 1st option under sea
Search is not functioning properly
by DNN User
Site: https://www.prv-engineering.co.uk/search If I search any item only the 1st option under sea
DNN Platform import site optio
by Melanie Weaver
Is it possible to import site template in DNN Platform 8.0? We have internal Evoq Content 8.1 tha
Events Module for DNN V5?
by Tugboat
Would anyone have a download link for the version 5.0.3 Events Module? Thanks!
"Ghost" TabID Number?
by Tugboat
Hi! I have a portal instance with multiple child portals and on one of the child portals, there i
RE: DNN Load Testing
by ayman sharkawy
Hi. Have you already implemented a site using the DNN . And how the performance of the site and its
Publish All Pages
by NSUOK
I'm using DNN Evoq Content Basic 8.2.0. When I make the HTML Pro module display on all pages, I h
Simpler profile needed in 9.2.2
by Donald
We are upgrading a DNN 4.8.4 site to DNN 9.2.2. On 4.8.4, the top bar shows the user’s name. If yo
How to link from dnnmodal popup to web site page?
by Donald
Hello all. I am using a dnnmodal.show popup. The popup works correctly, showing the content that I
RE: Document Collaboration
by Nick Davern
That feature would be super beneficial for our needs as well! Does anyone have an update as to if th
RE: DNN 9.2, how to set default theme?
by Andy Stephenson DNN Creative
you do that under "Manage/Themes". Note the highlight blue border around the default container and d
DNN 9.2, how to set default theme?
by Donald
Please disregard, found Manage Themes I cannot find how to set a default portal theme in DNN 9.2
RE: Looking for DataSprings Dynamic Forms
by Andy Stephenson DNN Creative
Your best chance would be to contact Chad Nash @ http://www.datasprings.com/
Looking for DataSprings Dynamic Forms
by Jakir HM
Looking for DataSprings Dynamic Forms 3.4 for DNN 4.x 5.x for my site (https://themasters2018s.com/)
RE: Help with Cycle Image Carousel not displaying images
by peter
I had the same problem with the Will Strohl Content Slider after upgrading to DNN 9.1 The above an
RE: Object reference not set to an instance of an object
by Andy Stephenson DNN Creative
Check this one might be useful: http://www.dnnsoftware.com/answers/im-tryin-to-move-my-site-to-pr
Used
By
Testimonials