Link to home
Start Free TrialLog in
Avatar of Laminamia063099
Laminamia063099

asked on

JSP Question - URGENT

Ok, the following is my question.  Say I have a class implementing a tag.  This tag has two attributes, both correctly defined in the tld and correctly used in the JSP.  If the class implementing the class has a method like this:

public String getFirstAttr() {
 return firstAttr + getSecondAttr();
}

If we assume everything is correctly implemented, is it possible for getFirstAttr to return the value of firstAttr concatenated with null instead of the value provided for secondAttr?

Please respond quickly.

John Rayburn
ASKER CERTIFIED SOLUTION
Avatar of black
black

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Laminamia063099
Laminamia063099

ASKER

Notice, I mention that getSecondAttr returns null "instead of the value provided for secondAttr". If secondAttr is not null, null would not be returned, correct?

John
yes, if the getSecondAttr method returns a non null value then you will not get null concatenated.
Thanks.  I was reading a book passage that was incorrect and I wanted a second opinion!

John