PDA

View Full Version : hello, java scriptlet



sharmin
08-31-2006, 05:43 AM
Hello,

I don't know anything about scriplet. Does any of you have one or two example of scriplets in an html webpage?

Do we use scriplets or how do we use java or java.net to make website or webpage that can make an online search site ( eg. record search site or resume search site, or apartment search site)?

Can we have discussion on this?

ddadmin
08-31-2006, 07:24 AM
Are you talking about a Java applet? That would be the way to embed a Java program within a webpage. Having said that, search is a complex process, and it really depends on how your site is built (ie: php, plain html etc) when implementing a search function for it.

codeexploiter
08-31-2006, 10:03 AM
hi ddadmin,

I think sharmin was not talking about Java applet but about JSP. scriptlets are the parts of JSP.

JSP also allows to write blocks of Java code inside the JSP. You do this by placing your Java code between <% and %> characters.

This block of code is known as a "scriptlet".

Something like a server-side code that can be placed in a file and can use the HTML tags if they need.

Twey
08-31-2006, 02:31 PM
If you're looking to learn JSP, JSPin.com (http://www.jspin.com/) is a good resource.

sharmin
08-31-2006, 09:01 PM
Are you talking about a Java applet? That would be the way to embed a Java program within a webpage. Having said that, search is a complex process, and it really depends on how your site is built (ie: php, plain html etc) when implementing a search function for it.

No java scriplet.

I was not able to get one webpage which has an example of a moderate to easy java scriplet example. That is why I was asking. I think I will be learning this; it is a good discussion forum. So i am seeing, whether I can get some information.

sharmin
08-31-2006, 09:02 PM
Are you talking about a Java applet? That would be the way to embed a Java program within a webpage. Having said that, search is a complex process, and it really depends on how your site is built (ie: php, plain html etc) when implementing a search function for it.


Will you please give an example where we can plug an applet within a webpage. I know some java applet, but I dont know how to plug them.

mburt
08-31-2006, 09:38 PM
<applet code="thefile.class">

Twey
08-31-2006, 10:03 PM
<applet> is deprecated.
<object type="application/x-java-applet" width="300" height="100">
<!--[if IE]>
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="300" height="100">
<![endif]-->

<param name="code" value="XXX.class">

Alternative content

<!--[if IE]>
</object>
<![endif]-->
</object>Thanks to Mike (Winter).

sharmin
08-31-2006, 10:17 PM
<applet> is deprecated.
<object type="application/x-java-applet" width="300" height="100">
<!--[if IE]>
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="300" height="100">
<![endif]-->

<param name="code" value="XXX.class">

Alternative content

<!--[if IE]>
</object>
<![endif]-->
</object>Thanks to Mike (Winter).



Hello, thank you Mburt and Twey. In what order we should put the code?

Mburt's code first then Twey's code?
What is Twey's code for? Why do we have to do browser testing in Twey's code?

I don't have access with my computer; so, I won't be able to try these things till night.

Twey
08-31-2006, 10:31 PM
No, you don't use mburt's code. :) You do browser testing to make sure it works on the largest number of browsers possible.

mwinter
08-31-2006, 10:50 PM
What is Twey's code for? Why do we have to do browser testing in Twey's code?

I briefly explained the reasons (http://groups.google.co.uk/group/alt.html/browse_thread/thread/1a71a3fd69503de8/d4b02174e1cf3f16?&hl=en#d4b02174e1cf3f16) when I originally posted that code to the alt.html newsgroup almost two years ago.

Mike