Re: How my own Interceptor get the parameters from JSP

2007-12-05 Thread Martin Gainty
getparameters gets the map http://www.opensymphony.com/webwork/api/com/opensymphony/xwork/ActionContext html use the get mwthod to obtain the value to which this map maps the specified key http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.html M- - Original Message - From: "Ray" <[EMA

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 --