struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nuwan Chandrasoma <mymail...@gmail.com>
Subject Re: How my own Interceptor get the parameters from JSP
Date Wed, 05 Dec 2007 07:04:43 GMT
Hi,

Some code like this.

    public String execute() throws Exception {

        String[] name = (String[])parameterMap.get("username");
        System.out.println("usernamein the page is:"+name[0]);

        String[] datenow = (String[])parameterMap.get("dateNow");
        System.out.println("datenow in the page is:"+datenow[0]);


        return SUCCESS;
    }

Thanks,

Nuwan

Ray wrote:
> Nuwan Chandrasoma Wrote:
>> Hi,
>>
>> Its returning a string array. :)
>>
>> Thanks,
>>
>> Nuwan
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> String array?
> And How can I get the "username" value which I just input in the JSP?
> I am almost crazy about this.
> Thx                                                         Ray
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message