Hi Henry,
I have come across the same problem that you came across with and I have been trying
to figure out how to call the applet using the jsp:plugin. I have not tried it yet but
I have come across the DOM whereby you can identify the applet in javascript (when you
define it using the jsp:plugin tag) as such: document.objectid.appletmethod()(use the
value if the id attribute of the object tag is set as 'objectid') . I have not tried
that yet but if you do before me, let me know if it works.
See what's happening I think and the reason why your applets are not loading is
because you are not referencing them correctly. if you use the applet tag to embed an
applet in html and you call it with the traditional method:
document.appletname.appletmethod(), it will work however there are 2 problems:
1. you cant go beyond using JDK 1.1 I beleive and so forget JDK1.2 or 1.3 if your
applet is to do other cool things
2. the applet tag is being deprecated as we speak and the only way to reference it is
throught the object HTML tag.
The servlet engine is transforming your jsp:plugin into an object tag actually if you
use IE, look at page source to see the resulting HTML.
good luck and let me or i'll let you know if the above referencing will work.
Charbel
---------- Original Message ----------------------------------
From: "Cogley, Jonathan" <[EMAIL PROTECTED]>
Reply-To: A mailing list about Java Server Pages specification and
Date: Fri, 27 Oct 2000 07:40:14 -0400
>Henry,
>
>If it is sensitive information, I think the user would feel happier using
>SSL ?
>(in which case you don't have to worry about the encoding ...)
>
>If you insist on using the applet approach then ...
>1) why not hide the form and make the applet call a javascript function to
>unhide
>everything when it has loaded?
>OR
>2) Put all the fields on the applet and do a POST from the applet when they
>hit
>the applets submit (probably the most work cos you eliminate the HTML form
>but
>definitely do-able)
>
>Think carefully about your architecture and which approach fits the
>situation best
>and will be the easiest to maintain.
>
>Hope that helps! :)
>
>Jonathan
>
>
>
>-----Original Message-----
>From: Henry Hooi Tak Keong [mailto:[EMAIL PROTECTED]]
>Sent: 26 October, 2000 8:38 PM
>To: [EMAIL PROTECTED]
>Subject: Applet and javascript...HELP
>
>
>Hi all,
>
>I'm need to encode certain form fields on my jsp page before submitting it
>for processing because the information keyed in by the user is sensitive.
>Does anyone have any recommendations on how I could go about it?
>
>To resolve this issue, I have employed using an applet to encode the user's
>information. The textfields used is still of a html form, and I used
>javascript to invoke a method in the applet class on the textfields of the
>form to help resolve this issue. However, that has led me to several
>problems...
>
>1) I can't seem determine when the applet has fully loaded on the html page
>because if I press the submit button and the applet is still loading, then
>the data in the forms will be posted without being encrypted first.
>
>2) I realised that when I use this applet on form fields in a page with
>frames , it somehow doesn't get loaded properly no matter how long I wait
>for it to load. When I apply this applet to a page without frames, it loads
>up almost instantaniously. Any suggestions on how I could resolve this data?
>
>I have tried using the <jsp:plugin> tag to help download the applet but I'm
>confused on how to reference it as an object, in terms of the DOM.
>Initially, I can reference the html applet tag via
>document.appletname.methodname.
>
>This problem has been eluding me for days already and I really need help. I
>realised that this may not be a the proper mailing list but I'm sure someone
>here must have come across these issues before. I couldn't find an applet
>mailing list from SUN, and if any of you found it, I would be glad if you
>could pass it on. Thanks everyone.
>
>Cheers'
>Henry
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets