This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
if you want to get a values in '.jsp' with some collections you have to put into the session or request and get access
by using OGNL expressin in '.jsp'. You already written getter and setter methods for that collections.
public String getApplication()
public void setApplication(String application)
this.application = application;
@suraj: Please stop confusing the issue: the reason "applicationlist" wasn't resolved is because the getter is written as "getApplicationList()", meaning the correct OGNL expression would be "applicationList". Also, "#request" is *already present* in the value stack--not only would adding a getter be redundant, your expression is incorrect, since "#request" would refer to a *named* value stack object rather than one present on the stack itself. If there was a (again, redundant) "getRequest()" in the action it would be accessed with "request" in OGNL, not "#request".
Joined: May 13, 2006
The problem I face is funny It is similar to the initial problem I posted in this thread.
David, thank you, with your comment to check the case of "applicationlist",I was able to populate the applicationlist.
Now, I have another list declared in the same fashion; the details are as below and it is empty. I think I am missing something; can someone please check?
I fail to understand what could be going wrong; I have cross checked the code for issueList field with the applicationList field and all looks fine to me
Again the name of your getters don't match the name you specify in listKey and listValue. Your getters in Issue class are getAppId and getAppName not getIssueId and getIssueName. So your properties are not matching...