You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mead Lai <la...@gmail.com> on 2010/09/24 19:44:50 UTC

About Type-Conversion

Hi All,

I try some type-conversion example, and do it step by step following this
document:
http://struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-AdvancedTypeConversion
 <http://struts.apache.org/2.x/docs/type-conversion.html>Unfortunately,  it
show nothing,  although, I add some code to "MyBeanAction.java"
public List getBeanList() {
     MyBean b = new MyBean();
     b.setId(12l);
     b.setName("mae");
     this.beanList.add(b);

        return beanList;
    }

Could you share me some example, either "Annotation" manner or
"Convert-class" way.
Thank you very much.

Regards,
Mead

Re: About Type-Conversion

Posted by Dave Newton <da...@gmail.com>.
What's in the logs? Is devMode turned on? Where's the rest of your
code/config?

On Fri, Sep 24, 2010 at 1:54 PM, Mead Lai <la...@gmail.com> wrote:

> Hello Dave,
>
> Thanks for your response so quickly.
> It is running fine, but show a blank page.No data in the page.
> There are some "conversion"-examples in "struts2-showcase-2.1.8.1" package;
> And they are seems working good.
>
>
> Regards,
> Mead
>

Re: About Type-Conversion

Posted by Mead Lai <la...@gmail.com>.
Hello Dave,

Thanks for your response so quickly.
It is running fine, but show a blank page.No data in the page.
There are some "conversion"-examples in "struts2-showcase-2.1.8.1" package;
And they are seems working good.


Regards,
Mead

Re: About Type-Conversion

Posted by Dave Newton <da...@gmail.com>.
What are you trying to do and/or what specifically doesn't work, under what
circumstances?

Dave

On Fri, Sep 24, 2010 at 1:44 PM, Mead Lai <la...@gmail.com> wrote:

> Hi All,
>
> I try some type-conversion example, and do it step by step following this
> document:
>
> http://struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-AdvancedTypeConversion
>  <http://struts.apache.org/2.x/docs/type-conversion.html>Unfortunately,
>  it
> show nothing,  although, I add some code to "MyBeanAction.java"
> public List getBeanList() {
>     MyBean b = new MyBean();
>     b.setId(12l);
>     b.setName("mae");
>     this.beanList.add(b);
>
>        return beanList;
>    }
>
> Could you share me some example, either "Annotation" manner or
> "Convert-class" way.
> Thank you very much.
>
> Regards,
> Mead
>