Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: hello, java scriptlet

  1. #1
    Join Date
    Jul 2006
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default hello, java scriptlet

    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?

  2. #2
    Join Date
    Aug 2004
    Posts
    9,918
    Thanks
    3
    Thanked 969 Times in 957 Posts
    Blog Entries
    15

    Default

    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.

  3. #3
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,626
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    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.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    If you're looking to learn JSP, JSPin.com is a good resource.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Jul 2006
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java Scriplet

    Quote Originally Posted by ddadmin
    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.

  6. #6
    Join Date
    Jul 2006
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java applet---how to plug it in webpage?

    Quote Originally Posted by ddadmin
    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.

  7. #7
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Code:
    <applet code="thefile.class">
    - Mike

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    <applet> is deprecated.
    Code:
    <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).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Jul 2006
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to put this code? Where to put it?

    Quote Originally Posted by Twey
    <applet> is deprecated.
    Code:
    <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.

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    No, you don't use mburt's code. You do browser testing to make sure it works on the largest number of browsers possible.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •