What does < %= obj.getXXX() %> the following expression get evaluated to ?

This expression gets evaluated to an argument for the println statement in the generated Servlet as follows:

out.println( obj.getXXX() ); // Since it becomes an argument here you should not use semicolon in the JSP expression

Showing Answers 1 - 1 of 1 Answers

nitin

  • Dec 16th, 2005
 

It is getting the value from the bean and printing the value.obj is the class name of the bean and get-is the get method and XXX()-is the method name so it evaluates to the value which is returned from the method.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions