Ajax can't receive Chinese code from action of struts2

2007-04-28 Thread red phoenix
when ajax receive information which include Chinese code from action of Struts2,ajax will show chinese code into confusion code,but if ajax receive information which include Chinese code from jsp, ajax will show correct Chinese code.I don't know why raise this error! How to correct it? My code

unsubscribe [EMAIL PROTECTED]

2007-04-28 Thread Alexander Krumeich
unsubscribe [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Ajax can't receive Chinese code from action of struts2

2007-04-28 Thread Dave Newton
--- red phoenix [EMAIL PROTECTED] wrote: when ajax receive information which include Chinese code from action of Struts2,ajax will show chinese code into confusion code,but if ajax receive information which include Chinese code from jsp, ajax will show correct Chinese code.I don't know why

Struts.xml

2007-04-28 Thread Emmanuel JOKE
Hi Guys, I have build a dynamic jsp page which need some parmeter to display the information for instance: http://localhost/category.jsp?cId=12 Inside this pageI've got a form which post some data to my Action. The Action process the data and should go to my result page which need also some

Re: Struts.xml

2007-04-28 Thread Dave Newton
--- Emmanuel JOKE [EMAIL PROTECTED] wrote: So far I've defined the following in strust.xml action name=addCategory class=com.ebespoke.web.admin.action.Categories result/admin/category.jsp/result /action How can I define a some paremeter to pass to a Result page defined in Struts.xml

Nested s:form

2007-04-28 Thread meeboo
Hey all Is there a way to nest s:form elements in S2? I have a nested form which won't reach the specified action, even though it is correctly mapped. If I move it outside of the first form it automagically starts working. The action is mapped like: action name=deleteMovie/*/

i think i figured the problem with doubleselect

2007-04-28 Thread אלחנן מעין
this is my tag: s:doubleselect label=Client and task name=client list=clients doubleList=tasks doubleName=selectedTask / this is my action: public class ProblemPage extends ActionSupport {

[S2] Dynamically Generated Templates

2007-04-28 Thread Asaf Paris Mandoki
Is there a way that the result of an action is a dynamically generated JSP or FreeMarker template?

RE: i think i figured the problem with doubleselect

2007-04-28 Thread אלחנן מעין
ok this is me talking to me: the first problem of the Exception is solved (i set a list instead of set to my class). now my tag is so: s:doubleselect label=Client and task name=client list=clients listKey=id

Help with autocomplete tag

2007-04-28 Thread Guilherme
Hi, I'm using autocomplete tag but it don't work very well. These is my configurations: struts.xml package name=example extends=json-default action name=JSONExample class=action.JSONAction result name=success type=jsonjson.jsp/result /action /package action:

Re: Nested s:form

2007-04-28 Thread James Mitchell
Nested forms are not valid HTML. -- James Mitchell On Apr 28, 2007, at 12:44 PM, meeboo wrote: Hey all Is there a way to nest s:form elements in S2? I have a nested form which won't reach the specified action, even though it is correctly mapped. If I move it outside of the first

Re: Help with autocomplete tag

2007-04-28 Thread Musachy Barroso
The json that is being generated is not understood by the autocompleter, which it is generating is something like: { map : { name: mario } } in 2.6 the autocompleter doesn't accept a map as the datasource. You need to generate something like: { map : [ [name, mario] ] } and

global-exceptions + form-beans, conflict?

2007-04-28 Thread jiangshachina
Hi guys, I'm new to Struts. I'm using Struts 1.3.8 + JBoss 4.0.5.GA + JDK 1.5.0 + Windows XP. I have a struts-config file as show as below, ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.3//EN

Re: global-exceptions + form-beans, conflict?

2007-04-28 Thread jiangshachina
Hello, I think I get the reason -- sequence. form-beans must be prior to global-exceptions, like servlet and servlet-mapping. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi guys, I'm new to Struts. I'm using Struts 1.3.8 + JBoss 4.0.5.GA + JDK 1.5.0 + Windows XP. I have a

Re: ClassCast Exception for ExcelFile Upload

2007-04-28 Thread Laurie Harper
Oops, no, that wouldn't work in this case. Perhaps it would be better if we back up for a moment: why do you need a FileInputStream specifically? Since FIS is a 'root level' IS implementation, i.e. designed to wrap a datasource (file) directly rather than than to augment an existing stram

Re: global-exceptions + form-beans, conflict?

2007-04-28 Thread Paul Benedict
The DTD specifies the order of tags. Your error message is telling you what order they should appear in. On 4/28/07, jiangshachina [EMAIL PROTECTED] wrote: Hello, I think I get the reason -- sequence. form-beans must be prior to global-exceptions, like servlet and servlet-mapping. a cup of