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, tha
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]
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.
window.location='xxx';
2008/1/21, Raghuveer Rawat <[EMAIL PROTECTED]>:
> Thanks Robi, I think you a
gt;:
>
> But then that means 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"
>
>
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
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:
By the way, where is the "AsPayor" come from? What's the strategy used by S2
to generate the names of thses hidden fileds?
2007/5/26, Dave Newton <
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 in
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]>:
T
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
王曾
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 p
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.(
PropertiesSettings.java:49)
at org.apache.
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
王曾
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)
{
if(this
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 t
You can check your source code of the blank page to see if there is
and 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 log).
My pl
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 repla
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
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 Pitr
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];
}
publi
19 matches
Mail list logo