Monday, January 21, 2008

Struts: Parameter and Name rules

Here is some lowdown you can refer to:
(1)
it compares request.getParameter("drpState") to "AZ"

(2)
it compares licensesData.toString() to "AZ"

(3)
it compares licensesData.getDrpState().toString() to "AZ"

In your case, , it is same as (2), it compares licensesData.toString() to "AZ".
Pick one syntax you think right for you and you are good to go :)

courtesy: actonwang (guru) link: http://www.experts-exchange.com/Programming/Languages/Java/J2EE/JSP/Q_21622460.html