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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
yes, if the getSecondAttr method returns a non null value then you will not get null concatenated.
ASKER
Thanks. I was reading a book passage that was incorrect and I wanted a second opinion!
John
John
ASKER
John