Hi Everyone,
I'm new to Struts. Please help me figure out why the List myList is not
being displayed in JSP, although my String variable s is displayed. Your
help will be greatly appreciated! Thanks!
Here's the code:
struts.xml
http://struts.apache.org/dtds/struts-2.0.dtd";>
. Change the line
>> "List
>> myList = new ArrayList();" in getAllEmployees() to just be
>> "myList =
>> new ArrayList();" and do as Lukasz suggests and you should be OK.
>> jk
>>
>> On Thu, May 7, 2009 at 11:57 AM, Lukasz Lenart
>> &
That's great! I'll look into that. Thanks again.
Jim Kiley wrote:
>
> The checkstyle, FindBugs, or PMD plugin does this for sure.
>
> On Thu, May 7, 2009 at 8:50 PM, Dave Newton wrote:
>
>> SofIAm wrote:
>>
>>> Thank YOU ALL! What a dum
s this or use the samelist.
>public String getAllEmployees() {
>//remove the List
>List myList = new ArrayList();
>
>}
>
>
> Cheers.
>
> Satya
>
> On Thu, May 7, 2009 at 8:54 AM, SofIAm wrote:
>
>>
>>
4 matches
Mail list logo