Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2012
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Inserting HTML code in a jsp page

    Greeting folks!

    I am not a coding guy to be honest and am working as IT administrator in a small firm.

    customer has an application on TOMCAT and wants an HTML code snippet to be added on a jsp page. I need some quick guidance.

    I can share the code and the jsp if anyone is willing to help me.

    Regards

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,166
    Thanks
    75
    Thanked 4,338 Times in 4,304 Posts
    This is the JavaSCRIPT forum.

    JSP uses JAVA.

    The two have little in common other than the first 4 characters of their names.

    A moderator will surely move this to the proper forum.

    Having said that:

    JSP pages *ARE* HTML pages. Only the code enclosed in <%....%> is Java.

    So you can mix the two as you like.

    Code:
    <html>
    <body>
    <h1>See, this is HTML</h1>
    <%
    // and now we are writing Java code 
    for ( int i = 0; i < 100; ++i ) { ... }
    %>
    And this is HTML again.
    </body>
    </html>
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • Users who have thanked Old Pedant for this post:

    zion_rulz (05-23-2012)


  •  

    Tags for this Thread

    Posting Permissions

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