Re: [ANNOUNCE] Struts Console v4.0
James, Congratulations, it is a great tool ! Thanks William. From: James Holmes [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: [ANNOUNCE] Struts Console v4.0 Date: Tue, 24 Jun 2003 23:28:57 -0400 Struts Console version 4.0 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.0.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.0.tar.gz Struts Console is FREE software. This release most notably adds support for editing JSP Tag Library files (*.tld) and fixes the long running JBuilder plugin problems. Changes with Struts Console v4.0 *) Fixed long running bug where Struts Console's version of JDOM library conflicted with that used by JBuilder. *) Fixed bug where updating Global Constants in Validator config wasn't marking file as changed. *) Fixed Console to properly save files as UTF-8 instead of system encoding. *) Fixed IDEA plugin to properly refresh config file in text editor when changes are made with Console. In doing so, improved plugin performance greatly. *) Fixed a couple of very minor bugs in IDEA plugin. *) Fixed bug where using Escape key or Cancel button to close dialogs would sometimes lead to new elements being created erroneously. *) Added support for editing JSP Tag Library (*.tld) files. *) Added support for bean element in Tiles config files. *) Added instructions to IDEA plugin for newbies. Thanks, -james [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to reject missing taglibs?
Hi Luiz, How the compiler will know if it is a simple text or a tag-lib that you defined ? I think that it is not possible. William. From: Luiz-Otavio Zorzella [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: How to reject missing taglibs? Date: Mon, 10 Feb 2003 08:34:36 -0800 If I use a JSP tag in a jsp without importing the taglib before, no error message will be displayed, and all it will happen is that the tag will have no effect. Since I do pre-compilation of the pages, is there a way to make the JSP compiler reject pages that use tags it does not know about? Thanks, Zorzella - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Precompiling JSPs
Hi, What do you think about never precompile the JSPs ? William. From: Billy Ng [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Precompiling JSPs Date: Mon, 13 Jan 2003 13:05:17 -0800 I used Ant to precompile the JSPs before. It was very good but took much longer to compile a build. If you have 2,000 JSPs, mm... And I can tell how hard to maintain 2000 entries in the web.xml. Billy Ng - Original Message - From: William W [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 13, 2003 12:01 PM Subject: Precompiling JSPs Hi All, My app has more than 2,000 JSPs. I can precompile my JSP and map it into the web.xml file. But I think that it would become a little big. Sugestions ??? Thanks, William. _ The new MSN 8 is here: Try it free* for 2 months http://join.msn.com/?page=dept/dialup -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Precompiling JSPs
Hi All, My app has more than 2,000 JSPs. I can precompile my JSP and map it into the web.xml file. But I think that it would become a little big. Sugestions ??? Thanks, William. _ The new MSN 8 is here: Try it free* for 2 months http://join.msn.com/?page=dept/dialup -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How can I implement session time out control in struts
You can try to implement the HttpSessionBindingListener. In the valueUnbound method, you can put your object in the session again. But you class need to have a field indicating that you did the five minutes, or our object will never leave the session. You can try something like this. Wiliam. From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: How can I implement session time out control in struts Date: Wed, 18 Sep 2002 10:11:12 -0400 I am not sure about some of this, but one problem is going to be actually notifying the user. Basically I think that unless the user actually is using the pages during the last five minutes - how are they going to be notified? That and you can't reload the page? Frames maybe? One frame on the screen, another that refreshes every minute or something. Applet maybe? -Original Message- From: mkhan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 10:05 AM To: struts-user Subject: How can I implement session time out control in struts Our application requires to notify 5 mins before the session time out and give an option to client to increase their session time out for another increment of 30 mins without reloading their page ...Any suggestions? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
call a action inside another action
Hi All, How can I call a action inside another action ? For example. I have a action action1 whith a method action1Method. Now I have a action action2 and I want to call action1.action1Method. How can I do it ? I have to instantiate the action1 ? Thanks. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tiles definition question
My friends, Is it possible ?? definition name=myDef path=myDef.jsp put name=title value=My Company / put name=top value=top.do /= Call some action put name=body value=body.jsp / put name=botton value=botton.jsp / /definition Thanks, William. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Real path question
Hi, I have a parameter that is a file propertie in my plugIn, the parameter name is myFile and the parameter value is /WEB-INF/classes/myFile.properties. But when I try to read the file, the system is looking for it in c:\WEB-INF\classes\myFile.properties. How can I get the real path ? Thanks, William. _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [ANN] Chapter 11 of the O'Reilly Struts book now available
Hi Chuck !! Why didn't you talk about using validator with DispatchAction ? David was helping me to program a good example, and now , it is working. William. From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [ANN] Chapter 11 of the O'Reilly Struts book now available Date: Tue, 09 Jul 2002 15:49:15 + Chapter 11 Using the Struts Validator has been posted on theserverside.com. http://www.theserverside.com/resources/strutsreview.jsp Chapters 8 and 20 will also be posted this week. As always, I look forward to the feedback. Chuck -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [ANN] Chapter 11 of the O'Reilly Struts book now available
Hi Robert, I don't know if this is the best but it is doing the job. My solution : I did a class MyValidator with two methods (verifyMethod and validateRequired) --- private static boolean verifyMethod( Object bean, ValidatorAction va, Field field, ActionErrors errors, HttpServletRequest request) { String methodRequest = request.getParameter(method); String methodsToValidate = field.getVarValue(method); boolean validate = false; if ((methodsToValidate != null) (methodsToValidate.length() 0)) { if (methodRequest != null) { if (methodsToValidate != null) { StringTokenizer st = new StringTokenizer(methodsToValidate,,); String method = ; while (st.hasMoreElements()) { method = (String) st.nextToken(); if (method.equals(methodRequest)) { validate = true; break; } } } } } return validate; } public static boolean validateRequired( Object bean, ValidatorAction va, Field field, ActionErrors errors, HttpServletRequest request) { if (verifyMethod(bean,va,field,errors,request)) return StrutsValidator.validateRequired(bean,va,field,errors,request); else return true; } -- In the file validaion-rules.xml I changed the validator required like this: validator name=required classname=MyValidator method=validateRequired ... /validator Now , I can configure in the validator.xml the methods that I want to validate. For example : form name=logonForm fieldproperty=userId depends=required arg0 key=logonForm.email.displayname/ var var-namemethod/var-name var-valueupdate,delete/var-value /var /field /form William. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tiles And Struts
Why not plugIn ? What functionality is lost if using tiles' plugIn ? Just out of curiosity. William. From: Vincent Stoessel [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Tiles And Struts Date: Wed, 26 Jun 2002 11:42:50 -0400 Thanks. That's what I thought. I was wondering why the original poster id not want to use it. Cedric Dumoulin wrote: By using tiles ActionComponentServlet , no Struts functionalities are lost. You gain one : the ability to use Tiles definitions names as Struts forward. Note that Struts1.1 also require the TilesRequestProcessor to enable Tiles. Cedric Vincent Stoessel wrote: Just out of curiosity, what functionality is lost by using tiles' ActionComponentServlet ? Thanks Ricardo de Souza Moura wrote: Can I use a plugIn to Tiles ? I am not wanting to use the ActionComponentServlet, but I am wanting to use the definitions-config param. There are some way ? Thanks _ MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua fotos: http://photos.msn.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: struts validation and multiple message resources files
Is there a solution for this problem ? Thanks, William. From: Alok Ghosh [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: struts validation and multiple message resources files Date: Tue, 11 Jun 2002 13:24:04 -0400 Hi, I am running the new struts validation that uses the validation.xml file. In my validation.xml file i have all the forms in there and the validation for every type of textbox of the different forms. My problem is the caption name of each text box are already in sepearte Application.properties files. But validation.xml seems to only look at the default Application.properties file, (the one without a key=xxx specified in the struts-config.xml file. Is there any way i can use bundle=xxx to make validation.xml goto different Application.properties files to find the msg caption of the text box? Alok, (who one day dreams of seeing the text First Name is Required in an alert box, rather than {space} is Requried) _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Validator and DispatchAction
My solution : I did a class MyValidator with two methods (verifyMethod and validateRequired) --- private static boolean verifyMethod( Object bean, ValidatorAction va, Field field, ActionErrors errors, HttpServletRequest request) { String methodRequest = request.getParameter(method); String methodsToValidate = field.getVarValue(method); boolean validate = false; if ((methodsToValidate != null) (methodsToValidate.length() 0)) { if (methodRequest != null) { if (methodsToValidate != null) { StringTokenizer st = new StringTokenizer(methodsToValidate, ,); String method = ; while (st.hasMoreElements()) { method = (String) st.nextToken(); if (method.equals(methodRequest)) { validate = true; break; } } } } } return validate; } public static boolean validateRequired( Object bean, ValidatorAction va, Field field, ActionErrors errors, HttpServletRequest request) { if (verifyMethod(bean,va,field,errors,request)) return StrutsValidator.validateRequired(bean,va,field,errors,request); else return false; } -- In the file validaion-rules.xml I changed the validator required like this: validator name=required classname=MyValidator method=validateRequired ... /validator Now , I can configure in the validator.xml the methods that I want to validate. For example : form name=logonForm fieldproperty=userId depends=required arg0 key=logonForm.email.displayname/ var var-namemethod/var-name var-valueupdate,delete/var-value /var /field /form David, What do you think about this solution ? Thanks, William. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Validator and DispatchAction
I think that if I use DispatchAction with ValidatorActionForm I will have the same problem. How can I validate the form for diferents methods in the same Action ? Am I wrong ? Thanks, William. From: David Winterfeldt [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], Rick Reumann [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Date: Wed, 12 Jun 2002 14:42:51 -0700 (PDT) You would currently have to write your own required validation method and have it check a variable defined by a field to see if it should perform the validation or not. Or define a separate set of validation rules for each action and use ValidatorActionForm (which uses the action path to retrieve the validation rules). David --- Rick Reumann [EMAIL PROTECTED] wrote: On Wednesday, June 12, 2002, 10:14:09 AM, William wrote: WW I have a UserForm, the fields are : userId and userName. WW I have a UserAction that extends DispatchAction. The UserAction have two WW methods (insert and update). For the insert method only the userName is WW required, and for update method the userId and the userName are required. WW How can I can do a dependency validation with the validator.xml ? I'm curious about this as well. There was a post a few days back dealing with the same issue. I think you are able to nest validation rules for a form but I forgot the exact syntax. Maybe someone else could shed some light again on how to do this. -- Rick mailto:[EMAIL PROTECTED] If you go to a party, and you want to be the popular one at the party, do this: Wait until no one is looking, then kick a burning log out of the fireplace onto the carpet. Then jump on top of it with your body and yell, Log o' fire! Log o' fire! I've never done this, but I think it'd work. -Jack Handey -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Validator and DispatchAction
Is it possible ? Use boolean in the depends property ? field property=password depends=method OR required arg0 key=typeForm.password.displayname/ var var-namemethodName/var-name var-valueupdate/var-value /var /field From: William W [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Date: Thu, 13 Jun 2002 14:46:09 + I think that if I use DispatchAction with ValidatorActionForm I will have the same problem. How can I validate the form for diferents methods in the same Action ? Am I wrong ? Thanks, William. From: David Winterfeldt [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], Rick Reumann [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Date: Wed, 12 Jun 2002 14:42:51 -0700 (PDT) You would currently have to write your own required validation method and have it check a variable defined by a field to see if it should perform the validation or not. Or define a separate set of validation rules for each action and use ValidatorActionForm (which uses the action path to retrieve the validation rules). David --- Rick Reumann [EMAIL PROTECTED] wrote: On Wednesday, June 12, 2002, 10:14:09 AM, William wrote: WW I have a UserForm, the fields are : userId and userName. WW I have a UserAction that extends DispatchAction. The UserAction have two WW methods (insert and update). For the insert method only the userName is WW required, and for update method the userId and the userName are required. WW How can I can do a dependency validation with the validator.xml ? I'm curious about this as well. There was a post a few days back dealing with the same issue. I think you are able to nest validation rules for a form but I forgot the exact syntax. Maybe someone else could shed some light again on how to do this. -- Rick mailto:[EMAIL PROTECTED] If you go to a party, and you want to be the popular one at the party, do this: Wait until no one is looking, then kick a burning log out of the fireplace onto the carpet. Then jump on top of it with your body and yell, Log o' fire! Log o' fire! I've never done this, but I think it'd work. -Jack Handey -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Validator and DispatchAction
Good :) I will try !!! Thanks ! WIlliam. From: David Winterfeldt [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Date: Thu, 13 Jun 2002 09:04:56 -0700 (PDT) You can't use booleans in the depends, but there can be dependencies setup between validation routines. You can make a method check pluggable validator and have required and other validator depend on it. Although the default configuration has everything depend on required so if required depends on something else, everything should work fine. Method would be checked first and then if it passes required would be next. validator name=method classname=MyDispatchMethodChecker method=validateDispatchMethod methodParams=java.lang.Object,org.apache.commons.validator.ValidatorAction,org.apache.commons.validator.Field,org.apache.struts.action.ActionErrors,javax.servlet.http.HttpServletRequest msg=errors.method/ validator name=required classname=org.apache.struts.util.StrutsValidator method=validateRequired methodParams=java.lang.Object,org.apache.commons.validator.ValidatorAction,org.apache.commons.validator.Field,org.apache.struts.action.ActionErrors,javax.servlet.http.HttpServletRequest depends=method msg=errors.required/ David --- William W [EMAIL PROTECTED] wrote: Is it possible ? Use boolean in the depends property ? field property=password depends=method OR required arg0 key=typeForm.password.displayname/ var var-namemethodName/var-name var-valueupdate/var-value /var /field From: William W [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Date: Thu, 13 Jun 2002 14:46:09 + I think that if I use DispatchAction with ValidatorActionForm I will have the same problem. How can I validate the form for diferents methods in the same Action ? Am I wrong ? Thanks, William. From: David Winterfeldt [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], Rick Reumann [EMAIL PROTECTED] Subject: Re: Validator and DispatchAction Date: Wed, 12 Jun 2002 14:42:51 -0700 (PDT) You would currently have to write your own required validation method and have it check a variable defined by a field to see if it should perform the validation or not. Or define a separate set of validation rules for each action and use ValidatorActionForm (which uses the action path to retrieve the validation rules). David --- Rick Reumann [EMAIL PROTECTED] wrote: On Wednesday, June 12, 2002, 10:14:09 AM, William wrote: WW I have a UserForm, the fields are : userId and userName. WW I have a UserAction that extends DispatchAction. The UserAction have two WW methods (insert and update). For the insert method only the userName is WW required, and for update method the userId and the userName are required. WW How can I can do a dependency validation with the validator.xml ? I'm curious about this as well. There was a post a few days back dealing with the same issue. I think you are able to nest validation rules for a form but I forgot the exact syntax. Maybe someone else could shed some light again on how to do this. -- Rick mailto:[EMAIL PROTECTED] If you go to a party, and you want to be the popular one at the party, do this: Wait until no one is looking, then kick a burning log out of the fireplace onto the carpet. Then jump on top of it with your body and yell, Log o' fire! Log o' fire! I've never done this, but I think it'd work. -Jack Handey -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail
Validator and DispatchAction
Hi ! I have a UserForm, the fields are : userId and userName. I have a UserAction that extends DispatchAction. The UserAction have two methods (insert and update). For the insert method only the userName is required, and for update method the userId and the userName are required. How can I can do a dependency validation with the validator.xml ? Thanks, William. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DynaValidatorForm and java.lang.NullPointerException
Hi , When I configure my form to be a DynaValidatorForm I have the java.lang.NullPointerException error, but if I use a DynaActionForm, everyting do ok but with no validation. What Am I doing wrong ? Thanks, William. _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DynaValidatorForm and java.lang.NullPointerException
Hi Jason, I think that the problem is before the validation. This is my index.jsp page where we have the java.lang.NullPointerException. %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html:html locale=true head titlebean:message key=index.title//title html:base/ /head body bgcolor=white logic:notPresent name=org.apache.struts.action.MESSAGE scope=application font color=red ERROR: Application resources not loaded -- check servlet container logs for error messages. /font /logic:notPresent h3bean:message key=index.heading//h3 pbean:message key=index.message//p html:form action=logon table tr td bean:message key=logonForm.email.displayname/ /td td html:text property=email size=30 maxlength=60/ /td /tr tr td bean:message key=logonForm.password.displayname/ /td td html:password property=password size=30 maxlength=60/ /td /tr tr td colspan=2 html:submit property=submit bean:message key=button.login/ /html:submit /td /tr /table /html:form /body /html:html From: Rosenblum, Jason [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: DynaValidatorForm and java.lang.NullPointerException Date: Tue, 11 Jun 2002 15:16:46 -0400 make sure that you are using the ActionMapping name to name your forms in your validation.xml instead of using the action form name. ~Jason -Original Message- From: William W [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 3:15 PM To: [EMAIL PROTECTED] Subject: DynaValidatorForm and java.lang.NullPointerException Hi , When I configure my form to be a DynaValidatorForm I have the java.lang.NullPointerException error, but if I use a DynaActionForm, everyting do ok but with no validation. What Am I doing wrong ? Thanks, William. _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DynaValidatorForm and java.lang.NullPointerException
Can you post your struts-config.xml entries? Sure ! My action just have a forward to test. struts-config.xml -- form-beans form-bean name=logonForm type=org.apache.struts.validator.DynaValidatorForm form-property name=email type=java.lang.String/ form-property name=password type=java.lang.String/ /form-bean /form-beans action-mappings actionpath=/logon type=com.myproject.teste.LogonAction name=logonForm scope=request validate=true input=/index.jsp forward name=success path=/sucess.jsp/ /action !-- Example logoff action actionpath=/logoff type=org.apache.struts.example.LogoffAction forward name=success path=/index.jsp/ /action -- /action-mappings - validator.xml - formset form name=logonForm fieldproperty=email depends=required arg0 key=logonForm.firstname.displayname/ /field /form /formset _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DynaValidatorForm and java.lang.NullPointerException
Thanks Raffy !! Everything in Ok now !!! Thanks again !!! From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: DynaValidatorForm and java.lang.NullPointerException Date: Tue, 11 Jun 2002 12:55:01 -0700 try adding the dynamic=true attribute in the form-bean entry as in form-bean name=logonForm type =org.apache.struts.validator.DynaValidatorForm dynamic=true William W [EMAIL PROTECTED] on 06/11/2002 12:47:45 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: RE: DynaValidatorForm and java.lang.NullPointerException Can you post your struts-config.xml entries? Sure ! My action just have a forward to test. struts-config.xml -- form-beans form-bean name=logonForm type =org.apache.struts.validator.DynaValidatorForm form-property name=email type=java.lang.String/ form-property name=password type=java.lang.String/ /form-bean /form-beans action-mappings actionpath=/logon type=com.myproject.teste.LogonAction name=logonForm scope=request validate=true input=/index.jsp forward name=success path=/sucess.jsp/ /action !-- Example logoff action actionpath=/logoff type=org.apache.struts.example.LogoffAction forward name=success path=/index.jsp/ /action -- /action-mappings - validator.xml - formset form name=logonForm fieldproperty=email depends=required arg0 key=logonForm.firstname.displayname/ /field /form /formset _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ** Please Note: The information in this E-mail message, and any files transmitted with it, is confidential and may be legally privileged. It is intended only for the use of the individual(s) named above. If you are the intended recipient, be aware that your use of any confidential or personal information may be restricted by state and federal privacy laws. If you, the reader of this message, are not the intended recipient, you are hereby notified that you should not further disseminate, distribute, or forward this E-mail message. If you have received this E-mail in error, please notify the sender and delete the material from any computer. Thank you. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Validating forms with the validator
Hi All, I'm trying to use the Struts Validator (http://home.earthlink.net/~dwinterfeldt/overview.html), but there are no examples with Struts 1.1 b1. Somebody have some example (.war) ? Thanks ! William. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Validating forms with the validator
Hi ! What Am I doing wrong ? I changed the struts-config to use it with DynaValidatorForm. I had form-bean name=registrationForm type=org.apache.struts.webapp.validator.RegistrationForm/ And now I have form-bean name=registrationForm dynamic=true type=org.apache.struts.validator.DynaValidatorForm form-property name=sFirstName type=java.lang.String/ form-property name=sLastName type=java.lang.String/ form-property name=sAddr type=java.lang.String/ form-property name=cityStateZip type=org.apache.struts.webapp.validator.CityStateZip/ form-property name=sPhone type=java.lang.String/ form-property name=sEmail type=java.lang.String/ /form-bean And I'm having the error javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(Compiled Code) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:795) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Compiled Code) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) Root cause: java.lang.IllegalArgumentException: No bean specified at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Compiled Code) at org.apache.commons.beanutils.BeanUtils.setProperty(Compiled Code) at org.apache.commons.beanutils.BeanUtils.populate(Compiled Code) at org.apache.struts.util.RequestUtils.populate(Compiled Code) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:795) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Compiled Code) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) From: Robert Taylor [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Validating forms with the validator Date: Fri, 7 Jun 2002 13:28:05 -0400 I downloaded and ran the struts-validator.war example that comes with Struts1.1b1. I had two issues: I had to remove the extra password definition in the struts-html.tld and I had to add the jakarta-regexp-1.2.jar to the WEB-INF/lib directory. After that, it worked fine. robert -Original Message- From: William W [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 1:20 PM To: [EMAIL PROTECTED] Subject: Validating forms with the validator Hi All, I'm trying to use the Struts Validator (http://home.earthlink.net/~dwinterfeldt/overview.html), but there are no examples with Struts 1.1 b1. Somebody have some example (.war) ? Thanks ! William. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED
Re.Pool Connection DataBase
Why the creator of the PoolMan is not supporting it anymore ? The best practice should be use BasicDataSource ? Thanks, William. From: Struts Newsgroup (@Basebeans.com) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re.Pool Connection DataBase Date: Thu, 6 Jun 2002 07:25:01 -0700 Subject: Re.Pool Connection DataBase From: Vic C [EMAIL PROTECTED] === Best practice to post messages is to search first. I think very popular is http://sourceforge.net/project/showfiles.php?group_id=4899 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: validation.xml
Thanks !!! ;) From: Adolfo Miguelez [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: validation.xml Date: Wed, 05 Jun 2002 13:46:50 + plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathname value=/WEB-INF/validator-rules.xml/ set-property property=pathname value=/WEB-INF/validation.xml/ /plug-in in struts-config.xml for Struts 1.1b1 From: Radhika Nadkarni [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: validation.xml Date: Wed, 05 Jun 2002 11:12:24 + hi, configure it in web.xml file as init-param param-nameconfig/param-name param-value/WEB-INF/validation.xml/param-value /init-param From: William W [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: validation.xml Date: Tue, 04 Jun 2002 21:14:49 + I'm using Struts 1.1 b1. Where should I configure the validation.xml file ? Thanks, William. _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] HTML HEAD TITLEAdolfo's signature/TITLE /HEAD BODY centerbemAdolfo Rodriguez Miguelez/emb/center /BODY /HTML _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
validation.xml
I'm using Struts 1.1 b1. Where should I configure the validation.xml file ? Thanks, William. _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ApplicationResources.priperties
If put the line message-resources parameter=ApplicationResources null=false/ in my struts-config.xml , WHERE should I put my file ApplicationResources.properties ? WEB-INF/classes ??? I'm using Struts 1.1 b1. Thanks, William. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ApplicationResources.priperties
In 1.0 everything is Ok, but when using 1.1, we have to configure the file struts-config.xml with message-resources and my application can't find my ApplicationResources.properties. We have to put the line message-resources parameter=ApplicationResources null=false/ Thanks, William. From: Sri Sankaran [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: ApplicationResources.priperties Date: Thu, 23 May 2002 14:17:50 -0400 Haven't used Struts 1.1 but in 1.0 resources stated in the config must be in the appropriate location in your classpath. So, in your case WEB-INF/classes is correct. Sri -Original Message- From: William W [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 1:48 PM To: [EMAIL PROTECTED] Subject: ApplicationResources.priperties If put the line message-resources parameter=ApplicationResources null=false/ in my struts-config.xml , WHERE should I put my file ApplicationResources.properties ? WEB-INF/classes ??? I'm using Struts 1.1 b1. Thanks, William. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts plugin for IBM WSED
Is it available for download ?? From: emmanuel.boudrant [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Struts plugin for IBM WSED Date: Wed, 22 May 2002 14:30:17 +0200 (CEST) Hello everybody, IBM is about releasing a Struts plugins for IBM WSED (Eclipse), here a applet demonstration, take a look http://www-3.ibm.com/software/ad/studioedm/demo/WSED_Visual_Builder_demo_4_30_02_viewlet.html good news ! -Emmanuel - Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français ! _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts plugin for IBM WSED
Is it available to buy ? :) From: emmanuel.boudrant [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Struts plugin for IBM WSED Date: Wed, 22 May 2002 15:59:04 +0200 (CEST) The applet ? yes ;) The plugins ? no William W [EMAIL PROTECTED] a écrit : Is it available for download ?? From: emmanuel.boudrant Reply-To: Struts Users Mailing List To: Struts Users Mailing List Subject: Struts plugin for IBM WSED Date: Wed, 22 May 2002 14:30:17 +0200 (CEST) Hello everybody, IBM is about releasing a Struts plugins for IBM WSED (Eclipse), here a applet demonstration, take a look http://www-3.ibm.com/software/ad/studioedm/demo/WSED_Visual_Builder_demo_4_30_02_viewlet.html good news ! -Emmanuel - Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français ! _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: For additional commands, e-mail: - Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français ! _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts 1.1 Beta 1
Hi All, I'm tring to use Struts 1.1 Beta 1. Do you know the new jars that I have to use ? I'm having the erros : LoadOnStartupInterceptor: cannot load servlet name: database - javax.xml.parsers.FactoryConfigurationError: Provider org.apache.crimson.jaxp.SAXParserFactoryImpl not found and Error org.xml.sax.SAXParseException: Element web-app does not allow servlet-mapping here. Thanks, William. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Using Adalon
Hi All, Do you know Synthis Adalon ? Is it good to build Struts code and design ? Thanks, William. _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Forms
Hi All, I have a form named myForm and a action named myAction. myAction has a method perform. When everything is ok when finished, I forward to my page sucess . Now I implemented the method validade in myForm, how (where...) can I configure the forward when the validade return a not empty ActionErrors ? I can do it validating myForm in the perform method ( myAction ), but in this case the perfom method will not be called. And I want make my validation in myForm. :( Thanks , William. _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]