Re: sub-struts

2007-04-07 Thread WongTseng
If you want to learn more about struts2, you can read the book 'webwork in action' which covers almost 90% of the knowledge about struts2 except for different package and cofig file names. As we all know, struts2 is almost the same as webwork. 2007/4/8, Asaf Paris Mandoki [EMAIL PROTECTED]:

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

2007-04-29 Thread WongTseng
Maybe you should url-encode them first before sending them to client through ajax response. 2007/4/28, Dave Newton [EMAIL PROTECTED]: --- red phoenix [EMAIL PROTECTED] wrote: when ajax receive information which include Chinese code from action of Struts2,ajax will show chinese code into

Re: [S2] Checkbox causes error on form submission.

2007-05-25 Thread WongTseng
It's so strange. If the hidden field is generated to solve the problem of submitting checkboxs' values unchecked , the filed should look like this: input type=hidden name=payment.billerSame value=true/ By the way, where is the AsPayor come from? What's the strategy used by S2 to generate the

Re: How to pass Java parameter to javascript

2006-11-07 Thread WongTseng
when you insert jsp scriptlet into the tag as a value of an attribute, the scriptlet should be bracketed by the quotation marks without anything else inside. 2006/11/8, Pankaj Gupta [EMAIL PROTECTED]: Hi All, I am unable to pass a java parameter to a javascript method. Can you please tell

Re: Issue: using logic:iterate to display rows and html:button to dis tinguish one of them

2006-11-07 Thread WongTseng
It's bacause you have more than one hidden elements with the same name,so whichever row you choose to delete, your action will recive an array of parameter values with the same parameter name. That's the reason why you always get the id of the first row. I suggest you to use a radio boxs to

Re: can not reach the jsp file

2006-11-17 Thread WongTseng
You can check your source code of the blank page to see if there is html and /html tags in it. If there are,that may be because the forward you use is missing or incorrect. 2006/11/17, Ken Hu [EMAIL PROTECTED]: No , I am using firefox. I can see no exception or warning in log file(tomcat's

Re: how to selectively call struts validation from a form

2006-11-23 Thread WongTseng
hi,Paul: You say the validator is based on whatever key I supply.Is that true, as far as I know the validation is linked with the form by the form's name. 2006/11/24, Paul Benedict [EMAIL PROTECTED]: Robin, The validator is based on whatever key you supply. You can choose the key. I like to

Re: Indexed Properties

2006-11-24 Thread WongTseng
I think it's the getResultsPage method that causes your problem. If the results is none, and the parameter index equels any value that is large than 0, an OutOfBound Exception will occur. 2006/11/18, Adam K [EMAIL PROTECTED]: public Product getResultsPage(int index) {

Re: Indexed Properties

2006-11-24 Thread WongTseng
Just think If the struts dosen't set these indexed properties from the lower bound to the upper bound in a ascending order, an outofbound exception will occur. -- Wong Tseng 王曾

[S2]Could not find or error in struts.properties

2006-12-03 Thread WongTseng
I am a newbie to Strus2, and I have just set up a Struts2 project of blank example. When I start the web container, it throws an exception. java.lang.IllegalStateException: struts.properties missing at org.apache.struts2.config.PropertiesSettings.init( PropertiesSettings.java:49) at

Re: [S2]Could not find or error in struts.properties

2006-12-03 Thread WongTseng
thanks s lot. 2006/12/4, Don Brown [EMAIL PROTECTED]: struts.properties goes in WEB-INF/classes In the next version, 2.0.2, it is completely optional. Don On 12/3/06, WongTseng [EMAIL PROTECTED] wrote: I am a newbie to Strus2, and I have just set up a Struts2 project of blank example

[S2]Where is the component interceptor ?

2006-12-21 Thread WongTseng
In webwork,there is a component interceptor which injects components to your actions. But there is no such interceptor in the Struts2 beta release. I wonder whether this interceptor is replaced by something else, or it will be provided in the GA release. -- Wong Tseng 王曾

Re: [Struts2] Ajax anchor tag problem

2008-01-21 Thread WongTseng
since the request is sent via ajax, so the browser side redirect can not work. i suggest you don't redirect you user directly, instead you send back a piece of js, let the js redirect the browser. script window.location='xxx'; /script 2008/1/21, Raghuveer Rawat [EMAIL PROTECTED]: Thanks Robi, I

Re: #request scope

2008-01-29 Thread WongTseng
in S2, inside iteration, the item object is push onto the VS, so just remove the pound key. -- Best Regards Wong Tseng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Question about Struts 2 Flow Control

2008-01-30 Thread WongTseng
actually, S2 have a equivelent to spring's command object. S2 can populate the model object for you, if you get right interceptor. and when a invalid submissiom comes in, s2 action can forward you back to the input page with error messages. s2 also has an oblivious advantage against spring mvc,

Re: How to make tabs in JSP

2007-06-29 Thread WongTseng
The action which is mapped to the url status.do should forward to the jsp in which you have used the JSPTagControl. In this way several actions can share a single tabbed jsp. So don't put the content of the a tab in a separate jsp. 2007/6/29, Kavita Mehta [EMAIL PROTECTED]: Hi Angelo, thanks

Re: How to make tabs in JSP

2007-06-29 Thread WongTseng
that my tabbed JSP would have code for all the tabs ..How does it identify which tab code to open ?? WongTseng [EMAIL PROTECTED] 06/29/2007 05:28 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re

Re: Problem with hidden String[] object

2006-10-20 Thread WongTseng王曾
Maybe you can make your String[] Object a indexed attribute of your formbean. Then use html:hidden: something like this below: Class YourFormBean extends ActionForm{ String[] aaas = new String[5]; public String getAaa(int index){ return aaas[index]; }

Re: Forward Action to Action

2006-10-23 Thread WongTseng王曾
Maybe it's impossible. Cos the data populated into the formbean is read from url parameters, and you can't create parameter in request by any Java API. So 'tis difficult. But you can hardcode the paramters in the path of the forward which points to your second action. 2006/10/21, Jean-Marie