Re: Struts 2 - Dispatch Action
cm132005 schrieb am 06.05.2009 18:37: In Struts 1 dispatch action, a request parameter can be set either as a form attribute or as a request attribute from within any action class or through URL and the correct dispatch method in the action gets invoked. Is there a way to do this in Struts 2? Is there some kind of migration guide that discusses issues like these? Greetings, Marco. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 2 - Dispatch Action
Marco Bakera wrote: cm132005 schrieb am 06.05.2009 18:37: In Struts 1 dispatch action, a request parameter can be set either as a form attribute or as a request attribute from within any action >> class or through URL and the correct dispatch method in the action >> gets invoked. Is there a way to do this in Struts 2? Dynamic method invocation. Is there some kind of migration guide that discusses issues like these? When I search the web there appear to be several. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Struts 2 - Dispatch Action
specifically action method http://struts.apache.org/2.0.14/docs/action-configuration.html#ActionConfiguration-DynamicMethodInvocation although i wonder about the derivation of ! = bang assignment? Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Sun, 10 May 2009 08:16:04 -0400 > From: newton.d...@yahoo.com > To: user@struts.apache.org > Subject: Re: Struts 2 - Dispatch Action > > Marco Bakera wrote: > > cm132005 schrieb am 06.05.2009 18:37: > >> In Struts 1 dispatch action, a request parameter can be set either as > >> a form attribute or as a request attribute from within any action > >> class or through URL and the correct dispatch method in the action > >> gets invoked. Is there a way to do this in Struts 2? > > Dynamic method invocation. > > > Is there some kind of migration guide that discusses issues like these? > > When I search the web there appear to be several. > > Dave > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _ Hotmail® goes with you. http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009
How to invoke annotation validation manually
Hi I've an action class like below. I put the skipvalidation annotation because I don't want strut to validate all annotated fields. My problem is that I still want to do the validation for 'name' field. So.. is there a way to manually invoke only certain fields' annotation validation? I could check whether the 'name' field is empty or not in my 'execute' action, but that would be duplicating code and you don't really want to do that when you have many fields in your class. @Validation public class SomeClass extends ActionSupport { private static final long serialVersionUID = 1L; private String name; private String description; @SkipValidation public String execute() { return SUCCESS; } @RequiredStringValidator(fieldName="name", message="Please enter name") public String getName() { return name; } public void setName(String name) { this.name = name; } @RequiredStringValidator(fieldName="description", message="Please enter description") public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } } Thanks, Joe -- View this message in context: http://www.nabble.com/How-to-invoke-annotation-validation-manually-tp23477091p23477091.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
newbie and hidden field
Hi, I am modifying a struts application and know nothing about struts. I have tags with Thanks. Pam Withnall The ECN Group Bus.:+ 61 2 8905 4830 Fax: + 61 2 8905 4801 Mobile: + 61 0415 064 958 E: pam.withn...@ecngroup.com.au
Using session object in JSP page
Hi, I am having a session object created in the execute method of my action class like this : Map sesion=ActionContext.getContext().getSession(); sesion.put("username",getUn());/*getun() returns the username form field data*/ I want to use this session data in all my JSP pages, how to use the session data in my JSP? I am using Struts -2 and NetBeans 6.1 IDE. Thnaks in advance, -- View this message in context: http://www.nabble.com/Using-session-object-in-JSP-page-tp23477472p23477472.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: newbie and hidden field
Um... I don't think those are Struts tags. Could this be what you're using? http://www.common-controls.com/en/index.php If yes, then you should ask your question here: http://www.common-controls.com/bbs/?loc=en Nils-H On Mon, May 11, 2009 at 7:32 AM, pam wrote: > Hi, > I am modifying a struts application and know nothing about struts. > I have tags with i managed to find the definition and wanted to have a hidden field, I have > some javascript i want to run and store the result in a hidden field to get > on submission. > > But the hidden field i made is shown when i update it. > > I also have a problem with the background colour, but will look through my > css > > here is my tag: > > > > > > rows="3" disabled="false" required="false" > onkeydown="OnKeydownEventOccured(event)"/> > > id="scanstring" property="scanstring"/> > > > > > > Thanks. > > Pam Withnall > The ECN Group > Bus.: + 61 2 8905 4830 > Fax: + 61 2 8905 4801 > Mobile: + 61 0415 064 958 > E: pam.withn...@ecngroup.com.au > > > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Using session object in JSP page
That depends on how you want to use it. The tag reference should give you the information you need. http://struts.apache.org/2.1.6/docs/tag-developers-guide.html http://struts.apache.org/2.1.6/docs/ognl.html http://struts.apache.org/2.1.6/docs/tag-syntax.html Nils-H On Mon, May 11, 2009 at 7:57 AM, NR031 wrote: > > Hi, > > > I am having a session object created in the execute method of my action > class like this : > > Map sesion=ActionContext.getContext().getSession(); > sesion.put("username",getUn()); /*getun() returns the username form field > data*/ > > I want to use this session data in all my JSP pages, how to use the session > data in my JSP? I am using Struts -2 and NetBeans 6.1 IDE. > > > Thnaks in advance, > > > -- > View this message in context: > http://www.nabble.com/Using-session-object-in-JSP-page-tp23477472p23477472.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: newbie and hidden field
yes -Original Message- From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com] Sent: Monday, 11 May 2009 4:05 PM To: Struts Users Mailing List Subject: Re: newbie and hidden field Um... I don't think those are Struts tags. Could this be what you're using? http://www.common-controls.com/en/index.php If yes, then you should ask your question here: http://www.common-controls.com/bbs/?loc=en Nils-H On Mon, May 11, 2009 at 7:32 AM, pam wrote: > Hi, > I am modifying a struts application and know nothing about struts. > I have tags with i managed to find the definition and wanted to have a hidden field, I > have some javascript i want to run and store the result in a hidden > field to get on submission. > > But the hidden field i made is shown when i update it. > > I also have a problem with the background colour, but will look > through my css > > here is my tag: > > > > > > rows="3" disabled="false" required="false" > onkeydown="OnKeydownEventOccured(event)"/> > > id="scanstring" property="scanstring"/> > > > > > > Thanks. > > Pam Withnall > The ECN Group > Bus.: + 61 2 8905 4830 > Fax: + 61 2 8905 4801 > Mobile: + 61 0415 064 958 > E: pam.withn...@ecngroup.com.au > > > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Locale specific stringlength validation, how?
Hi, Characters from one language often carry more information than another (e.g. Chinese vs. English). To express a word/phrase/sentence string, different locale may need different string length. I was wondering if it is possible to have locale specific stringlength validation using Struts' validation framework. The only approach I could think of is checking the locale and string length in ActionSupport code and output json block but I suppose this is not taking fully advantage of Struts' validation framework. Am I right or is there any better way? Many thanks in advance, Qunhuan