THEMES AND TEMPLATES
Hi is there any theme repository ??? I want to change my theme, like putting the field errors in red, in the right of the component (field) who cause the error... Regards Juan Espinosa -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.26/754 - Release Date: 09/04/2007 22:59 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Common header and footer html
To solve the problem of headers, footer, layouts accross a web site i use sitemesh. I have several layouts, one two and three columns layouts...I applied this layouts to my pages... I think its a good solution to your problem... Here is the url http://www.opensymphony.com/sitemesh/ Regards Juan -Mensaje original- De: meeboo [mailto:[EMAIL PROTECTED] Enviado el: viernes, 30 de marzo de 2007 11:09 Para: user@struts.apache.org Asunto: RE: Common header and footer html Is there a good way of achieving this in Struts 2 without using Tiles? I'm new to Struts and coming from a Tapestry background my first hunch was to create classes for a header and a footer element, but is this even a viable option in an action based framework? If not, what's the best practice when you're faced with implementing such a thing? Cheers Raghupathy, Gurumoorthy wrote: > > http://struts.apache.org/1.x/struts-tiles/ is your answer > > Regards > Guru > > > -Original Message- > From: Ståle Undheim [mailto:[EMAIL PROTECTED] > Sent: 30 March 2007 13:55 > To: user@struts.apache.org > Subject: Common header and footer html > > Currently, all my jsp pages are structured like this: > * identical html header and tag ... > * page specific content > * identical trail of and > > Instead of copying this for every file, I would like to have 1 common > outer wrapper file, that includes a jsp based on the action or > something. > > I have been looking at the tiles plugin, but I couldn't make out > enough from the documentation to see how I could use it. > > My ideal solution would be something like having a layout.jsp that > looks like this: > > > > > <% include jsp based on ActionName or an annotation, or that I can set > with an interceptor of sorts. %> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Common-header-and-footer-html-tf3492025.html#a9753895 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.22/739 - Release Date: 29/03/2007 13:36 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.22/739 - Release Date: 29/03/2007 13:36 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation, ModelDriven and Field Errors
Hi dave here is all the data you ask I have a jsp where i register a customer, diferent kind of customer, personalcustomer, enterprisecustomer depending on the type of customer in the action variable "customer" the file i use to validate.. I have several validation files Personal-validation.xml, Enterprise-validation.xml Any suggestions ?? Regards, juan Fields in jsp --- Action class public class CustomerRegistration extends BaseAction implements ModelDriven { private static final long serialVersionUID = 1L; private static Logger logger = Logger.getLogger(CustomerRegistration.class); Customer customer = null; public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; } --- Validation file one CustomerRegistration-customerRegistration-validation.xml Validation file two Personal-validation.xml -Mensaje original- De: Dave Newton [HYPERLINK mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Enviado el: miércoles, 28 de marzo de 2007 13:00 Para: Struts Users Mailing List Asunto: Re: Validation, ModelDriven and Field Errors --- Juan Espinosa <[EMAIL PROTECTED]> wrote: > Then i change the action to an action that implements ModelDriven, > when i do this changes the errors next to the controls doesnt appear > any more. I > must add in the jsp page the tag to > get the errros. > > Anyone knows why the errors doesnt appear ?? How are you naming your form fields, both on the JSP and in the validation? Are you still using the modelClass.fieldName or just fieldName, and are they the same in both the JSP form fields and validation file? d. Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. HYPERLINK http://farechase.yahoo.com/promo-generic-14795097 http://farechase.yahoo.com/promo-generic-14795097 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.20/736 - Release Date: 27/03/2007 16:38 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.20/736 - Release Date: 27/03/2007 16:38 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.20/736 - Release Date: 27/03/2007 16:38 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.20/737 - Release Date: 28/03/2007 16:23
RE: Validation, ModelDriven and Field Errors
Hi dave here is all the data you ask I have a jsp where i register a customer, diferent kind of customer, personalcustomer, enterprisecustomer depending on the type of customer in the action variable "customer" the file i use to validate.. I have several validation files Personal-validation.xml, Enterprise-validation.xml Any suggestions ?? Regards, juan Fields in jsp --- Action class public class CustomerRegistration extends BaseAction implements ModelDriven { private static final long serialVersionUID = 1L; private static Logger logger = Logger.getLogger(CustomerRegistration.class); Customer customer = null; public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; } --- Validation file one CustomerRegistration-customerRegistration-validation.xml Validation file two Personal-validation.xml -Mensaje original- De: Dave Newton [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 28 de marzo de 2007 13:00 Para: Struts Users Mailing List Asunto: Re: Validation, ModelDriven and Field Errors --- Juan Espinosa <[EMAIL PROTECTED]> wrote: > Then i change the action to an action that implements ModelDriven, > when i do this changes the errors next to the controls doesnt appear > any more. I > must add in the jsp page the tag to > get the errros. > > Anyone knows why the errors doesnt appear ?? How are you naming your form fields, both on the JSP and in the validation? Are you still using the modelClass.fieldName or just fieldName, and are they the same in both the JSP form fields and validation file? d. Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.20/736 - Release Date: 27/03/2007 16:38 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.20/736 - Release Date: 27/03/2007 16:38 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validation, ModelDriven and Field Errors
Hi to all i have some problems with messages of validation When i started to use validation i have an action with some filelds getting validated (with an xml file, same name of the action). With this approach when an error ocurred the error apears next to the controls that generated that error. Then i change the action to an action that implements ModelDriven, when i do this changes the errors next to the controls doesnt appear any more. I must add in the jsp page the tag to get the errros. Anyone knows why the errors doesnt appear ?? Regards Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.20/736 - Release Date: 27/03/2007 16:38
Validation, ModelDriven and Field Errors
Hi to all i have some problems with messages of validation When i started to use validation i have an action with some filelds getting validated (with an xml file, same name of the action). With this approach when an error ocurred the error apears next to the controls that generated that error. Then i change the action to an action that implements ModelDriven, when i do this changes the errors next to the controls doesnt appear any more. I must add in the jsp page the tag to get the errros. Anyone knows why the errors doesnt appear ?? Regards Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 22/03/2007 7:44
I18n
> Hi im having problems with localization of a jsp page, i call the jsp > directly, not throw an action. > > Im using this tag the localize a text name="%{getText('customer.security.login.title')}" /> > > Any suggestions ??? What im doing wrong ??? > > Regards, > > > Juan > > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.7/713 - Release Date: 07/03/2007 9:24
I18n
Hi im having problems with localization of a jsp page, i call the jsp directly, not throw an action. Im using this tag the localize a text Any suggestions ??? What im doing wrong ??? Regards, Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.7/713 - Release Date: 07/03/2007 9:24
RE: Problem undeploying struts application
I do the changes but still the struts2core jar is locked... I change the jar commons-digester, i put the 1.8 version i also put a file named context.xml with the properties: Any other sugestion to avoid this situation Juan -Mensaje original- De: Niall Pemberton [mailto:[EMAIL PROTECTED] Enviado el: viernes, 23 de febrero de 2007 11:28 Para: Struts Users Mailing List Asunto: Re: Problem undeploying struts application Its a possible cause is the best I can say. Try replacing the Commons Digester jar with the 1.8 version. Can't remember if that is enough to fix that bug, or if it needs associated changes in Struts/Tiles/Validator/Chain - I'll look into it when I get time. Niall On 2/23/07, Juan Espinosa <[EMAIL PROTECTED]> wrote: > I read the bug but i didnt understand very well I must to replace > commons-digester for a new one ?? Is commondigester causing the > problem ?? > > Juan > > -Mensaje original- > De: Niall Pemberton [mailto:[EMAIL PROTECTED] > Enviado el: viernes, 23 de febrero de 2007 11:00 > Para: Struts Users Mailing List > Asunto: Re: Problem undeploying struts application > > On 2/23/07, Juan Espinosa <[EMAIL PROTECTED]> wrote: > > Hi to all… > > > > Im having problems with the undeploy of an struts application im > > using tomcat 5.5.4, when i undeploy the application some jars get > > locked and i cant delete it…. > > > > I search in web and i found the context properties > > antiResourceLocking and antiJarLocking but it seems that they dont work. > > Is it related to this: > > https://issues.apache.org/jira/browse/DIGESTER-29 > > Niall > > > Any idea of a solutions > > > > Regards > > Juan Espinosa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: 23/02/2007 4:39 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: 23/02/2007 4:39 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem undeploying struts application
I read the bug but i didnt understand very well I must to replace commons-digester for a new one ?? Is commondigester causing the problem ?? Juan -Mensaje original- De: Niall Pemberton [mailto:[EMAIL PROTECTED] Enviado el: viernes, 23 de febrero de 2007 11:00 Para: Struts Users Mailing List Asunto: Re: Problem undeploying struts application On 2/23/07, Juan Espinosa <[EMAIL PROTECTED]> wrote: > Hi to all… > > Im having problems with the undeploy of an struts application im using > tomcat 5.5.4, when i undeploy the application some jars get locked and > i cant delete it…. > > I search in web and i found the context properties antiResourceLocking > and antiJarLocking but it seems that they dont work. Is it related to this: https://issues.apache.org/jira/browse/DIGESTER-29 Niall > Any idea of a solutions > > Regards > Juan Espinosa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: 23/02/2007 4:39 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: 23/02/2007 4:39 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem undeploying struts application
Hi to all… Im having problems with the undeploy of an struts application im using tomcat 5.5.4, when i undeploy the application some jars get locked and i cant delete it…. I search in web and i found the context properties antiResourceLocking and antiJarLocking but it seems that they dont work. Any idea of a solutions Regards Juan Espinosa -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: 23/02/2007 4:39
Tomcat locks jars after undeploying web application
Hi to all im having problems with tomcat and windows. The struts2-core jar get locked when i do an undeploy of my web application. I found that in tomcat you can put a property to avoid lock of jars…also i found a lot of posts that say that this property is not working… Anyone has "fight" with issue ??? Any advice is welcome…. I copy this from tomcat web site want to redeploy web applications, how do I prevent resources from getting locked? Most locking issues will occur with JARs from /WEB-INF/lib, and are useally caused by access through URLs. Tomcat has mechanisms to allow avoiding locking. In Tomcat 5.0, a mechanism exists to prevent locking when accessing resources using the getResource method of the URL classloader (many applications, such as Xerces, do not set the use of caching to false before opening the URL connection, causing locking). If such a call occurs, resources inside the JARs will be extracted to the work directory of the web application. In Tomcat 5.5, this mechanism is disabled by default (as it has a non negligible influence on startup times, and is often useless), and can be enabled using the antiJARLocking attribute of the Context element. There is another lock prevention mechanism in Tomcat 5.5 (antiResourceLocking attribute), which will cause the web application files to be copied to the temp folder and run from this location. This has a larger impact on web application startup times, but obviously prevents locking on all resources of the web application. This also allows more flexible management operations as none of the web application resources will be locked, even while the web application is running (as a special note, when making changes JSPs without reloading the application, the changes has to be duplicated to the path where the web application resources have been copied in the temp folder). -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 20/02/2007 13:44
RE: I18N Problems
In the jsp im localizing using this... I think you are right "getText" depends on ActionSupport but im not pass throw an acttion.how could i do to get i18n work properly when i call a jsp throw an struts action that has no Action class itself Regards, juan -Mensaje original- De: news [mailto:[EMAIL PROTECTED] En nombre de Laurie Harper Enviado el: viernes, 16 de febrero de 2007 2:14 Para: user@struts.apache.org Asunto: Re: I18N Problems Juan Espinosa wrote: > Hi to all, i need some help with a intenationalization. I have a file > named package.properties in the folder where i have located the actions. > The localization is not working in actionerrors, i have the following > code in the action: > > addActionError("myapplication.registration.error.userNameNotFound") Assuming you're extending ActionSupport: addActionError(getText("myapplication.registration.error.userNameNotFound")) ; addActionError takes the litteral error text, so you need to do the resource bundle lookup explicitly. > I dont know why this code is not working, i have an entry > "myapplication.registration.error.userNameNotFound" in > package.properties but this thing doesnt work > > Another thing that does not work is this > > i have this action to call a jsp (i dont want to call it directly) > > > /private/customer/security/login.jsp > > > in this case the localization also does not work, alsto i tried to put > the I18N interceptor but no way > > but if i call the jsp throw a real action the localization works... > >class="uy.com.MyActionClass"> > /private/customer/security/login.jsp > I don't know how you're trying to localize that JSP, but my guess would be that you're depending on action functionality which, if you don't specify an action, wont be there. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.39/687 - Release Date: 14/02/2007 16:17 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.0/689 - Release Date: 15/02/2007 17:40 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Spanish characters
Dou you mean that i must put in every jsp page something like this <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> Juan -Mensaje original- De: Christopher Schultz [mailto:[EMAIL PROTECTED] Enviado el: jueves, 15 de febrero de 2007 11:09 Para: Struts Users Mailing List Asunto: Re: Spanish characters -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Juan and Zheng, Shuai Zheng wrote: > Add the following line into your web.xml It's only appropriate to use the CharacterEncodingFilter to force your requests to be UTF-8 if all your pages are being /served/ in UTF-8. Since you want to deal with "special" characters, you should set everything to UTF-8. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF1Glo9CaO5/Lv0PARAorUAKCAL0/IGrLHb6RtCTGx6CAvrlpJBgCgr6nS rIFEqFCSlJW2sz7XzYJORr0= =vk4l -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.39/687 - Release Date: 14/02/2007 16:17 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.39/687 - Release Date: 14/02/2007 16:17 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Spanish characters
Hi, im having problems in my web application displaying spanish characters Anyone knows what i have to configure to work this properly For example if i put in a inputbox a Ñ character and submit that, then when the action returns to the "input" it show strange characters like ??? Or !!! in the input box... Thanks Juan Espinosa -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.39/687 - Release Date: 14/02/2007 16:17 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I18N
Maybe i must put a speciall tag in the jsp to load the file (package.properties) in the context, to get the I18N work. -Mensaje original- De: Juan Espinosa [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 14 de febrero de 2007 10:56 Para: 'Struts Users Mailing List' Asunto: RE: I18N The package names are uy com nilo customer (here is the package.properties) registration (here are the actions) But when i call the jsp i dont use an action, there is no action in the mapping /private/customer/security/login.jsp I think behind the scenes if the mapping doesnt have an action struts uses an action to do The forward, i use this because i dont want to call directly the jsp I found the example in the struts2 wiki -Mensaje original- De: Dave Newton [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 14 de febrero de 2007 9:49 Para: Struts Users Mailing List Asunto: Re: I18N --- Juan Espinosa <[EMAIL PROTECTED]> wrote: > I have a file named package.properties in the folder > where i have located the actions. > The localization is not working when i call a jsp like this > > > > /private/customer/security/login.jsp > > So... - You say you have a package.properties in the package of your actions. - What Action (and, nomre importantly, what package is it in) when you configure an action as you have above? That's one way to start thinking about the problem, anyway. d. Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 12/02/2007 13:23 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 12/02/2007 13:23 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 12/02/2007 13:23 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 12/02/2007 13:23 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I18N
The package names are uy com nilo customer (here is the package.properties) registration (here are the actions) But when i call the jsp i dont use an action, there is no action in the mapping /private/customer/security/login.jsp I think behind the scenes if the mapping doesnt have an action struts uses an action to do The forward, i use this because i dont want to call directly the jsp I found the example in the struts2 wiki -Mensaje original- De: Dave Newton [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 14 de febrero de 2007 9:49 Para: Struts Users Mailing List Asunto: Re: I18N --- Juan Espinosa <[EMAIL PROTECTED]> wrote: > I have a file named package.properties in the folder > where i have located the actions. > The localization is not working when i call a jsp like this > > > > /private/customer/security/login.jsp > > So... - You say you have a package.properties in the package of your actions. - What Action (and, nomre importantly, what package is it in) when you configure an action as you have above? That's one way to start thinking about the problem, anyway. d. Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 12/02/2007 13:23 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 12/02/2007 13:23 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I18N
Hi to all, i need some help with a intenationalization. I have a file named package.properties in the folder where i have located the actions. The localization is not working when i call a jsp like this i have this action to call a jsp (i dont want to call it directly) /private/customer/security/login.jsp in this case the localization does not work, alsto i tried to put the I18N interceptor but no way but if i call the jsp throw a real action the localization works... /private/customer/security/login.jsp Any help will be appreciated. Thanks -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 12/02/2007 13:23
I18N Problems
Hi to all, i need some help with a intenationalization. I have a file named package.properties in the folder where i have located the actions. The localization is not working in actionerrors, i have the following code in the action: addActionError("myapplication.registration.error.userNameNotFound") I dont know why this code is not working, i have an entry "myapplication.registration.error.userNameNotFound" in package.properties but this thing doesnt work Another thing that does not work is this i have this action to call a jsp (i dont want to call it directly) /private/customer/security/login.jsp in this case the localization also does not work, alsto i tried to put the I18N interceptor but no way but if i call the jsp throw a real action the localization works... /private/customer/security/login.jsp Any help will be appreciated. Thanks -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 12/02/2007 13:23
I18N Problems
Hi to all, i need some help with a intenationalization. I have a file named package.properties in the folder where i have located the actions. The localization is not working in actionerrors, i have the following code in the action: addActionError("myapplication.registration.error.userNameNotFound") I dont know why this code is not working, i have an entry "myapplication.registration.error.userNameNotFound" in package.properties but this thing doesnt work Another thing that does not work is this i have this action to call a jsp (i dont want to call it directly) /private/customer/security/login.jsp in this case the localization also does not work, alsto i tried to put the I18N interceptor but no way but if i call the jsp throw a real action the localization works... /private/customer/security/login.jsp Any help will be appreciated. Thanks -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 12/02/2007 13:23
I18N Problems
> Hi to all, i need some help with a intenationalization. I have a file > named package.properties in the folder where i have located the actions. > The localization is not working in actionerrors, i have the following code > in the action: > > addActionError("myapplication.registration.error.userNameNotFound") > > I dont know why this code is not working, i have an entry > "myapplication.registration.error.userNameNotFound" in package.properties > but this thing doesnt work > > Another thing that does not work is this > > i have this action to call a jsp (i dont want to call it directly) > > > /private/customer/security/login.jsp > > > in this case the localization also does not work, alsto i tried to put the > I18N interceptor > but no way > > but if i call the jsp throw a real action the localization works... > >class="uy.com.MyActionClass"> > /private/customer/security/login.jsp > > > Any help will be appreciated. > > Thanks > > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 12/02/2007 13:23
RE: Action without interceptors
1) Because the url has a parameter called validationCode and i dont have a property in my class with that name. 2) Because i want interceptors run when "I WANT" not when struts want... May be i must write an interceptor that do nothing and put that interceptor in the action -Mensaje original- De: Dave Newton [mailto:[EMAIL PROTECTED] Enviado el: martes, 09 de enero de 2007 13:45 Para: Struts Users Mailing List Asunto: RE: Action without interceptors From: Juan Espinosa [mailto:[EMAIL PROTECTED] > The seconda action is an action that validate a code passed > http://www.mysite.com/test2?validationCode=3 > I need no intercepto neither parameters interceptor nor model driven > interceptor... Just because you don't *need* one doesn't mean it matters if they're there. Why do you explicitly *not* want the interceptors? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 08/01/2007 16:12 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 08/01/2007 16:12 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action without interceptors
If i dont put an interceptor struts uses the basic satack of interceptors... I need a way to do that, i want to call an action an avoid the execution of interceptor The action has two methods method1 and method2 index otherIndex The seconda action is an action that validate a code passed http://www.mysite.com/test2?validationCode=3 I need no intercepto neither parameters interceptor nor model driven interceptor... Please guysss i needd helpp!!! Regards Juan -Mensaje original- De: walidito [mailto:[EMAIL PROTECTED] Enviado el: martes, 09 de enero de 2007 13:30 Para: user@struts.apache.org Asunto: Re: Action without interceptors why don't you simply DONT put an interceptor in your action mapping ? for example : index Good luck Juan Espinosa wrote: > >> Hi to all i need help >> i want to have an action without interceptors. I want to configure it >> in my action mapping, something like this. >> >> >> >> index >> >> Also i want to know if ther is a standard way to have something like >> a daemon in a web application. I have a class called MailStore >> responsible of sending mails. I want to convert the class to a daemon >> who take cares of the mail. >> I was thinking in a solution using a Runnable who is alwasy running >> looking for mail to send. And taking care of failures… if a task fail >> try it latter…. >> Regards, >> >> Juan Espinosa >> >> > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: > 08/01/2007 > 16:12 > > > -- View this message in context: http://www.nabble.com/Action-without-interceptors-tf2945480.html#a8241203 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 08/01/2007 16:12 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 08/01/2007 16:12 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Action without interceptors
> Hi to all i need help > i want to have an action without interceptors. I want to configure it in > my action mapping, something like this. > > > > index > > Also i want to know if ther is a standard way to have something like a > daemon in a web application. I have a class called MailStore responsible > of sending mails. I want to convert the class to a daemon who take cares > of the mail. > I was thinking in a solution using a Runnable who is alwasy running > looking for mail to send. And taking care of failures… if a task fail try > it latter…. > Regards, > > Juan Espinosa > > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 08/01/2007 16:12
Action without interceptors
> Hi to all i need help > i want to have an action without interceptors. I want to configure it in > my action mapping, something like this. > > > > index > > Also i want to know if ther is a standard way to have something like a > daemon in a web application. I have a class called MailStore responsible > of sending mails. I want to convert the class to a daemon who take cares > of the mail. > I was thinking in a solution using a Runnable who is alwasy running > looking for mail to send. And taking care of failures… if a task fail try > it latter…. > Regards, > > Juan Espinosa > > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/619 - Release Date: 07/01/2007 18:29
RE: OFF RECORD
Please tell me more about this taglib (mailer) -Mensaje original- De: Hassan Schroeder [mailto:[EMAIL PROTECTED] Enviado el: jueves, 21 de diciembre de 2006 12:55 Para: Struts Users Mailing List Asunto: Re: OFF RECORD On 12/21/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > Hi to all, i have a question off recordbut is related to web > 1) Compiling a jsp file > 3) Executing this jsp file (the servlet generated) > 4) Get the html ths jsp generates > > I want to do this programatically I want to use the jsps as > templates for newsletters Uhhh -- why not just wrap the JSP output with the mailer taglib, and it's all done, including delivery, in one step -- that's what I do for one of my clients... :-) FWIW! -- Hassan Schroeder [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.26/594 - Release Date: 20/12/2006 15:54 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.26/594 - Release Date: 20/12/2006 15:54 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OFF RECORD
Yes i see jasper...i could compile a jsp...but i cant execute it and get the resultant html -Mensaje original- De: Wesley Wannemacher [mailto:[EMAIL PROTECTED] Enviado el: jueves, 21 de diciembre de 2006 12:14 Para: Struts Users Mailing List Asunto: RE: OFF RECORD Have you looked at Tomcat's Jasper compiler? http://www.docjar.com/docs/api/org/apache/jasper/compiler/Compiler.html I would assume that with the jars in place and some coding to setup the context, it could be pretty easy to do as you wish. -Wes > -Original Message- > From: Juan Espinosa [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 21, 2006 10:22 AM > To: 'Struts Users Mailing List' > Subject: OFF RECORD > > Hi to all, i have a question off recordbut is related to web > > Anyone has documentation or examples of how > > 1) Compiling a jsp file > 3) Executing this jsp file (the servlet generated) > 4) Get the html ths jsp generates > > I want to do this programatically I want to use the jsps as > templates for newsletters > > Thanks > > Juan Espinosa > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.15.26/594 - Release > Date: 20/12/2006 > 15:54 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.26/594 - Release Date: 20/12/2006 15:54 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.26/594 - Release Date: 20/12/2006 15:54 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OFF RECORD
Yes i see velocity, but i want to do with jsp, i dont want to add another "technology" to my site and my head... Thanks wendy -Mensaje original- De: Wendy Smoak [mailto:[EMAIL PROTECTED] Enviado el: jueves, 21 de diciembre de 2006 11:27 Para: Struts Users Mailing List Asunto: Re: OFF RECORD On 12/21/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > Hi to all, i have a question off recordbut is related to web > > Anyone has documentation or examples of how > > 1) Compiling a jsp file > 3) Executing this jsp file (the servlet generated) > 4) Get the html ths jsp generates > > I want to do this programatically I want to use the jsps as > templates for newsletters This sounds like a job for Velocity templates. http://jakarta.apache.org/velocity/ -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.26/594 - Release Date: 20/12/2006 15:54 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.26/594 - Release Date: 20/12/2006 15:54 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OFF RECORD
Hi to all, i have a question off recordbut is related to web Anyone has documentation or examples of how 1) Compiling a jsp file 3) Executing this jsp file (the servlet generated) 4) Get the html ths jsp generates I want to do this programatically I want to use the jsps as templates for newsletters Thanks Juan Espinosa -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.26/594 - Release Date: 20/12/2006 15:54 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts 2 populating on actions
Hi to all, im still still still having problems with population of collections in actionsnow im making test with conversion examples in showcase application The examples is like this... An action that have a list inside (a list of Person objects (no using generics)), also have a conversion property file.. public class PersonAction extends ActionSupport { private List persons; public List getPersons() { return persons; } public void setPersons(List persons) { this.persons = persons; } public String input() throws Exception { return SUCCESS; } public String submit() throws Exception { return SUCCESS; } } Conversion property file Element_persons=org.apache.struts2.showcase.conversion.Person But mi situation is a little diferent... i Have a Customer object that inside has list of person objects i tried with a conversion property file like this Element_customer.persons=org.apache.struts2.showcase.conversion.Person but it doesnt work, please i nddd help i cant continue with this isssuu HELP !!! Regards, Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.16/582 - Release Date: 11/12/2006 04:32 p.m.
RE: STRUTS 2 . Populating values in Action
Hi me again, im still having problems with population of values in collections (in struts2) > > class MyAction implements ModelDriven{ > > > > Customer customer = null > > > > public Object getModel(){ > > return new Customer(); > > } > > > > } > > > > And a form with some text boxes > > > > > > > > > name="users(0).password"/> > > > > The problem that im having is that i want to populate a user in the > > collection of users (of the customer), like the framework populates the value string i > > want also populate in the collection a object of type User with the > > values userName and password in it Anyone is using object with collections in the actions ??? -Mensaje original- De: Juan Espinosa [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 06 de Diciembre de 2006 11:25 a.m. Para: 'Struts Users Mailing List' Asunto: RE: STRUTS 2 . Populating values in Action Ok andrew i will search in that forum...Thanks for your help... Juan -Mensaje original- De: Andrew Stepanenko [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 06 de Diciembre de 2006 10:13 a.m. Para: Struts Users Mailing List Asunto: Re: STRUTS 2 . Populating values in Action Hello, there is also a lot of posts on Type Conversion subject in the WebWork forum: http://forums.opensymphony.com/forum.jspa?forumID=1 AFAIK, type conversion belongs to XWork which WebWork and Struts2 use, so you may find the answer in WW forum too. Regards, Andrew On 12/6/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > Yes i see this but its hard to understandmaybe if you know > something that i can read... > > Hel!!! > > > -Mensaje original- > De: Andrew Stepanenko [mailto:[EMAIL PROTECTED] > Enviado el: Miércoles, 06 de Diciembre de 2006 09:38 a.m. > Para: Struts Users Mailing List > Asunto: Re: STRUTS 2 . Populating values in Action > > Hello, > > have you looked at Type Conversion mechanism: > http://cwiki.apache.org/WW/type-conversion.html ? > > Regards, > Andrew Stepanenko, > http://unf.tane.edu.ua > > On 12/6/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > > Hi to all, i have a cuestion about populatin values in an action. I > > have an action that implements the interface ModelDriven. The object > > CUSTOMER has some string properties and a collection of users > > > > class MyAction implements ModelDriven{ > > > > Customer customer = null > > > > public Object getModel(){ > > return new Customer(); > > } > > > > } > > > > And a form with some text boxes > > > > > > > > > name="users(0).password"/> > > > > The problem that im having is that i want to populate a user in the > > collection of users, like the framework populates the value string i > > want also populate in the collection a object of type User with the > > values userName and password in it > > > > Anyone knows how to populate this kinds of values. > > > > Regards, > > > > Juan > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: > > 05/12/2006 > > 04:07 p.m. > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: > 05/12/2006 > 04:07 p.m. > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: > 05/12/2006 > 04:07 p.m. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.15/579 - Release Date: 07/12/2006 01:31 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: STRUTS 2 . Populating values in Action
Following Andrew advices i search in the forums, i find some posibble solutions 1)having a properties file, who specified how the objects are created ActionName-conversion.properties 2) if you are using java 5, using generics, if this is the case the jar xwork-tiger.jar must be addedd Thanks to all for helping me -Mensaje original- De: Wesslan [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 06 de Diciembre de 2006 10:22 a.m. Para: 'Struts Users Mailing List' Asunto: RE: STRUTS 2 . Populating values in Action "Webwork in action" have a 20-page chapter on Type conversion. -Original Message- From: Andrew Stepanenko [mailto:[EMAIL PROTECTED] Sent: den 6 december 2006 14:13 To: Struts Users Mailing List Subject: Re: STRUTS 2 . Populating values in Action Hello, there is also a lot of posts on Type Conversion subject in the WebWork forum: http://forums.opensymphony.com/forum.jspa?forumID=1 AFAIK, type conversion belongs to XWork which WebWork and Struts2 use, so you may find the answer in WW forum too. Regards, Andrew On 12/6/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > Yes i see this but its hard to understandmaybe if you know > something that i can read... > > Hel!!! > > > -Mensaje original- > De: Andrew Stepanenko [mailto:[EMAIL PROTECTED] > Enviado el: Miércoles, 06 de Diciembre de 2006 09:38 a.m. > Para: Struts Users Mailing List > Asunto: Re: STRUTS 2 . Populating values in Action > > Hello, > > have you looked at Type Conversion mechanism: > http://cwiki.apache.org/WW/type-conversion.html ? > > Regards, > Andrew Stepanenko, > http://unf.tane.edu.ua > > On 12/6/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > > Hi to all, i have a cuestion about populatin values in an action. I > > have an action that implements the interface ModelDriven. The object > > CUSTOMER has some string properties and a collection of users > > > > class MyAction implements ModelDriven{ > > > > Customer customer = null > > > > public Object getModel(){ > > return new Customer(); > > } > > > > } > > > > And a form with some text boxes > > > > > > > > > name="users(0).password"/> > > > > The problem that im having is that i want to populate a user in the > > collection of users, like the framework populates the value string i > > want also populate in the collection a object of type User with the > > values userName and password in it > > > > Anyone knows how to populate this kinds of values. > > > > Regards, > > > > Juan > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: > > 05/12/2006 > > 04:07 p.m. > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: > 05/12/2006 > 04:07 p.m. > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: > 05/12/2006 > 04:07 p.m. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: STRUTS 2 . Populating values in Action
Ok andrew i will search in that forum...Thanks for your help... Juan -Mensaje original- De: Andrew Stepanenko [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 06 de Diciembre de 2006 10:13 a.m. Para: Struts Users Mailing List Asunto: Re: STRUTS 2 . Populating values in Action Hello, there is also a lot of posts on Type Conversion subject in the WebWork forum: http://forums.opensymphony.com/forum.jspa?forumID=1 AFAIK, type conversion belongs to XWork which WebWork and Struts2 use, so you may find the answer in WW forum too. Regards, Andrew On 12/6/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > Yes i see this but its hard to understandmaybe if you know > something that i can read... > > Hel!!! > > > -Mensaje original- > De: Andrew Stepanenko [mailto:[EMAIL PROTECTED] > Enviado el: Miércoles, 06 de Diciembre de 2006 09:38 a.m. > Para: Struts Users Mailing List > Asunto: Re: STRUTS 2 . Populating values in Action > > Hello, > > have you looked at Type Conversion mechanism: > http://cwiki.apache.org/WW/type-conversion.html ? > > Regards, > Andrew Stepanenko, > http://unf.tane.edu.ua > > On 12/6/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > > Hi to all, i have a cuestion about populatin values in an action. I > > have an action that implements the interface ModelDriven. The object > > CUSTOMER has some string properties and a collection of users > > > > class MyAction implements ModelDriven{ > > > > Customer customer = null > > > > public Object getModel(){ > > return new Customer(); > > } > > > > } > > > > And a form with some text boxes > > > > > > > > > name="users(0).password"/> > > > > The problem that im having is that i want to populate a user in the > > collection of users, like the framework populates the value string i > > want also populate in the collection a object of type User with the > > values userName and password in it > > > > Anyone knows how to populate this kinds of values. > > > > Regards, > > > > Juan > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: > > 05/12/2006 > > 04:07 p.m. > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: > 05/12/2006 > 04:07 p.m. > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: > 05/12/2006 > 04:07 p.m. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: STRUTS 2 . Populating values in Action
Yes i see this but its hard to understandmaybe if you know something that i can read... Hel!!! -Mensaje original- De: Andrew Stepanenko [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 06 de Diciembre de 2006 09:38 a.m. Para: Struts Users Mailing List Asunto: Re: STRUTS 2 . Populating values in Action Hello, have you looked at Type Conversion mechanism: http://cwiki.apache.org/WW/type-conversion.html ? Regards, Andrew Stepanenko, http://unf.tane.edu.ua On 12/6/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > Hi to all, i have a cuestion about populatin values in an action. I > have an action that implements the interface ModelDriven. The object > CUSTOMER has some string properties and a collection of users > > class MyAction implements ModelDriven{ > > Customer customer = null > > public Object getModel(){ > return new Customer(); > } > > } > > And a form with some text boxes > > > > > > > The problem that im having is that i want to populate a user in the > collection of users, like the framework populates the value string i > want also populate in the collection a object of type User with the > values userName and password in it > > Anyone knows how to populate this kinds of values. > > Regards, > > Juan > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: > 05/12/2006 > 04:07 p.m. > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
STRUTS 2 . Populating values in Action
Hi to all, i have a cuestion about populatin values in an action. I have an action that implements the interface ModelDriven. The object CUSTOMER has some string properties and a collection of users class MyAction implements ModelDriven{ Customer customer = null public Object getModel(){ return new Customer(); } } And a form with some text boxes The problem that im having is that i want to populate a user in the collection of users, like the framework populates the value string i want also populate in the collection a object of type User with the values userName and password in it Anyone knows how to populate this kinds of values. Regards, Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m.
RV: validation
Hi i have a question about validators (struts2), i was using fileld validator, and when i have an error (filling some filed) the error appears on top of the input box, now i change to visitor validator and the erros all appear in the top of the page. Anyone knows why is happening this, only changing the type of validator changes the rendering of the erros ??? Thanks to all Regards, Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.430 / Virus Database: 268.15.7/569 - Release Date: 05/12/2006 03:00 a.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
validation
Hi i have a question about validators (struts2), i was using fileld validator, and when i have an error (filling some filed) the error appears on top of the input box, now i change to visitor validator and the erros all appear in the top of the page. Anyone knows why is happening this, only changing the type of validator changes the rendering of the erros ??? Thanks to all Regards, Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.430 / Virus Database: 268.15.7/569 - Release Date: 05/12/2006 03:00 a.m.
CRUD
Hi to all im making an application in struts2 where you can create diferrent types of customer I have two action the first one where you select the customer type you want to create, when you select the customer type i redirect to the correct view, to create the customer (i store in a session variable the type of customer that will be created) Also i have the action to create the customer, this action implement driven model, in the method get model i see the variable in the session and depending on that i create the correct object (for example enterprisecustomer) and render the correct view. Then the user fill de form press submit and back to the action depending in the customer type being registered i create the correct factory to register that customer.. All that is working ok but i cant get the validation working because every customer has its validation logic, i want to know if there is a way to validate this object programaticaly-..i dont want to create an action for every diferent customer i must to create... Anyone has suggestion ??? Maybe somebody has experience or has build a framework to create "entities" in my case customer. Regards, Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.430 / Virus Database: 268.15.3/561 - Release Date: 01/12/2006 06:36 a.m.
RE: VALIDATION
I want to use the validation framework, but i cant it get work well Now i have the actions to register a user, i want that before registering get validated...but i cant... -Mensaje original- De: Dave Newton [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 30 de Noviembre de 2006 11:49 a.m. Para: Struts Users Mailing List Asunto: RE: VALIDATION From: Juan Espinosa [mailto:[EMAIL PROTECTED] > Im using struts2, doing in this way works in struts2 In struts2 i have > the object mapping and form?? Struts2 is rather different, but you can still do your validation in your actions if you really want to (or do additional business-logic oriented validation). Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: VALIDATION
In struts 2 if i have validation enabled an i call an action Customer!registerCustomer.action, te validation get executed, and if its fails what results uses, and if the validation passwhat it does...execute the action called maybe... -Mensaje original- De: Ed Griebel [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 30 de Noviembre de 2006 11:10 a.m. Para: Struts Users Mailing List Asunto: Re: VALIDATION Sorry, I assumed you were using S1, I don't know how for s2. On 11/30/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > Im using struts2, doing in this way works in struts2 In struts2 i have > the object mapping and form?? > > -Mensaje original- > De: Ed Griebel [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 30 de > Noviembre de 2006 10:51 a.m. > Para: Struts Users Mailing List > Asunto: Re: VALIDATION > > The easiest way to do this is to turn off automatic validation in your > struts-config.xml and manually call validation in your desired methods. > Something like: > > ActionMessages errors = form.validate(mapping, request); if ( errors > != null && errors.size() > 0 ) { >LOG.warn("Errors detected!!"); >return mapping.getInputForward(); > } > > HTH, > -ed > > On 11/30/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > > hi to all, im having some problems with validation i have an action > > named RegisterCustomer with three methods and an object > > > > RegisterCustomer implements ModelDriven > > Customer customer = null; > > > > getModel > > showCustomerRegistrationView > > registerCustomer > > > > > > I want to know if could use validation in this way, telling > > validation to be used only in the medthod registercustomer and the > > results for this method > > > > validationOk - result registrationView validationFail - result > > registrationEnd > > > > I dont want to use the methods input and success, also in this > > action im using the interceptor Modeldriven the get the customer The > > customer is created upon a session parameter, if parameter is > > personal i create a Personal customer, if the parameter is > > enterprise i create a EnterpriseCustomer, both extends Customer class. > > > > This parameter class is loaded by another action SelectCustomer, > > that based in a pair of radio buttons load the parameter in the session. > > > > I had all working but i cant do the validation work > > > > Please help me ! > > > > Regards > > Juan > > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: VALIDATION
I want to know if could use validation in this way, telling validation to be used only in the medthod registercustomer and the results for this method validationOk - result registrationView validationFail - result registrationEnd I dont want to use the methods input and success, also in this action im using the interceptor Modeldriven the get the customer The customer is created upon a session parameter, if parameter is personal i create a Personal customer, if the parameter is enterprise i create a EnterpriseCustomer, both extends Customer class. This parameter class is loaded by another action SelectCustomer, that based in a pair of radio buttons load the parameter in the session. I had all working but i cant do the validation work Please help me ! Regards Juan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: VALIDATION
Im using struts2, doing in this way works in struts2 In struts2 i have the object mapping and form?? -Mensaje original- De: Ed Griebel [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 30 de Noviembre de 2006 10:51 a.m. Para: Struts Users Mailing List Asunto: Re: VALIDATION The easiest way to do this is to turn off automatic validation in your struts-config.xml and manually call validation in your desired methods. Something like: ActionMessages errors = form.validate(mapping, request); if ( errors != null && errors.size() > 0 ) { LOG.warn("Errors detected!!"); return mapping.getInputForward(); } HTH, -ed On 11/30/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > hi to all, im having some problems with validation i have an action > named RegisterCustomer with three methods and an object > > RegisterCustomer implements ModelDriven > Customer customer = null; > > getModel > showCustomerRegistrationView > registerCustomer > > > I want to know if could use validation in this way, telling validation > to be used only in the medthod registercustomer and the results for > this method > > validationOk - result registrationView validationFail - result > registrationEnd > > I dont want to use the methods input and success, also in this action > im using the interceptor Modeldriven the get the customer The customer > is created upon a session parameter, if parameter is personal i create > a Personal customer, if the parameter is enterprise i create a > EnterpriseCustomer, both extends Customer class. > > This parameter class is loaded by another action SelectCustomer, that > based in a pair of radio buttons load the parameter in the session. > > I had all working but i cant do the validation work > > Please help me ! > > Regards > Juan > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
VALIDATION
hi to all, im having some problems with validation i have an action named RegisterCustomer with three methods and an object RegisterCustomer implements ModelDriven Customer customer = null; getModel showCustomerRegistrationView registerCustomer I want to know if could use validation in this way, telling validation to be used only in the medthod registercustomer and the results for this method validationOk - result registrationView validationFail - result registrationEnd I dont want to use the methods input and success, also in this action im using the interceptor Modeldriven the get the customer The customer is created upon a session parameter, if parameter is personal i create a Personal customer, if the parameter is enterprise i create a EnterpriseCustomer, both extends Customer class. This parameter class is loaded by another action SelectCustomer, that based in a pair of radio buttons load the parameter in the session. I had all working but i cant do the validation work Please help me ! Regards Juan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Themes and templates
Thanks mark for your help, i will give a try to your advices Regards Juan -Mensaje original- De: Mark Shifman [mailto:[EMAIL PROTECTED] Enviado el: Martes, 28 de Noviembre de 2006 05:20 p.m. Para: Struts Users Mailing List Asunto: Re: Themes and templates If you set struts.ui.theme=simple in the struts.properties file you won't fight with the templates and it will be sort of like good old struts 1. However, there are other gotchas in store. You have to get validation errors on the screen yourself using since the theme cleverly puts the validation errors next to the invalid fields but not with "simple". This is how I have done it but there is probably a better way: Validation Error The hasErrors() comes from the value stack from you action that extended ActionSupport. But this didn't really answer your question of how to make themes and templates work for you :(. Juan Espinosa wrote: > Hi to all, im building an struts2 based application and i dont understan the > concept of themes an templates. In the past i used struts 1, and in the view > i used jsp tags and struts tags like iterate and others. > > Now in the application that im buildin i use tags provided by struts like > s:action s:include s:iterator, s:form etc. the problem started when i was > using the radio button tag that renders radio buttons based on a list. The > buttons are put side by side... and i want to put one below the other > > label radio1 label radio2 (now) > > label radio1 > label radio2 (mi needs) > > I want to know if render of buttons tables forms and other tags are based on > this templates..and how i could change it > > Regards > > Juan > > > > > > > -- Mark Shifman MD. Ph.D. Yale Center for Medical Informatics Phone (203)737-5219 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Themes and templates
Hi to all, im building an struts2 based application and i dont understan the concept of themes an templates. In the past i used struts 1, and in the view i used jsp tags and struts tags like iterate and others. Now in the application that im buildin i use tags provided by struts like s:action s:include s:iterator, s:form etc. the problem started when i was using the radio button tag that renders radio buttons based on a list. The buttons are put side by side... and i want to put one below the other label radio1 label radio2 (now) label radio1 label radio2 (mi needs) I want to know if render of buttons tables forms and other tags are based on this templates..and how i could change it Regards Juan
STRUTS2 and AJAX
Hi to all i have two questions... First question... is possible to remove spring dependecies in struts2 or spring stuff (jars, applicationContext.xml and ContextLoadListener) are neccesary to run struts2 Second question or advise... i want to give a try to ajax, i want some parts of me site to be updated without reloading the whole page, for example. I need some advise where to start, struts2 ajax support, etc... well thats all, thanks for helping me. Regards, Juan Espinosa
RE: Indexed Properties
Hi to all i have two questions... First question... is possible to remove spring dependecies in struts2 or spring stuff (jars, applicationContext.xml and ContextLoadListener) are neccesary to run struts2 Second question or advise... i want to give a try to ajax, i want some parts of me site to be updated without reloading the whole page, for example. I need some advise where to start, struts2 ajax support, etc... well thats all, thanks for helping me. Regards, Juan Espinosa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Lost Error Message!!
Im not very sure, but i think that when you use redirect= true a new request is built(when the redirect is made) and there you loose all your data that is in the request. To avoid the resubmit there is others solutions. Regards, Juan -Mensaje original- De: Balwinder [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 13 de Noviembre de 2006 09:10 a.m. Para: Struts Users Mailing List Asunto: Lost Error Message!! Hi!! Iam losing error message when iam setting redirect=true in action mapping, iam doing this to avoid resubmit of data on page refresh ie if user press F5 function key. Any help would be highly appreciated. Thanks and Regards, Balwinder Kumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.3/531 - Release Date: 12/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [s2] JSP or Freemarker or Velocity ?
Im doing some testing with sitemes and i have problem with decorator and excludes with the urls. When i call an action like /Login.action that returns me a login.jsp page, the jsp page is not decorated because the url in the browser is /Login.action and not the resource i want to show. To solve it i must put the pattern in exclude and in the decorator in this way /Login.action* -Mensaje original- De: Wendy Smoak [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 08 de Noviembre de 2006 03:40 p.m. Para: Struts Users Mailing List Asunto: [s2] JSP or Freemarker or Velocity ? Is one of the view technologies recommended or better supported than the others? I've started with the archetype, which is using Freemarker and Sitemesh, neither of which I'm familiar with. Before I switch to JSP and Tiles, (assuming I can figure out how...) is there anything I should know? (As in, am I going to make my life more difficult?) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.32/523 - Release Date: 07/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SiteMesh
Ah, your excludes are mapped to your actionswhen i tried to mapp my excludes to an action it works. But i dont want to map to an action, i want to map the exclude to a jsp page. This is the thing that is not working. Thanks ted for your help Regards, Juan -Mensaje original- De: Tom Ziemer [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 08 de Noviembre de 2006 09:39 a.m. Para: Struts Users Mailing List Asunto: Re: SiteMesh Hello Juan, I don't know about Struts2 - in Struts 1.2 it works like this: Link -> LoginAction.do -> login.jsp where LoginAction.do will perform some work, and then forward to login.jsp without redirecting. My SiteMesh excludes are mapped to the actions and not to the JSPs. Unfortunately I know absolutely nothing about Struts2, and how it works internally, so maybe somebody else could comment on this. Regards, Tom Juan Espinosa wrote: > This is my problem > > IE link ==> Customer!input.action ==> /private/login.jsp > > the url of my request is ??? > http://www.mysite.com/Customer!input.action, > sitemes look on the > excludes but there is no exclude for this url, so it decorate the page > rendered > > But really this url is a page, no. the the page is > /private/login.jsp wich is in the excludes > > > I dont understand this cuestion. im using struts2 > > Are you redirecting (redirect="true") to the JSP in your > struts-config.xml > > this is my struts config > class="uy.com.nilo.web.actions.CustomerAction"> > /private/login.jsp > > > Regards, > > juan > > > -Mensaje original- > De: Tom Ziemer [mailto:[EMAIL PROTECTED] > Enviado el: Miércoles, 08 de Noviembre de 2006 08:24 a.m. > Para: Struts Users Mailing List > Asunto: Re: SiteMesh > > Hi Juan, > > I am not sure I really get your problem. However, I assume, your > problem lies in forwarding. Are you redirecting (redirect="true") to > the JSP in your struts-config.xml? If so, disable the forwarding and > this ought to fix your problem, otherwise a new request is issued that > will not match your definitions in . As I mentioned > before, I am using SiteMesh as well and my excludes are working nicely. > > HTH, > Tom > > Juan Espinosa wrote: >> Hi Tom as you say i made some changes, i create a sitemesh file and >> put the line you told me but it didnt work. >> I google for this problem and i could realise that many people have >> this problem. >> The problem is that if i call an action like this >> >> Area privada the >> resource that im getting is Customer!input.action and not the page >> /private/login.jsp, i use and action because before showing login.jsp >> i want to make some things in my businnes layers. >> >> Besides this i was debugging sitemesh and i found that sitemesh use >> requestURI to know if a page should be decorated and requestURI in my >> case is returning Customer!input.action. >> >> this is my action: >> >> > class="uy.com.nilo.web.actions.CustomerAction"> >> /private/login.jsp >> >> >> I found that if you want to use velocity or freemaker you must use >> another type of result. >> this is applicable to sitemesh ?? Im using only sitemesh without >> freemaker or velocity >> >> Anyone could help me ?? :) >> >> Regards, >> >> Juan >> >> >> >> -Mensaje original- >> De: Tom Ziemer [mailto:[EMAIL PROTECTED] >> Enviado el: Martes, 07 de Noviembre de 2006 09:38 a.m. >> Para: Struts Users Mailing List >> Asunto: Re: SiteMesh >> >> Hi Juan, >> >> did you add something like: >> to your sitemesh.xml >> >> I am using SiteMesh with Struts and it's working just great (excludes >> as well). >> >> HTH, >> Tom >> >> Juan Espinosa wrote: >>> Hi to all, im using sitemesh and i have a little problems with >>> excludes I have an action that load some data from a db and then >>> goes to a >> jsp page. >>> >>> >>> /private/someJSP.jsp >>> >>> >>> i put in the exclude section of the decorators.xml this page >>> /private/someJSP.jsp but sitemesh decores it. >>> >>> >>> >>> >>> >>> then i put this, and it works, sitemesh doesnt decorate it. the >>> problem
RE: SiteMesh
This is my problem IE link ==> Customer!input.action ==> /private/login.jsp the url of my request is ??? http://www.mysite.com/Customer!input.action, sitemes look on the excludes but there is no exclude for this url, so it decorate the page rendered But really this url is a page, no. the the page is /private/login.jsp wich is in the excludes I dont understand this cuestion. im using struts2 Are you redirecting (redirect="true") to the JSP in your struts-config.xml this is my struts config /private/login.jsp Regards, juan -Mensaje original- De: Tom Ziemer [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 08 de Noviembre de 2006 08:24 a.m. Para: Struts Users Mailing List Asunto: Re: SiteMesh Hi Juan, I am not sure I really get your problem. However, I assume, your problem lies in forwarding. Are you redirecting (redirect="true") to the JSP in your struts-config.xml? If so, disable the forwarding and this ought to fix your problem, otherwise a new request is issued that will not match your definitions in . As I mentioned before, I am using SiteMesh as well and my excludes are working nicely. HTH, Tom Juan Espinosa wrote: > Hi Tom as you say i made some changes, i create a sitemesh file and > put the line you told me but it didnt work. > I google for this problem and i could realise that many people have > this problem. > The problem is that if i call an action like this > > Area privada the resource > that im getting is Customer!input.action and not the page > /private/login.jsp, i use and action because before showing login.jsp > i want to make some things in my businnes layers. > > Besides this i was debugging sitemesh and i found that sitemesh use > requestURI to know if a page should be decorated and requestURI in my > case is returning Customer!input.action. > > this is my action: > >class="uy.com.nilo.web.actions.CustomerAction"> > /private/login.jsp > > > I found that if you want to use velocity or freemaker you must use > another type of result. > this is applicable to sitemesh ?? Im using only sitemesh without > freemaker or velocity > > Anyone could help me ?? :) > > Regards, > > Juan > > > > -Mensaje original- > De: Tom Ziemer [mailto:[EMAIL PROTECTED] > Enviado el: Martes, 07 de Noviembre de 2006 09:38 a.m. > Para: Struts Users Mailing List > Asunto: Re: SiteMesh > > Hi Juan, > > did you add something like: > to your sitemesh.xml > > I am using SiteMesh with Struts and it's working just great (excludes > as well). > > HTH, > Tom > > Juan Espinosa wrote: >> Hi to all, im using sitemesh and i have a little problems with >> excludes I have an action that load some data from a db and then goes >> to a > jsp page. >> >> >> /private/someJSP.jsp >> >> >> i put in the exclude section of the decorators.xml this page >> /private/someJSP.jsp but sitemesh decores it. >> >> >> >> >> >> then i put this, and it works, sitemesh doesnt decorate it. the >> problem is that i dont want to put the action. I want to put only the >> JSP page. >> >> >> >> >> >> Well, help welcome. >> >> Regards, >> >> Juan. >> >> PD: i must tell that sitemesh is fantastic, no more putting in my >> pages ...its amazing >> >> >> >> >> >> >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.409 / Virus Database: 268.13.31/522 - Release Date: > 07/11/2006 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.32/523 - Release Date: 07/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SiteMesh
Hi Tom as you say i made some changes, i create a sitemesh file and put the line you told me but it didnt work. I google for this problem and i could realise that many people have this problem. The problem is that if i call an action like this Area privada the resource that im getting is Customer!input.action and not the page /private/login.jsp, i use and action because before showing login.jsp i want to make some things in my businnes layers. Besides this i was debugging sitemesh and i found that sitemesh use requestURI to know if a page should be decorated and requestURI in my case is returning Customer!input.action. this is my action: /private/login.jsp I found that if you want to use velocity or freemaker you must use another type of result. this is applicable to sitemesh ?? Im using only sitemesh without freemaker or velocity Anyone could help me ?? :) Regards, Juan -Mensaje original- De: Tom Ziemer [mailto:[EMAIL PROTECTED] Enviado el: Martes, 07 de Noviembre de 2006 09:38 a.m. Para: Struts Users Mailing List Asunto: Re: SiteMesh Hi Juan, did you add something like: to your sitemesh.xml I am using SiteMesh with Struts and it's working just great (excludes as well). HTH, Tom Juan Espinosa wrote: > Hi to all, im using sitemesh and i have a little problems with > excludes I have an action that load some data from a db and then goes to a jsp page. > > > /private/someJSP.jsp > > > i put in the exclude section of the decorators.xml this page > /private/someJSP.jsp but sitemesh decores it. > > > > > > then i put this, and it works, sitemesh doesnt decorate it. the > problem is that i dont want to put the action. I want to put only the > JSP page. > > > > > > Well, help welcome. > > Regards, > > Juan. > > PD: i must tell that sitemesh is fantastic, no more putting in my > pages ...its amazing > > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.31/522 - Release Date: 07/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SiteMesh
i dont have an excludes files, the excludes are in the decorators.xml file, maybe its that the line you wrote is located in the file sitemesh.xml isnt it ?? in the doc of sitemesh i saw this line in the file sitemesh.xml, but the doc says that this file(sitemesh.xml) is not mandatory i will try with your solution... thanks for your answer Juan -Mensaje original- De: Tom Ziemer [mailto:[EMAIL PROTECTED] Enviado el: Martes, 07 de Noviembre de 2006 09:38 a.m. Para: Struts Users Mailing List Asunto: Re: SiteMesh Hi Juan, did you add something like: to your sitemesh.xml I am using SiteMesh with Struts and it's working just great (excludes as well). HTH, Tom Juan Espinosa wrote: > Hi to all, im using sitemesh and i have a little problems with > excludes I have an action that load some data from a db and then goes to a jsp page. > > > /private/someJSP.jsp > > > i put in the exclude section of the decorators.xml this page > /private/someJSP.jsp but sitemesh decores it. > > > > > > then i put this, and it works, sitemesh doesnt decorate it. the > problem is that i dont want to put the action. I want to put only the > JSP page. > > > > > > Well, help welcome. > > Regards, > > Juan. > > PD: i must tell that sitemesh is fantastic, no more putting in my > pages ...its amazing > > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.31/522 - Release Date: 07/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SiteMesh
Hi to all, im using sitemesh and i have a little problems with excludes I have an action that load some data from a db and then goes to a jsp page. /private/someJSP.jsp i put in the exclude section of the decorators.xml this page /private/someJSP.jsp but sitemesh decores it. then i put this, and it works, sitemesh doesnt decorate it. the problem is that i dont want to put the action. I want to put only the JSP page. Well, help welcome. Regards, Juan. PD: i must tell that sitemesh is fantastic, no more putting in my pages ...its amazing
RE: Tiles
ok i will give it a try Suggestions ?? Juan -Mensaje original- De: Jim Reynolds [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 01 de Noviembre de 2006 10:49 a.m. Para: Struts Users Mailing List Asunto: Re: Tiles I do not know this answer, but I think I may try using SiteMesh for my first S2 site. Matt Raible from AppFuse has some great examples of using SiteMesh. It seems pretty easy to use and it is from the same folks at Open Symphony. My 2 cents. On 11/1/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > Hi im going to start using - and giving a try to Tiles The > installation of tiles in struts 2 is the same as in struts 1 ? > Anybody has a working example, maybe a war. > > Thanks to all > >Juan > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.21/511 - Release Date: 01/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tiles, me again
Me again...i want to use tiles to solve the problem of putting in every page a include of a header a footer and a menu. If anyone has suggestions or knowdlege of using another template engines, like sitemesh or anything else. Regards, Juan
Tiles
Hi im going to start using - and giving a try to Tiles The installation of tiles in struts 2 is the same as in struts 1 ? Anybody has a working example, maybe a war. Thanks to all Juan
RE: Acegi Implementation [s2]
Im also interested on acegy security with struts 2. Juan -Mensaje original- De: Jim Reynolds [mailto:[EMAIL PROTECTED] Enviado el: Martes, 31 de Octubre de 2006 10:52 a.m. Para: user@struts.apache.org Asunto: Acegi Implementation [s2] Is there any documentation regarding Acegi implementation and Struts2. I would like to somehow use the Acegi security framework, and a Struts Interceptor to handle login and session management. I googled this, but did not find anything that amounted to much. Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.19/507 - Release Date: 31/10/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Request Processor Struts2
In the mailreader there is an example. you can do it with an interceptor package mailreader2; import com.opensymphony.xwork2.interceptor.Interceptor; import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.Action; import java.util.Map; import org.apache.struts.apps.mailreader.dao.User; public class AuthenticationInterceptor implements Interceptor { public void destroy () {} public void init() {} public String intercept(ActionInvocation actionInvocation) throws Exception { Map session = actionInvocation.getInvocationContext().getSession(); User user = (User) session.get(Constants.USER_KEY); boolean isAuthenticated = (null!=user) && (null!=user.getDatabase()); if (!isAuthenticated) { return Action.LOGIN; } else { return actionInvocation.invoke(); } } } -Mensaje original- De: Jim Reynolds [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 30 de Octubre de 2006 03:46 p.m. Para: user@struts.apache.org Asunto: Request Processor Struts2 Hello, Newbie with WW, so hopefully this is not a silly question. In Struts 1.x I used to extend the request processor, and check for a user with a certain object in the session. If it did not exist, I would put it in, and at the same time, send to the front login if it did not exist. This was how I handled my session management. Now I am getting underway with Struts2, and noticed that the RequestProcessor no longer exists. So my question is: How do I handle this type of setup in Struts 2? I noticed that there is a Interceptor that may be for this task, but I am unsure. Do I extend the interceptor and handle my logic there, or is there a simpler way. Any examples, links would be appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date: 27/10/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Paging
I read the last part of the tutorial and its hard to understand, do you have an example ?? I want to use where that if i want to show 100 object, i call an action that returns 20, then when i press next, i go again to the action and i load the next 20... Thanks, Juan -Mensaje original- De: David Friedman [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 30 de Octubre de 2006 02:28 p.m. Para: Struts Users Mailing List Asunto: RE: Paging Actually, DisplayTag does support partial sets. If you handle the loading of the data yourself you can tell displaytag it is a partial list (starting at 20 of 100 for example). You will probably just have to sort it yourself via your database call. And of course you'll need to pay attention to the request parameters to find out which subset to load next. See the last section of this page for partial paging and external sorting at: http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html Regards, David -Original Message- From: Juan Espinosa [mailto:[EMAIL PROTECTED] Sent: Monday, October 30, 2006 1:07 PM To: 'Struts Users Mailing List' Subject: Paging Hi im testing the tag library "display tag" (tag for paging, sorting etc), as many know, you must load the entire data (a list with objects) in the session scope to make this tag use of this data. The tag library doesnt support the load of data on demand. So im looking another tag or library to make paging. In reading the documentation of the value list tag library but is to complex i cant found a easy example. Anyone know a good paging library Regards, Juan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date: 27/10/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Paging
Hi im testing the tag library "display tag" (tag for paging, sorting etc), as many know, you must load the entire data (a list with objects) in the session scope to make this tag use of this data. The tag library doesnt support the load of data on demand. So im looking another tag or library to make paging. In reading the documentation of the value list tag library but is to complex i cant found a easy example. Anyone know a good paging library Regards, Juan
RE: ITERATOR
I could do the task i use -Mensaje original- De: James Mitchell [mailto:[EMAIL PROTECTED] Enviado el: Viernes, 27 de Octubre de 2006 08:43 a.m. Para: Struts Users Mailing List Asunto: Re: ITERATOR What tag library are you using? "s:" could be anything. -- James Mitchell 678.910.8017 On Oct 25, 2006, at 3:12 PM, Juan Espinosa wrote: > hi anyone know how to iterato over a object that is in the application > object (not in the session) im using s:iterate, im searching for a > parameter like "scope" or something like that > > Regards > > Juan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.16/504 - Release Date: 27/10/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ITERATOR
hi anyone know how to iterato over a object that is in the application object (not in the session) im using s:iterate, im searching for a parameter like "scope" or something like that Regards Juan
S:ITERATOR
Im using the tag iterator to iterato over a list of objects in the user session. Anyone knows hot to iterate over a list in the application day is: sometingh like this day is: Regards Juan.
RE: Drag-and-drop struts-aware IDE?
Here are some struts - eclipse plugins - i dont know if they are drag and drop plugins Easy Struts - http://easystruts.sourceforge.net/ MyEclipseIde - http://www.myeclipseide.com/index.php NitroX - http://www.eclipseplugincentral.com/displayarticle194.html Improve Struts Editor - http://www.improve-technologies.com/alpha/struts-config-editor/ Exadel Struts Studio - http://box.exadel.com/exadelproducts/app_products.process.main.start?_action =products Workshop Studio - http://workshopstudio.bea.com/index.html -Mensaje original- De: Bruno Melloni [mailto:[EMAIL PROTECTED] Enviado el: Viernes, 20 de Octubre de 2006 09:20 a.m. Para: Struts Users Mailing List Asunto: RE: Drag-and-drop struts-aware IDE? It surprises me that a drag-and-drop struts aware IDE does not exist. A Struts drag-and-drop plug-in for Eclipse would be a very compelling product - the strength of (a current version of) Struts with the easy of use of Visual Studio... Many would pay for that. -Original Message- From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 1:24 AM To: Struts Users Mailing List Subject: Re: Drag-and-drop struts-aware IDE? Hi, I agree with ur opinion. I feel that the asp taglibrary is very helpful in using many controls and components in .NET and this is available by default which they do not need to include seperately. Bruno Melloni <[EMAIL PROTECTED]> wrote: We are constantly getting pressure to consider .NET development because it is faster than our traditional J2EE/Struts work. After an in-depth comparison of the two, the main advantage of .NET in regard to "speed of development" seems to be that you can easily drag and drop a few controls, build and presto! You get a running application. I was wondering if there are any *good* IDEs or preferably Eclipse plug-ins that support this type of behavior for a recent version of Struts (1.2.9, 1.3.5, or 2.0.x). I know that IBM's RAD6 is supposed to do this, but apparently it is still hopelessly stuck at Struts 1.1. Any advice would be welcome. - Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.8/489 - Release Date: 20/10/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hosting
Hi im looking for a hosting company that supports java 1.5, tomcat 5.x (i will upload a struts 2 application) HD:5gb Transfer:30+Gb Anybody has suggestions...??? Thanks Juan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 2.0 question tags, config
Hi again, I upload the struts application and it deploy ok, i get in http://www.catalogodepropiedades.com/Struts1Blank/ and it display this message. I think it works ok. What is your opinion ?? The same way i do with the struts 2 blank war but it doesnt work Welcome! To get started on your own application, copy the struts-blank.war to a new WAR file using the name for your application. Place it in your container's "webapp" folder (or equivalent), and let your container auto-deploy the application. Edit the skeleton configuration files as needed, restart your container, and you are on your way! (You can find the MessageResources.properties file with this message in the /WEB-INF/src folder.) -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Ted Husted Enviado el: Martes, 17 de Octubre de 2006 03:48 p.m. Para: Struts Users Mailing List Asunto: Re: Struts 2.0 question tags, config Yes, it's in the Examples distribution. * http://struts.apache.org/download.cgi#struts135 On 10/17/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > Ok ted i will try to deploy an struts 1 application. > A question. is there a blank struts 1 application to test, like struts 2. > > Juan > > -Mensaje original- > De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de > Ted Husted Enviado el: Martes, 17 de Octubre de 2006 03:11 p.m. > Para: Struts Users Mailing List > Asunto: Re: Struts 2.0 question tags, config > > On 10/17/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > > Only happens with struts2, iam not working with struts 1, the > > applications that i made with struts 1 run over an intranet > > > > the problems happens on shared webhosting...where i have no access > > to program files directory... > > If you could deploy one of the Struts 1 applications, it might help > isolate the problem. It might be an issue with the host configuration generally. > > A lot of people run WW and S2 applications in hosted environments, so > that would not be the problem per se. > > -T. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: > 16/10/2006 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- HTH, Ted. * http://www.husted.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 16/10/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 2.0 question tags, config
Ok ted i will try to deploy an struts 1 application. A question. is there a blank struts 1 application to test, like struts 2. Juan -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Ted Husted Enviado el: Martes, 17 de Octubre de 2006 03:11 p.m. Para: Struts Users Mailing List Asunto: Re: Struts 2.0 question tags, config On 10/17/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > Only happens with struts2, iam not working with struts 1, the > applications that i made with struts 1 run over an intranet > > the problems happens on shared webhosting...where i have no access to > program files directory... If you could deploy one of the Struts 1 applications, it might help isolate the problem. It might be an issue with the host configuration generally. A lot of people run WW and S2 applications in hosted environments, so that would not be the problem per se. -T. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 16/10/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 2.0 question tags, config
Only happens with struts2, iam not working with struts 1, the applications that i made with struts 1 run over an intranet the problems happens on shared webhosting...where i have no access to program files directory... -Mensaje original- De: David Friedman [mailto:[EMAIL PROTECTED] Enviado el: Martes, 17 de Octubre de 2006 02:30 p.m. Para: Struts Users Mailing List Asunto: RE: Struts 2.0 question tags, config Can you even upload a Struts1 example application that works or is this related to Struts2 only? Regards, David -Original Message- From: Juan Espinosa [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 17, 2006 1:17 PM To: 'Struts Users Mailing List' Subject: RE: Struts 2.0 question tags, config I dont know how to solve this problem. This problem ocurrs with any application i upload to the webserver. I upload the blank application and the problem persist. Also is dificult to me to solve this problem because i have a shared server, with a shared tomcat and vm. Answer for David 1) Though some things strike me as odd: FuturePoint's main site runs Linux but your error indicated a PC path. Futurpoint have windows and linux hosting, mine hosting is windows. (Ensim is for jdk 1.4 and tomcat 4.1, Plesk is for jdk 1.5 and tomcat 5.5) In the Plesk panel i have an option to load a war file, the war file that i uploaded is the blank application from the struts web site. I test this war in a local tomcat and the application works fine. Suggetions are welcome thanks in advance for your help -Mensaje original- De: Don Brown [mailto:[EMAIL PROTECTED] Enviado el: Martes, 17 de Octubre de 2006 12:54 p.m. Para: Struts Users Mailing List Asunto: Re: Struts 2.0 question tags, config Interesting...how do you want Struts to read your configuration files then? Struts currently automatically looks for and loads struts-default.xml, struts-plugin.xml, and struts.xml files in the classloader. You can customize that by changing the '"struts.configuration.files' property in struts.properties to a different comma-delimited list of file names. Still, I'm not sure how you would want to solve this problem. Are only some struts.xml files unable to be loaded, in which case, you'd want Struts to swallow access errors on startup? Don On 10/17/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > I have a similar problem, i dont know who is trying to load struts.xml > and why in my case is trying to load it from program filesplease > help > Im using struts in a shared web hosting, because of this i am not > allowed to read from program files... > > > Struts Problem Report > Struts has detected an unhandled exception: > > Messages: access denied (java.io.FilePermission > C:\Program%20Files\SWsoft\Plesk\Additional\Tomcat\work\PSA\catalogodep > ropied ades.com\Nilo\WEB-INF\classes\struts.xml read) Caught exception > while loading file struts.xml > > > > -Mensaje original- > De: Jim Reynolds [mailto:[EMAIL PROTECTED] Enviado el: Martes, > 17 de Octubre de 2006 12:31 p.m. > Para: user@struts.apache.org > Asunto: Struts 2.0 question tags, config > > Hello, > > I have downloaded and trying to learn the 2.0 framework. First off, I > am trying to figure out how the struts.xml gets configured, I do not > see this in the web.xml anymore. Also, I am having trouble finding > documenttion on the struts-tags that are now avaiable. Are these just > the WebWork tags, or they repackaged for struts 2.0. > > Thanks, > > > eg: I cannot find what the s:head with attribute of theme does. > <%@ taglib prefix="s" uri="/struts-tags" %> > Showcase > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: > 16/10/2006 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 16/10/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 2.0 question tags, config
I dont know how to solve this problem. This problem ocurrs with any application i upload to the webserver. I upload the blank application and the problem persist. Also is dificult to me to solve this problem because i have a shared server, with a shared tomcat and vm. Answer for David 1) Though some things strike me as odd: FuturePoint's main site runs Linux but your error indicated a PC path. Futurpoint have windows and linux hosting, mine hosting is windows. (Ensim is for jdk 1.4 and tomcat 4.1, Plesk is for jdk 1.5 and tomcat 5.5) In the Plesk panel i have an option to load a war file, the war file that i uploaded is the blank application from the struts web site. I test this war in a local tomcat and the application works fine. Suggetions are welcome thanks in advance for your help -Mensaje original- De: Don Brown [mailto:[EMAIL PROTECTED] Enviado el: Martes, 17 de Octubre de 2006 12:54 p.m. Para: Struts Users Mailing List Asunto: Re: Struts 2.0 question tags, config Interesting...how do you want Struts to read your configuration files then? Struts currently automatically looks for and loads struts-default.xml, struts-plugin.xml, and struts.xml files in the classloader. You can customize that by changing the '"struts.configuration.files' property in struts.properties to a different comma-delimited list of file names. Still, I'm not sure how you would want to solve this problem. Are only some struts.xml files unable to be loaded, in which case, you'd want Struts to swallow access errors on startup? Don On 10/17/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > I have a similar problem, i dont know who is trying to load struts.xml > and why in my case is trying to load it from program filesplease > help > Im using struts in a shared web hosting, because of this i am not > allowed to read from program files... > > > Struts Problem Report > Struts has detected an unhandled exception: > > Messages: access denied (java.io.FilePermission > C:\Program%20Files\SWsoft\Plesk\Additional\Tomcat\work\PSA\catalogodep > ropied ades.com\Nilo\WEB-INF\classes\struts.xml read) Caught exception > while loading file struts.xml > > > > -Mensaje original- > De: Jim Reynolds [mailto:[EMAIL PROTECTED] Enviado el: Martes, > 17 de Octubre de 2006 12:31 p.m. > Para: user@struts.apache.org > Asunto: Struts 2.0 question tags, config > > Hello, > > I have downloaded and trying to learn the 2.0 framework. First off, I > am trying to figure out how the struts.xml gets configured, I do not > see this in the web.xml anymore. Also, I am having trouble finding > documenttion on the struts-tags that are now avaiable. Are these just > the WebWork tags, or they repackaged for struts 2.0. > > Thanks, > > > eg: I cannot find what the s:head with attribute of theme does. > <%@ taglib prefix="s" uri="/struts-tags" %> > Showcase > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: > 16/10/2006 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 16/10/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 2.0 question tags, config
I have a similar problem, i dont know who is trying to load struts.xml and why in my case is trying to load it from program filesplease help Im using struts in a shared web hosting, because of this i am not allowed to read from program files... Struts Problem Report Struts has detected an unhandled exception: Messages: access denied (java.io.FilePermission C:\Program%20Files\SWsoft\Plesk\Additional\Tomcat\work\PSA\catalogodepropied ades.com\Nilo\WEB-INF\classes\struts.xml read) Caught exception while loading file struts.xml -Mensaje original- De: Jim Reynolds [mailto:[EMAIL PROTECTED] Enviado el: Martes, 17 de Octubre de 2006 12:31 p.m. Para: user@struts.apache.org Asunto: Struts 2.0 question tags, config Hello, I have downloaded and trying to learn the 2.0 framework. First off, I am trying to figure out how the struts.xml gets configured, I do not see this in the web.xml anymore. Also, I am having trouble finding documenttion on the struts-tags that are now avaiable. Are these just the WebWork tags, or they repackaged for struts 2.0. Thanks, eg: I cannot find what the s:head with attribute of theme does. <%@ taglib prefix="s" uri="/struts-tags" %> Showcase - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 16/10/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OT (but only slightly) mailreader struts2 tutorial
I think you can download the war file an deploy in your own tomcat. URL http://people.apache.org/builds/struts/2.0.1/struts-2.0.1-all.zip , i downloaded from this address -Mensaje original- De: Wesley Wannemacher [mailto:[EMAIL PROTECTED] Enviado el: Martes, 17 de Octubre de 2006 12:01 p.m. Para: Struts Users Mailing List Asunto: OT (but only slightly) mailreader struts2 tutorial Hello, I would like to go through the mailreader tutorial for Struts 2.0, but it appears that the link on the Wiki page is broken. http://planetstruts.org/struts2-mailreader/Tour.do only takes me to a 404. Does anyone know where I can find this tutorial? -Wes -- Wes Wannemacher Director of Operations Double A Trailer Sales, Inc. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 16/10/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Plugin
) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Unknown Source) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:271) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:21 3) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:183) org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter Chain.java:50) org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:140) java.security.AccessController.doPrivileged(Native Method) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:136) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:178) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 ) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 ) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :107) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:383) org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) java.lang.Thread.run(Unknown Source) -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Ted Husted Enviado el: Martes, 17 de Octubre de 2006 09:19 a.m. Para: Struts Users Mailing List Asunto: Re: Plugin Those types of plugins dont' exist in Struts 2, since today it is just as easy to use a conventional listener or filter to initialize stuff. For example, the updated S2 MailReader application uses a listener to load its "database" from an XML file. -Ted. On 10/17/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: > Hi all, > > Where did it go plugin in struts 2, How i implement a plugin in struts > 2. In need to initialize some stuff when the application loads. > > > > > Regards. > > > Juan > > -- HTH, Ted. * http://www.husted.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 16/10/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Plugin
Hi all, Where did it go plugin in struts 2, How i implement a plugin in struts 2. In need to initialize some stuff when the application loads. Regards. Juan
Problem loading struts configuration in a shared web hosting
Hi to all, I have a question about struts2. Im making test with struts2 in shared web hosting (www.futurepoint.com). I test the blank application that is in the struts2 distribution in a local tomcat (mine pc) and all work ok, but when i upload the war to the webhosting i get errro copied at the end of this email. access denied (java.io.FilePermission C:\Program%20Files\SWsoft\Plesk\Additional\Tomcat\work\PSA\catalogodepropied ades.com\Nilo\WEB-INF\classes\struts.xml read) It says that i have no access to the Program Files directory, but i dont know why struts or the blank application is trying to access this directory. If somebody could help me i will be very grateful. Pd:sorry for my poor english. Regards, Juan Espinosa Montevideo - Uruguay Struts has detected an unhandled exception: Messages: 1. access denied (java.io.FilePermission C:\Program%20Files\SWsoft\Plesk\Additional\Tomcat\work\PSA\catalogodepropied ades.com\Nilo\WEB-INF\classes\struts.xml read) 2. Caught exception while loading file struts.xml 3. Stacktraces Caught exception while loading file struts.xml - [unknown location] com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig urationFiles(XmlConfigurationProvider.java:698) com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlCo nfigurationProvider.java:120) com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi guration.java:87) com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu rationManager.java:46) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.jav a:223) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Unknown Source) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:271) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:21 3) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:183) org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter Chain.java:50) org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:140) java.security.AccessController.doPrivileged(Native Method) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:136) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:178) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 ) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 ) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :107) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:383) org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) java.lang.Thread.run(Unknown Source) java.security.AccessControlException: access denied (java.io.FilePermission C:\Program%20Files\SWsoft\Plesk\Additional\Tomcat\work\PSA\catalogodepropied ades.com\Nilo\WEB-INF\classes\struts.xml read) java.security.AccessControlContext.checkPermission(Unknown Source) java.security.AccessController.checkPermission(Unknown Source) java.lang.SecurityManager.checkPermission(Unknown Source) java.lang.SecurityManager.checkRead(Unknown Source) java.io.File.exists(Unknown Source) com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:102) com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig urationFiles(XmlConfigurationProvider.java:683) com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlCo nfigurationProvider.java:120) com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi guration.java:87) com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu rationManager.java:46) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.jav a:223) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method
Problem loading struts configuration in a shared web hosting
Hi to all, I have a question about struts2. Im making test with struts2 in shared web hosting (www.futurepoint.com). I test the blank application that is in the struts2 distribution in a local tomcat (mine pc) and all work ok, but when i upload the war to the webhosting i get errro copied at the end of this email. access denied (java.io.FilePermission C:\Program%20Files\SWsoft\Plesk\Additional\Tomcat\work\PSA\catalogodepropied ades.com\Nilo\WEB-INF\classes\struts.xml read) It says that i have no access to the Program Files directory, but i dont know why struts or the blank application is trying to access this directory. If somebody could help me i will be very grateful. Pd:sorry for my poor english. Regards, Juan Espinosa Montevideo - Uruguay Struts has detected an unhandled exception: Messages: 1. access denied (java.io.FilePermission C:\Program%20Files\SWsoft\Plesk\Additional\Tomcat\work\PSA\catalogodepropied ades.com\Nilo\WEB-INF\classes\struts.xml read) 2. Caught exception while loading file struts.xml 3. Stacktraces Caught exception while loading file struts.xml - [unknown location] com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig urationFiles(XmlConfigurationProvider.java:698) com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlCo nfigurationProvider.java:120) com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi guration.java:87) com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu rationManager.java:46) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.jav a:223) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Unknown Source) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:271) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:21 3) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:183) org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter Chain.java:50) org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:140) java.security.AccessController.doPrivileged(Native Method) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:136) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:178) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 ) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 ) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :107) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:383) org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) java.lang.Thread.run(Unknown Source) java.security.AccessControlException: access denied (java.io.FilePermission C:\Program%20Files\SWsoft\Plesk\Additional\Tomcat\work\PSA\catalogodepropied ades.com\Nilo\WEB-INF\classes\struts.xml read) java.security.AccessControlContext.checkPermission(Unknown Source) java.security.AccessController.checkPermission(Unknown Source) java.lang.SecurityManager.checkPermission(Unknown Source) java.lang.SecurityManager.checkRead(Unknown Source) java.io.File.exists(Unknown Source) com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:102) com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig urationFiles(XmlConfigurationProvider.java:683) com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlCo nfigurationProvider.java:120) com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi guration.java:87) com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu rationManager.java:46) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.jav a:223) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method