Re: How my own Interceptor get the parameters from JSP

2007-12-05 Thread Martin Gainty
t;Ray" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, December 04, 2007 9:00 PM Subject: How my own Interceptor get the parameters from JSP > I tried to use getInvocationContext.getparameters this method return a > Map. when I use Map's get method b

Re: How my own Interceptor get the parameters from JSP

2007-12-05 Thread Nuwan Chandrasoma
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html#getParameterMap() Ray wrote: The return value is a String array! It's really supprised me. May this experience is meaningful for freshman to Struts2 like me. Thx everyone. --

Re: How my own Interceptor get the parameters from JSP

2007-12-05 Thread Ray
The return value is a String array! It's really supprised me. May this experience is meaningful for freshman to Struts2 like me. Thx everyone. -- Ray Chen Email:[EMAIL PROTECTED] Blog: http://clraychen.blogcn.com - To unsubscr

Re: How my own Interceptor get the parameters from JSP

2007-12-04 Thread Nuwan Chandrasoma
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("dateno

Re: How my own Interceptor get the parameters from JSP

2007-12-04 Thread Ray
Nuwan Chandrasoma Wrote: Hi, Its returning a string array. :) Thanks, Nuwan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] String array? And How can I get the "username" val

Re: How my own Interceptor get the parameters from JSP

2007-12-04 Thread Nuwan Chandrasoma
Hi, Its returning a string array. :) Thanks, Nuwan Ray wrote: I tried to use getInvocationContext.getparameters this method return a Map. when I use Map's get method by key"username" I got a result like "@1c98b2" what's going on? Thx --

How my own Interceptor get the parameters from JSP

2007-12-04 Thread Ray
I tried to use getInvocationContext.getparameters this method return a Map. when I use Map's get method by key"username" I got a result like "@1c98b2" what's going on? Thx -- Ray Chen(陈磊) Email:[EMAIL PROTECTED] Blog: http://clraychen.blogcn.com