Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: How to display variables in HTML?

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to display variables in HTML?

    Hi, I'm trying to display a variable, with the effect of html, specifically a superscript. I'd like to have the user enter a number, then have that number be displayed as a superscript, but no need to tell me how to do all that, just the variable/html part.


  2. #2
    Member
    Join Date
    Dec 2009
    Location
    UK
    Posts
    58
    My Mood
    Sleepy
    Thanks
    2
    Thanked 3 Times in 2 Posts

    Default Re: How to display variables in HTML?

    I'm not sure what you mean... do you have some example code please? I use HTML variables, but with PHP and Javascript, not done this with Java, but I'd be interested to know too, and therefore see your source code :-)

    Regards,

    Shaun.

  3. #3
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: How to display variables in HTML?

    What does this have to do with Java programming?

  4. #4
    Member
    Join Date
    Dec 2009
    Location
    UK
    Posts
    58
    My Mood
    Sleepy
    Thanks
    2
    Thanked 3 Times in 2 Posts

    Default Re: How to display variables in HTML?

    Quote Originally Posted by curmudgeon View Post
    What does this have to do with Java programming?
    That's why I want to see the example code... I personally think someone has mixed up Javascript with Java.

    Regards,

    Shaun.

  5. #5
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: How to display variables in HTML?

    Yep, you're probably correct.

    I like this cartoon as a way of explaining it: ham-hamster.jpg

Similar Threads

  1. Differences between local variables and instance variables
    By rob17 in forum Java Theory & Questions
    Replies: 2
    Last Post: March 6th, 2012, 08:34 PM
  2. How to display data against row clicked on html table?
    By reubenmk in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: February 16th, 2012, 03:34 AM
  3. Display HTMl code in JAVA terminal...
    By Alkirk in forum Java Theory & Questions
    Replies: 3
    Last Post: November 16th, 2011, 03:34 AM
  4. Instance Variables and local variables difference
    By dcwang3 in forum Java Theory & Questions
    Replies: 3
    Last Post: October 31st, 2011, 06:33 AM
  5. HTML Help Please!!!!!!
    By coolteenaaron in forum Other Programming Languages
    Replies: 1
    Last Post: May 25th, 2011, 04:28 PM