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 2 of 2

Thread: attributes and properties in jsp page

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default attributes and properties in jsp page

    Respected PROGRAMMERS,

    If on a jsp page, there is a variable named "someName" and a getter method:- getSomeName() gets it.
    Then it should be the property. Or can it be some attribute?

    In head first jsp and servlets, on page 383, a method getCurrentTip() gets the variable currentTip.
    And as per the book,currentTip is a request scoped attribute.
    But getCurrentTip() method gets currentTip.

    It should be a property. It should not be an attribute!

    Thank You SIR!


  2. #2
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: attributes and properties in jsp page

    Quote Originally Posted by god1gracious View Post
    Respected PROGRAMMERS,

    If on a jsp page, there is a variable named "someName" and a getter method:- getSomeName() gets it.
    Then it should be the property. Or can it be some attribute?

    In head first jsp and servlets, on page 383, a method getCurrentTip() gets the variable currentTip.
    And as per the book,currentTip is a request scoped attribute.
    But getCurrentTip() method gets currentTip.

    It should be a property. It should not be an attribute!

    Thank You SIR!
    And what is the question?

Similar Threads

  1. key with 2 attributes?
    By ober0330 in forum Collections and Generics
    Replies: 1
    Last Post: October 10th, 2011, 11:47 AM
  2. Get CSS Attributes using Java
    By justinmifsud in forum Object Oriented Programming
    Replies: 2
    Last Post: February 15th, 2011, 04:08 PM
  3. javax.print setting attributes
    By prodtechjoshim in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 4th, 2011, 05:54 AM
  4. Cannot access class attributes
    By Cyburg in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 29th, 2010, 07:30 AM
  5. looping through an ArrayList of objects with their own attributes
    By etidd in forum Java Theory & Questions
    Replies: 2
    Last Post: April 2nd, 2010, 06:15 AM

Tags for this Thread