RE: Why not an Action Based Validator?
No, that is different. That has to do with using the form bean name or the action 'mapping'. I am talking about having a validate method in the action class rather than the ActionForm class. Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 12:37 AM To: Struts Users Mailing List Subject: Re: Why not an Action Based Validator? 2003. január 15. 07:00 dátummal Phase Web and Multimedia ezt írtad: Why don't we have an action based validator or at least allow for the validation to be either Action based or ActionForm based? Afaik we have: ValidatorForm vs ValidatorActionForm Hth, Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Why not an Action Based Validator?
2003. január 15. 09:12 dátummal Phase Web and Multimedia ezt írtad: No, that is different. That has to do with using the form bean name or the action 'mapping'. I am talking about having a validate method in the action class rather than the ActionForm class. Sorry, just didn't read the end of the mail. I think that you can extend the action in the following way: public class BaseAction extends Action { ActionForward execute(...) { ActionErrors errors = validate(...); if (errors != null !errors.empty()) { saveErrors(request, errors); String input = mapping.getInput(); if (input != null) return new ActionForward(input); else // return sg, thow sg, or like } return executeOnValidatedInput(...); } ActionErrors validate(...) { // override this if you need validate in your action return null; } ActionForward executeOnValidatedInput(...) { // this is what you need to override in your actions. return null; } } Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
OT: How to organize your software in proper version control structure
Hello, Here ia a question that may not have only one correct answer, but I hope you will try to give me your answer still. How to organize your software in proper version control structure? Background: - We are a small company 20 employees to whom this concerns, so expenses are a concern. - We do straight sales, not OEM sales. So our products are often more of product frameworks. There is customization always to each customer. - Our solutions are more of GUI solutions not server solutions. - You can assume that we use Struts, maybe with tiling or XML. - For now we are using MS Visual SourceSafe and JSP without EJB. Component based model seems more attractive due to modular design, but we have hard time to find solutions to problems that arise when components go to the GUI layer also. We would need several Web Archive (WAR) structures, one for each GUI component. But using several WAR's might cause problems with application servers (shared session etc) and would cause problems with GUI tailoring: same GUI lookout for all components. With simple model we could organize projects, products and common library so that GUI customization would be more advanced, thanks to tiling. But then by default it would be easier to copy all standard library functionality to all products projects so there would be unused code. Here are two alternatives what we thought of: Common to both solutions (root)/ products/ product1/ web-application-project product2/ web-application-project ... projects/ customer1/ project A/ web-application-project ... DoneSolutions/ (testing demo applications) demo A/ web-application-project treetest web-application-project ... Component based model - (root)/ components/ tree/ tree component jar-project doc/tree documentation cache/ cache component jar-project doc/tree documentation ... templates/ empty-webapp/ template directory structure for web applications empty-jarcomponent/ template directory structure for jar components ... No Web archive in the standard library. Simple model - (root)/ stdlib/ web-application-project common to all standard library features install/ SQL scripts, server.xml additions src/ com.done.tree tree component com.done.cache cache component doc/common to all standard library features No individual components or only very few components with the structure above. Thank you in advance for any comments or votes. -- Timo Riikonen [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE:[Gurus Invited] Why not an Action Based Validator?
But, can the Validator be called/used from within the action class? For example, you need to extend your ActionForm to ValidatorForm/ValidatorActionForm in order to use the Validator. Could the same code be used to create a ValidatorAction that had a validate method that could be called within classes that extended it to take advantage of the Validator's validation simplicity. The only reason why I mention this whole scenario has to do with organizing and centralizing ones access to their logic code. For example, I have a jsp form that has drop downs in it that are populated by collections from the ValidatorActionForm. Now, if I have a validation failure and my input forwards back to the jsp then the page explodes because the collections are empty. So, what I need to do is populate the collections in the ValidatorActionForm again. I can do this by overriding the validate method from within my ValidatorActionForm and make a call to super.validate(mapping,request) in order to perform the neccessary Validator validation. Then I can check to see if the ActionErrors object generated by the super.validate method is empty and call my business logic classes to populate the collections in my form before it goes back to the jsp with the errors. My feeling about this whole scenario is that I now have placed some calls to the business logic in my ValidatorActionForm. This creates more maintenance when having to update code. Wouldn't it be simpler to have validation happening in the Action class so that if you have to access the business logic that you can do so without decentralizing that code. I just think it would be nice to allow for a validation using Validator to exist in the/a base Action class that can be extended. In summary this is what it seems to me should be the functional purpose of each: ActionForms - Pass form data to the Action with an option to validate (maybe). No logic interaction. Currently we are forced to do this in many cases. Action - Validate data and perform business logic interaction. Final question, couldn't we whip up an Action class that takes advantage of the Validators convenience and access it from an Action class instead of a ActionForm? Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 1:13 AM To: Struts Users Mailing List Subject: Re: Why not an Action Based Validator? 2003. január 15. 09:12 dátummal Phase Web and Multimedia ezt írtad: No, that is different. That has to do with using the form bean name or the action 'mapping'. I am talking about having a validate method in the action class rather than the ActionForm class. Sorry, just didn't read the end of the mail. I think that you can extend the action in the following way: public class BaseAction extends Action { ActionForward execute(...) { ActionErrors errors = validate(...); if (errors != null !errors.empty()) { saveErrors(request, errors); String input = mapping.getInput(); if (input != null) return new ActionForward(input); else // return sg, thow sg, or like } return executeOnValidatedInput(...); } ActionErrors validate(...) { // override this if you need validate in your action return null; } ActionForward executeOnValidatedInput(...) { // this is what you need to override in your actions. return null; } } Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[validator] numbers with localized decimal separator
In hungarian language the decimal separator is comma: 123.45 would be written in the form of 123,45 Btw are you aware of any other Locale in which the decimal separator is not '.'? If the user enters number and the client's Locale is hu then the validateFloat cannot parse it. The float validator should take into account the Locale of the client, shouldn't it? Tib Ps: At the moment I have a workaround. In the default formset I use the float validator. In case of language=hu I use a formset with the mask validator with the following mask: ^\d*(,\d*)?$ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: AW: Transforming a String to valid HTML encoding
Thank you for your help, Craig. I don't know if you got me completely right.. or maybe I didn't understand. What I want to do is to transform the regional characters of a String like ü into uuml; The reason is, that I don't want to use utf-8, but ISO-8859-1 for my html pages. And if a ü appears in the ISO-8859-1 characterset in the browser, it is not displayed correctly in a browser using the english locale. But it is displayed correctly if uuml; is used. (what is the name for this format?) As far as I could learn, java.net.URLEncoder transforms into application/x-www-form-urlencoded MIME format, used for the URLs. But this format is not for the body of a html page, right? Regards, Bernhard -Ursprüngliche Nachricht- Von: Craig R. McClanahan Gesendet: Dienstag, 14. Januar 2003 19:06 An: Struts Users Mailing List Betreff: Re: AW: Transforming a String to valid HTML encoding On Tue, 14 Jan 2003, Hirschmann, Bernhard wrote: Date: Tue, 14 Jan 2003 17:31:03 +0100 From: Hirschmann, Bernhard [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: AW: Transforming a String to valid HTML encoding I wonder if this problem is too easy or too hard - may please somebody comment this? ResponseUtils is only worried about filtering the characters that could cause security problems -- it is not designed to be a general purpose URL encoder. For that, check out the java.net.URLEncoder class. Craig? Thank you very much Craig - original message - I still have the problem to transform a String containing national special characters to the appropriate HTML encoding. i.e.: schön reich -- schouml;n amp reich The class org.apache.struts.util.ResponseUtils only transforms the 4 characters , , and into their html representative. Is there another transformer around? Any hints highly appreciated. Regards, Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [Gurus Invited] Why not an Action Based Validator?
2003. január 15. 10:13 dátummal Phase Web and Multimedia ezt írtad: But, can the Validator be called/used from within the action class? I use the Validator to check if the input is in the appropriate Domain (int, float, mask, date, etc) which can be checked static. However there are some validations which require calls to the model. These are checked in the Action. And these are far more complex so cannot be declared in an xml. failure and my input forwards back to the jsp then the page explodes because the collections are empty. So, what I need to do is populate the collections in the ValidatorActionForm again For this I put the form into session scope or I give the 'input' attribute for the mapping not the jsp but the action which prepopulates the SELECTs and forwards to the jsp. Hth, Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: AW: Transforming a String to valid HTML encoding
2003. január 15. 10:16 dátummal Hirschmann, Bernhard ezt írtad: The reason is, that I don't want to use utf-8, but ISO-8859-1 for my html pages. And if a ü appears in the ISO-8859-1 characterset in the browser, What is wrong with utf-8? Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [validator] numbers with localized decimal separator
- Original Message - From: Gemes Tibor [EMAIL PROTECTED] Btw are you aware of any other Locale in which the decimal separator is not '.'? Germany uses the ',' as well. Simon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: AW: AW: Transforming a String to valid HTML encoding
The reason is, that I don't want to use utf-8, but ISO-8859-1 for my html pages. And if a ü appears in the ISO-8859-1 characterset in the browser, What is wrong with utf-8? Nothing is wrong with utf-8. Maybe it would be the best to use it, even though everything is much more complex while handling stuff like the html form entries, which have to be converted. The main reason is that our customer has problems with its application server configuration when I deliver JSPs in utf-8. I don't know what kind of problems, because it is not possible for me to check the configuration - it is a high security area where they run their servers, and there are reasons why I'm not allowed to check it. I just deliver and get the bug reports... So I think I better use the ISO-8859-1 character set with html characters like amp. It may be stupid, but it eases a lot. Regards Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Fwd: Nested tags configuration... again
Sorry to repost but any ideas? Inizio del messaggio inoltrato: Da: Mark Lowe [EMAIL PROTECTED] Data: Mar 14 gen 2003 17:38:27 Europe/Rome A: Struts List [EMAIL PROTECTED] Oggetto: Nested tags configuration Rispondere-A: Struts Users Mailing List [EMAIL PROTECTED] anyone had any problems getting netsted tags running? i've been working through the monkey - banna example and i keep getting this: org.apache.jasper.compiler.ParseException: End of content reached while more parsing required: tag nesting error? at org.apache.jasper.compiler.JspReader.popFile(JspReader.java:293) at org.apache.jasper.compiler.JspReader.hasMoreInput(JspReader.java:337) at org.apache.jasper.compiler.JspReader.nextChar(JspReader.java:346) at org.apache.jasper.compiler.JspReader.skipUntil(JspReader.java:473) at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:868) at org.apache.jasper.compiler.Parser.parse(Parser.java:1145) at org.apache.jasper.compiler.Parser.parse(Parser.java:1103) at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:892) at org.apache.jasper.compiler.Parser.parse(Parser.java:1145) at org.apache.jasper.compiler.Parser.parse(Parser.java:1103) at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:892) at org.apache.jasper.compiler.Parser.parse(Parser.java:1145) at org.apache.jasper.compiler.Parser.parse(Parser.java:1103) at org.apache.jasper.compiler.Parser.parse(Parser.java:1099) at org.apache.jasper.compiler.ParserController.parse(ParserController.java :214) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary( JspServlet.java:176) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServl et.java:188) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic ationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j ava:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23 47) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46 8) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor. java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java :1125) at
Re: [validator] numbers with localized decimal separator
2003. január 15. 10:42 dátummal Simon Kelly ezt írtad: Btw are you aware of any other Locale in which the decimal separator is not '.'? Germany uses the ',' as well. ok, so I assume this is a problem. Do you think that is there any other way of validating float number input but masking it with the pattern ^\d*(,\d*)?$ where the ',' should be replaced with the localized decimal separator? Tib Oh, and this should parsed localized as well, and replaced each parseFloat with this imho. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: AW: AW: Transforming a String to valid HTML encoding
2003. január 15. 10:52 dátummal Hirschmann, Bernhard ezt írtad: The reason is, that I don't want to use utf-8, but ISO-8859-1 for my html pages. And if a ü appears in the ISO-8859-1 characterset in the browser, What is wrong with utf-8? Nothing is wrong with utf-8. Maybe it would be the best to use it, even though everything is much more complex while handling stuff like the html form entries, which have to be converted. No, as far as you are using the SetCharacterEncoding filter coming with the example application of Tomcat. reports... So I think I better use the ISO-8859-1 character set with html characters like amp. It may be stupid, but it eases a lot. I use iso-8859-2 if I know that each user input is covered in it. However I need to use the abovementioned filter in this case too. Hth, Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [Gurus Invited] Why not an Action Based Validator?
But that is my whole point. Complex validation or not. Why don't we handle both types of validation in the SAME class. I don't want to beat this into the ground. But, it just seems organizationaly better in my mind to handle validation on the Action level. With all the great minds on this project I am certain that there is a good design reason for placing validate in the ActionForm. I am just curious what it is. Thanks, Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 2:24 AM To: Struts Users Mailing List Subject: Re: [Gurus Invited] Why not an Action Based Validator? 2003. január 15. 10:13 dátummal Phase Web and Multimedia ezt írtad: But, can the Validator be called/used from within the action class? I use the Validator to check if the input is in the appropriate Domain (int, float, mask, date, etc) which can be checked static. However there are some validations which require calls to the model. These are checked in the Action. And these are far more complex so cannot be declared in an xml. failure and my input forwards back to the jsp then the page explodes because the collections are empty. So, what I need to do is populate the collections in the ValidatorActionForm again For this I put the form into session scope or I give the 'input' attribute for the mapping not the jsp but the action which prepopulates the SELECTs and forwards to the jsp. Hth, Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ProcessAction - Scaffold package
I just added response to the CheckOutcome signature and its friends, including exposeInScope(). Send me the changes that you make to get the cookies up and running and we'll get that up too. Thanks for bringing this up. It should have been there from the beginning =:0) -Ted. Senthivel U S wrote: Greetings, The ProcessAction and ProcessResult were designed to understand the idea of storing something in a scope. Originally, these set to the equivalent of request, session, and application. If you like, we could also add a fourth scope that would be the equivalent of a cookie (or maybe client) scope. I could not use exposeInScope() method to set the cookie, since it doesnot have response object. I have to add cookie in the response object. Any suggestions is highly appreciated. Thanks, Regards, Sen -- Ted Husted, Struts in Action http://husted.com/struts/book.html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [Gurus Invited] Why not an Action Based Validator?
+1 -Original Message- From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 15 January 2003 18:30 To: Struts Users Mailing List Subject: RE: [Gurus Invited] Why not an Action Based Validator? But that is my whole point. Complex validation or not. Why don't we handle both types of validation in the SAME class. I don't want to beat this into the ground. But, it just seems organizationaly better in my mind to handle validation on the Action level. With all the great minds on this project I am certain that there is a good design reason for placing validate in the ActionForm. I am just curious what it is. Thanks, Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 2:24 AM To: Struts Users Mailing List Subject: Re: [Gurus Invited] Why not an Action Based Validator? 2003. január 15. 10:13 dátummal Phase Web and Multimedia ezt írtad: But, can the Validator be called/used from within the action class? I use the Validator to check if the input is in the appropriate Domain (int, float, mask, date, etc) which can be checked static. However there are some validations which require calls to the model. These are checked in the Action. And these are far more complex so cannot be declared in an xml. failure and my input forwards back to the jsp then the page explodes because the collections are empty. So, what I need to do is populate the collections in the ValidatorActionForm again For this I put the form into session scope or I give the 'input' attribute for the mapping not the jsp but the action which prepopulates the SELECTs and forwards to the jsp. Hth, Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Refresh on MSIE, PLEASE HELP!!
Hello, I'm having big troubles with MSIE because it doesn't refresh the content of my forms. I've put META HTTP-EQUIV=expires CONTENT=0 META HTTP-EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Cache-Control CONTENT=no-cache but it doesn't refresh my pages! How to do to refresh my pages? thanks, kiuma -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: AW: AW: AW: Transforming a String to valid HTML encoding
Nothing is wrong with utf-8. Maybe it would be the best to use it, even though everything is much more complex while handling stuff like the html form entries, which have to be converted. No, as far as you are using the SetCharacterEncoding filter coming with the example application of Tomcat. I think I have to study this in more detail - it still isn't quite clear for me. What is this SetCharacterEncoding filter doing? Is it only working with Tomcat? (We use WebSphere 4) I also have unicode characters from the DB which have to be displayed correctly. Is this filter good for that? Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Refresh on MSIE, PLEASE HELP!!
We use the following code snippet to prevent the browsers from caching. meta http-equiv=pragma content=no cache meta http-equiv=cache-control content=no store meta http-equiv=expires content=0 Mike -Original Message- From: kiuma [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 11:30 AM To: Struts Users Mailing List Subject: Refresh on MSIE, PLEASE HELP!! Hello, I'm having big troubles with MSIE because it doesn't refresh the content of my forms. I've put META HTTP-EQUIV=expires CONTENT=0 META HTTP-EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Cache-Control CONTENT=no-cache but it doesn't refresh my pages! How to do to refresh my pages? thanks, kiuma -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [Gurus Invited] Why not an Action Based Validator?
2003. január 15. 11:30 dátummal Phase Web and Multimedia ezt írtad: But that is my whole point. Complex validation or not. Why don't we handle both types of validation in the SAME class. I don't want to beat this into the ground. But, it just seems organizationaly better in my mind to handle validation on the Action level. With all the great minds on this project I am certain that there is a good design reason for placing validate in the ActionForm. I am just curious what it is. I use the validator framework to ensure that the Form property (type String) can be converted to BigDecimal/Date/int. If I reuse a Form I want to reuse these validations as well. This can be done if the validation is coupled with the form imho. No one is forced to use this approach however. You can implement the other one by creating a new BaseForm base class which has the a function with the same functionality as the ValidatorActionForm.validate(...) under a different name. Set up the validator framework properly. This ensures client side validations, but the server side validation won't occure. Now call the renamed form's validation function in your BaseAction's validate method. Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: AW: AW: AW: Transforming a String to valid HTML encoding
2003. január 15. 11:32 dátummal Hirschmann, Bernhard ezt írtad: I think I have to study this in more detail - it still isn't quite clear for me. What is this SetCharacterEncoding filter doing? Is it only working with Tomcat? (We use WebSphere 4) I don't know websphere, but if it conforms to the servlet specs v2.3 then it is. I also have unicode characters from the DB which have to be displayed correctly. Is this filter good for that? No. It is for the user submitted data to convert into the proper encoding. Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Refresh on MSIE, PLEASE HELP!!
[EMAIL PROTECTED] ha scritto: We use the following code snippet to prevent the browsers from caching. meta http-equiv=pragma content=no cache meta http-equiv=cache-control content=no store meta http-equiv=expires content=0 Mike -Original Message- From: kiuma [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 11:30 AM To: Struts Users Mailing List Subject: Refresh on MSIE, PLEASE HELP!! Hello, I'm having big troubles with MSIE because it doesn't refresh the content of my forms. I've put META HTTP-EQUIV=expires CONTENT=0 META HTTP-EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Cache-Control CONTENT=no-cache but it doesn't refresh my pages! How to do to refresh my pages? thanks, kiuma -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] . Sadly this doesn't solve the problem! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Need Dynamic Form Beans feature for Struts1.0.2
Hi, By using 1.0.2 also we can use Dynamic Form. For this we need to add some .zar files. I expermented with 1.0.2 Thnaks Regards, Ashok.D - Original Message - From: Yuan, Saul (TOR-ML) [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 3:03 AM Subject: RE: Need Dynamic Form Beans feature for Struts1.0.2 Thanks, Craig, I got to trust you :-) Saul -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 4:13 PM To: Struts Users Mailing List Subject: Re: Need Dynamic Form Beans feature for Struts1.0.2 On Wed, 8 Jan 2003, Yuan, Saul (TOR-ML) wrote: Date: Wed, 8 Jan 2003 15:55:29 -0500 From: Yuan, Saul (TOR-ML) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Need Dynamic Form Beans feature for Struts1.0.2 Hi, We really need the Dynamic Form Beans feature in Struts1.1, but we're stuck with Struts1.0.2, just wondering what's the best way to add that feature to Struts1.0.2? Or any existing samples out there? (1) Upgrade to 1.1 -- the easy way :-) (2) Go make about 1000 lines worth of code changes to the o.a.s.u.BeanUtils and o.a.s.u.PropertyUtils classes, along with changes to most of the tags, to implement it yourself. In short, it is not really very practical. Thanks in advance, Saul Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts horizontal menu
I have many difficulties of presenting the menu which I wish in my application. I already posted a message on this subject, a person sent a example to me but unfortunately someimperfections remain and I am not able to solve them. This example uses the tags Tiles andJavascript functions but unfortunately I have very little knowledge of Javascript. This is why I launch a new call. The problem is as follows we wish to place a menu in the Web pages of our application. The menu should not be posted in a band on the left of all pages but in the header (horizontal position). Example of JSP page: LogoHomeAdmin Titel1 Title2 Help --- | | Table | --- The main items can have sub-items - Home (no sub-item) - Admin - Change password - Tile1 - sub-item1 - sub-item2 - Title2 - Help - about The requirements are the following, - we want to present the menu in a horizontal bar. - spaces between each command (home, admin, etc...) must be regular. If somebody has an example who function I am really very interested. Thanks in advance Sandra -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to let a user click a column header to sort data in a table u sing struts?
-Original Message- From: Jason Yam [mailto:[EMAIL PROTECTED]] Sent: 15 January 2003 06:52 ---- Hi all, anyone knows how to implement this sequence of operations in struts (i.e. click column header to sort)? DisplayAction - jsp form - ProcessAction - jsp result with header for sorting - click one header - jsp result with header for different sorting order The result jsp has a table with multiple column headers. A user can click one of the column headers to sort the data in different order. I do not know how to implement this in struts . Do I need to make a form in the result jsp so that I can make another ProcessAction for sorting. For instance, DisplayAction - jsp form - ProcessAction *A* - jsp result with header for sorting - click one header - ProcessAction *B* - jsp result with header for different sorting order How to change the struts-config to make it work? I did it totally differentlty. I had a report generate action and generic form `ViewReport' and `ViewReportForm' respectively. The business report action form was stored in the SESSION scope. This generated a report. My action form stored a list of rows as a Java collection in a nested attribue rows. I rendered the report using HTML Tables in a bog standard JSP. For each column I designed two up and down arrow gifs and generated two html link using the gifs I wrote a new action `SortReport' and form `SortReportForm' with two attributes column and order (ascending and descending). The sort action just sorted the existing rows retrieved from the `ViewReportForm' (action form in the session) and forward dispatches back to the report jsp. Of course I realised, back then, that I could move the actual sorting in to the `SortReport' in to `ViewReport' action, but I had a brainstorm, I could write the SortReport to sort any sort of data stored in rows. However I never got around to figuring out the code to do it. It involved a lot of `String' to actual Java Object instantiation ie reflection. Ah well. -- Peter Pilgrim, Struts/J2EE Consultant, RBoS FM, Risk IT Tel: +44 (0)207-375-5642 Visit our Internet site at http://www.rbsmarkets.com This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information, if you are not the named addressee, you are not authorised to retain, read, copy or disseminate this message or any part of it. The Royal Bank of Scotland plc is registered in Scotland No 90312 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB Regulated by the Financial Services Authority -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
LookupDispatchAction
Hi guys, I have a form with three submit buttons using the lookupDispatchAction approach. I want to add some href's for paging... so whats the best way to submit the paging request.. i will need all the form data on paging... in order to force an update in the event that the user has entered some data. Cheers, Pat _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Using a Digester to get recursive types from an xml file.
Hi all, Has anyone had to parse a xml document through a Digester where the xml doc contains recursive tags? I set the rules for the app in what I thought was the correct manner, but I got a load of junk back when it came to unloading the resultant bean. I would have included the code I used, but in my frustration it went the way of the rm -r * :-( Cheers Simon. Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Using a Digester to get recursive types from an xml file.
2003. január 15. 13:02 dátummal Simon Kelly ezt írtad: Hi all, Has anyone had to parse a xml document through a Digester where the xml doc contains recursive tags? I set the rules for the app in what I thought was the correct manner, but I got a load of junk back when it came to unloading the resultant bean. have you tried to digester.setRules(new ExtendedBaseRules()); ? This helped me a lot parsing complex xml files. Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Using a Digester to get recursive types from an xml file.
The newer digester versions allow you to do: */item for the path to allow for recursion. | -Original Message- | From: Simon Kelly [mailto:[EMAIL PROTECTED]] | Sent: Wednesday, January 15, 2003 6:03 AM | To: Struts Users Mailing List | Subject: Using a Digester to get recursive types from an xml file. | | Hi all, | | Has anyone had to parse a xml document through a Digester where the xml | doc | contains recursive tags? I set the rules for the app in what I thought | was | the correct manner, but I got a load of junk back when it came to | unloading | the resultant bean. | | I would have included the code I used, but in my frustration it went the | way | of the rm -r * :-( | | Cheers | | Simon. | | Institut fuer | Prozessdatenverarbeitung | und Elektronik, | Forschungszentrum Karlsruhe GmbH, | Postfach 3640, | D-76021 Karlsruhe, | Germany. | | Tel: (+49)/7247 82-4042 | E-mail : [EMAIL PROTECTED] | | | -- | To unsubscribe, e-mail: mailto:struts-user- | [EMAIL PROTECTED] | For additional commands, e-mail: mailto:struts-user- | [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Refresh on MSIE, PLEASE HELP!!
Sadly this doesn't solve the problem! Does your browser use a http proxy? Maybe this is the reason. Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
combining different business objects for validation
I'm reading Programming Jakarta Struts and am in need of a little clarification. According to the book, a service creates business objects. The action class gets business objects from the service Business objects perform their own business rules validation. What if the validation of a business rule requires a number of different business objects together in the same place at the same time? Can one have a BOContext object that would combine different business objects just for the validation of a particular rule? And if so, who would invoke a BOContext, the action or the service? Thanks, Heather Heather Buch -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts test case and modules
Hi, I've just upgraded to struts 1.1b3 and strutstest 1.95 and I'm still experiencing problems using strutstest with an application module. I try to verify a forward with the verifyForward() method, but I have an assertion failed : was expecting '/index.do' but received '/admin/index.do' where /admin is the base of my module. I put the following code before the actionPerform() : setConfigFile(admin, /WEB-INF/struts-config-admin.xml); setRequestPathInfo(/admin, /login.do); Seems I'm not the first to encounter such a problem, but I hoped it was fixed with the 1.95 version of strutstest and 1.1b3 of struts... Christophe VIGOUROUX ECILIA -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
String , html encoding
Hello everyone, How can I encode Strings to HTML content. including the special caracters (é, è), because I have bzzarre outpouts. THX -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Changing the log level of Struts
Hello again, I want to disable the output of the INFO messages coming from Struts (especially those from the validator...). How can I do this ?? Christophe VIGOUROUX ECILIA -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Changing the log level of Struts
I'm using Log4J so i set the level to ERROR. -Message d'origine- De : Christophe Vigouroux [mailto:[EMAIL PROTECTED]] Envoyé : Wednesday, January 15, 2003 1:50 PM À : 'Struts Users Mailing List' Objet : Changing the log level of Struts Hello again, I want to disable the output of the INFO messages coming from Struts (especially those from the validator...). How can I do this ?? Christophe VIGOUROUX ECILIA -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: changing ActionForm to be a Java interface
Hi Craig, I think your point below about form-beans being part of the framework is the nub of the crux of the problem. There's not enough there for novice users to distinguish their responsibilities from those of normal Java Beans. Customarily, object-oriented frameworks are extended solely in terms of behavior (it's that roles and responsibilities thing again). In the case of form-beans, though, the Struts framework is defining a whole new kind of object. The provided superclass has well defined capabilities, but only vaguely defined responsibilities. If ActionForm was defined as an interface that specified methods for getting and setting fields with String names and String values, its responsibilities would be clearer. Consequently it would be possible both for novice users to use the default implementations more reliably, and for competent engineers to provide alternative implementations. CONTROVERSIAL-CLAIM In effect, by piggy-backing on beans-properties introspection for the sake of convenience, your novice users are lured into thinking that form-beans are beans, but they're really intended to be much more restricted in scope. So, if you were to introduce an interface (say, IActionForm) that more clearly stipulated the intended roles and behavior, and documented the heck out of the default implementation to advise novices not to use the rest of beans capabilities indiscriminately, you might end up with a better framework for all classes of users. /CONTROVERSIAL-CLAIM And, of course, that would also make it easier for me to integrate JPlates more fully with Struts. As to your question about whether JPlates objects could still be used for more than a single request, the answer is definitely yes. JPlates objects can be kept directly in the session scope, or they can be referenced by form-beans, etc. I'm currently employing both of those approaches, and I'd still like a more straightforward abstraction for form-objects that didn't require an awkward (and arguably unnecessary) delegation. This is addressed (somewhat briefly) in my presentation about design-pattens in template-based apps. There's a link to it at http://www.jplates.com, in the documentation page. -- Dan Craig R. McClanahan wrote: ... In particular, I want to be able to use JPlates objects (see http://www.jplates.com ) as ActionForms, since that would allow me to encapsulate the full behavior of a form in the object, instead of just having a place to put the data. I can already use JPlates in place of JSPs for rendering (which is wonderful!), but I'd have a more consistent solution if I could use JPlates objects for my ActionForms as well. ... Well, like I said, I use JPlates easily in place of JSPs for rendering, because JPlates comes with a dispatching servlet similar to yours, allowing JPlates to be addressed using URLs just like JSPs. So in that way, JPlates works with Struts just as well as Velocity. That was the design goal. What people resist, though, is the notion that form beans belong to the framework, not to the view technology :-). For ActionForms, though, I can only use JPlates instances by delegation from an anstance of an ActionForm subclass, which is ok, but not idea. I'd rather be able to implement IActionForm from a JPlates class and delegate to an ActionForm if necessary. If you intermix the presentation capabilities of a JPlates object and the data storage capabilities of an ActionForm, doesn't that mean you would have to give up the (currently supported) capability to use the same form bean for more than one view page? Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: Refresh on MSIE, PLEASE HELP!! NOT SOLVED
Hirschmann, Bernhard ha scritto: Sadly this doesn't solve the problem! Does your browser use a http proxy? Maybe this is the reason. Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] . No proxy set. The fact is that with Mozilla works but not with MSIE. I'm using tiles and I see this strange bheav. I'm using tiles so I have %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % %@ taglib uri=/WEB-INF/struts-bean-el.tld prefix=bean-el % tiles:insert page=/skel.jsp flush=true tiles:put name='title' content='WebAppointments v1.0' direct='true'/ tiles:put name='topborder' content='/topborder.jsp'/ tiles:put name='menu' content='/secure/menu.jsp'/ tiles:put name='centerframe' content='/secure/activitycenteredit_center.jsp'/ /tiles:insert I write the server current time in '/secure/menu.jsp' and '/secure/activitycenteredit_center.jsp' which contains the form. but, while in men the time is update when i access the page, /secure/activitycenteredit_center.jsp continue to hold old values. in skel.jsp' header I've put meta http-equiv=pragma content=no cache meta http-equiv=cache-control content=no store meta http-equiv=expires content=0 The problem is only with MSIE!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE : Changing the log level of Struts
But I'm using JDK 1.4 logging system... I also tried to set those properties in my web.xml : init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namedetail/param-name param-value0/param-value /init-param Christophe VIGOUROUX ECILIA -Message d'origine- De : Ahmed ALAMI [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 15 janvier 2003 13:57 À : Struts Users Mailing List Objet : RE: Changing the log level of Struts I'm using Log4J so i set the level to ERROR. -Message d'origine- De : Christophe Vigouroux [mailto:[EMAIL PROTECTED]] Envoyé : Wednesday, January 15, 2003 1:50 PM À : 'Struts Users Mailing List' Objet : Changing the log level of Struts Hello again, I want to disable the output of the INFO messages coming from Struts (especially those from the validator...). How can I do this ?? Christophe VIGOUROUX ECILIA -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
A form with a List
Hi! I have the following situation: One form that have 20 lines of professionals. The problem is how to get the 20 professionals using only one form? Can I have a collection (or List) as an attribute of a Form? The number 20 is dynamic. It could bem 20, 30 or more. Thanks, Joao Paulo. - Busca Yahoo! O melhor lugar para encontrar tudo o que você procura na Internet
RE: How to let a user click a column header to sort data in a tab le u sing struts?
Hello Do you need this sequence to be full JSP ?? Because JavaScript librairies exist to let you directly sort tables. Thus, no page reload is needed. Thomas At 11:39 15/01/2003 +, you wrote: -Original Message- From: Jason Yam [mailto:[EMAIL PROTECTED]] Sent: 15 January 2003 06:52 ---- Hi all, anyone knows how to implement this sequence of operations in struts (i.e. click column header to sort)? DisplayAction - jsp form - ProcessAction - jsp result with header for sorting - click one header - jsp result with header for different sorting order The result jsp has a table with multiple column headers. A user can click one of the column headers to sort the data in different order. I do not know how to implement this in struts . Do I need to make a form in the result jsp so that I can make another ProcessAction for sorting. For instance, DisplayAction - jsp form - ProcessAction *A* - jsp result with header for sorting - click one header - ProcessAction *B* - jsp result with header for different sorting order How to change the struts-config to make it work? I did it totally differentlty. I had a report generate action and generic form `ViewReport' and `ViewReportForm' respectively. The business report action form was stored in the SESSION scope. This generated a report. My action form stored a list of rows as a Java collection in a nested attribue rows. I rendered the report using HTML Tables in a bog standard JSP. For each column I designed two up and down arrow gifs and generated two html link using the gifs I wrote a new action `SortReport' and form `SortReportForm' with two attributes column and order (ascending and descending). The sort action just sorted the existing rows retrieved from the `ViewReportForm' (action form in the session) and forward dispatches back to the report jsp. Of course I realised, back then, that I could move the actual sorting in to the `SortReport' in to `ViewReport' action, but I had a brainstorm, I could write the SortReport to sort any sort of data stored in rows. However I never got around to figuring out the code to do it. It involved a lot of `String' to actual Java Object instantiation ie reflection. Ah well. -- Peter Pilgrim, Struts/J2EE Consultant, RBoS FM, Risk IT Tel: +44 (0)207-375-5642 Visit our Internet site at http://www.rbsmarkets.com This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information, if you are not the named addressee, you are not authorised to retain, read, copy or disseminate this message or any part of it. The Royal Bank of Scotland plc is registered in Scotland No 90312 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB Regulated by the Financial Services Authority -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to let a user click a column header to sort data in a tab le u sing struts?
What?! Do you have a link?? :-) | -Original Message- | From: Thomas CORNET [mailto:[EMAIL PROTECTED]] | Sent: Wednesday, January 15, 2003 7:39 AM | To: Struts Users Mailing List | Subject: RE: How to let a user click a column header to sort data in a tab | le u sing struts? | | | Hello | | Do you need this sequence to be full JSP ?? Because JavaScript librairies | exist to let you directly sort tables. Thus, no page reload is needed. | | Thomas | | At 11:39 15/01/2003 +, you wrote: | | -Original Message- | From: Jason Yam [mailto:[EMAIL PROTECTED]] | Sent: 15 January 2003 06:52 | | ---- | | | | Hi all, | | anyone knows how to implement this sequence of operations | in struts | (i.e. click column header to sort)? | | DisplayAction - jsp form - ProcessAction - jsp result | with header for | sorting - click one header - jsp result with header for | different sorting | order | | The result jsp has a table with multiple column headers. | A user can | click one of the column headers to sort the data in different | order. I do | not know how to implement this in struts . Do I need to make | a form in the | result jsp so that I can make another ProcessAction for sorting. For | instance, | | DisplayAction - jsp form - ProcessAction *A* - jsp | result with header | for sorting - click one header - ProcessAction *B* - jsp | result with | header for different sorting order | | How to change the struts-config to make it work? | | I did it totally differentlty. I had a report generate action and | generic form `ViewReport' and `ViewReportForm' respectively. | The business report action form was stored in the SESSION scope. | This generated a report. My action form stored a list of rows as | a Java collection in a nested attribue rows. | | I rendered the report using HTML Tables in a bog standard JSP. | For each column I designed two up and down arrow gifs and generated | two html link using the gifs | | I wrote a new action `SortReport' and form `SortReportForm' with | two attributes column and order (ascending and descending). | The sort action just sorted the existing rows retrieved | from the `ViewReportForm' (action form in the session) and forward | dispatches back to the report jsp. | | Of course I realised, back then, that I could move the actual | sorting in to the `SortReport' in to `ViewReport' action, but | I had a brainstorm, I could write the SortReport to sort any | sort of data stored in rows. However I never got around | to figuring out the code to do it. It involved a lot of `String' | to actual Java Object instantiation ie reflection. Ah well. | | -- | Peter Pilgrim, | Struts/J2EE Consultant, RBoS FM, Risk IT | Tel: +44 (0)207-375-5642 | | | |Visit our Internet site at http://www.rbsmarkets.com | | This e-mail is intended only for the addressee named above. | As this e-mail may contain confidential or privileged information, | if you are not the named addressee, you are not authorised to | retain, read, copy or disseminate this message or any part of it. | The Royal Bank of Scotland plc is registered in Scotland No 90312 | Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB | Regulated by the Financial Services Authority | | | -- | To unsubscribe, e-mail: mailto:struts-user- | [EMAIL PROTECTED] | For additional commands, e-mail: mailto:struts-user- | [EMAIL PROTECTED] | | -- | To unsubscribe, e-mail: mailto:struts-user- | [EMAIL PROTECTED] | For additional commands, e-mail: mailto:struts-user- | [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to let a user click a column header to sort data in a tab le u sing struts?
2003. január 15. 14:39 dátummal Thomas CORNET ezt írtad: Hello Do you need this sequence to be full JSP ?? Because JavaScript librairies exist to let you directly sort tables. Thus, no page reload is needed. Sounds interesting! Is it running on the popular browsers? Where can I get this? Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: [Gurus Invited] Why not an Action Based Validator?
I seriously doubt, that the approach handle (ALL) types of validation in the SAME class is practical: The Validation taht takes place in the from class happens a semantic level: It just checks, wether the entered values are in a valid format(this even applies to mandatory field, as NULL is not a valid format for the field) - exactly where a validation against business-rules happens is highly-architecture dependent and so you cannot even be sure, that an action-class is the architectural right place to perform validation: There are a lot of projects where the action classes either work as BusinessDelegates or access BusinessDelegates, that delegate their calls to ejb or whatever. In simpler, less-tiered system you may have action-classes that do the validation against businessrules themself. What indeed may be missing is a unified approach not handle validation but how to handle validation errors: 1) semantic errors: The Action is never invoked, request is immerdiately returned to input. 2) business-rule violations: They finally arrive in the action and you have to put set some kind of errors and forward to an errorhandler page. The questions seems to me, if there is a) need to unify this handling b) possibility to implement such a unified handling --- Ursprüngliche Nachricht --- Datum: 15.01.2003 11:44 Von: Gemes Tibor [EMAIL PROTECTED] An: Struts Users Mailing List [EMAIL PROTECTED] Betreff: Re: [Gurus Invited] Why not an Action Based Validator? 2003. január 15. 11:30 dátummal Phase Web and Multimedia ezt írtad: But that is my whole point. Complex validation or not. Why don't we handle both types of validation in the SAME class. I don't want to beat this into the ground. But, it just seems organizationaly better in my mind to handle validation on the Action level. With all the great minds on this project I am certain that there is a good design reason for placing validate in the ActionForm. I am just curious what it is. I use the validator framework to ensure that the Form property (type String) can be converted to BigDecimal/Date/int. If I reuse a Form I want to reuse these validations as well. This can be done if the validation is coupled with the form imho. No one is forced to use this approach however. You can implement the other one by creating a new BaseForm base class which has the a function with the same functionality as the ValidatorActionForm.validate(...) under a different name. Set up the validator framework properly. This ensures client side validations, but the server side validation won't occure. Now call the renamed form's validation function in your BaseAction's validate method. Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: String , html encoding
How can I encode Strings to HTML content. including the special caracters (é, è), because I have bzzarre outpouts. I have the same problem and didn't find a proper solution for it. As far as I understand you have two possibilities: 1.) You use utf-8 as the character set of your JSPs, so the browser will interprete the characters correct. 2.) If you really want to use the HTML characters, you have to use a transformer, which transforms special the characters. I didn't found a transformer for that, so I have written my own. If you are interested in this transformer, just send me a mail. Regards, Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can anybody make a recommendation between Struts in Action and StrutsKick Start
Thanks a lot! Denis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: A form with a List
I don't know what you mean by professionals. However, treating it as some java.lang.Object you can easily accomplish this with a form-bean that has a List of professionals and display the contents of the list in your JSP using a logic:iterate. Am I missing something? Sri -Original Message- From: João Paulo Batistella [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 8:34 AM To: [EMAIL PROTECTED] Subject: A form with a List Hi! I have the following situation: One form that have 20 lines of professionals. The problem is how to get the 20 professionals using only one form? Can I have a collection (or List) as an attribute of a Form? The number 20 is dynamic. It could bem 20, 30 or more. Thanks, Joao Paulo. - Busca Yahoo! O melhor lugar para encontrar tudo o que você procura na Internet -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to let a user click a column header to sort data in a table using struts?
I seek to use the tag display:table with an aim of offering the sorting by column header. I would wish to know if there is no disavantage to use display:table rather than basic tag HTML. In the display library examples JSP source combine table tag and display:table tag. Why doesn't one use only display:table? The list of the display:table and display:column attributes are available in the display.tld file but is there an explanation in the form textual of these attributes ?the tld file is not detailed and I have some difficulties to modify my JSP page to use display:* tags. Can we combine display:tag with struts logic:iterate tag ? How can I modify the following code to use display:* tags ? table width=100% border=1 cellpadding=0 cellspacing=0 bordercolor=#FF %-- Title for the columns of the table --% tr bgcolor=#FFCC00 th align=left width=13%bean:message key=label.id//th th align=left width=5%bean:message key=label.name//th th align=left width=9%bean:message key=label.type//th /tr logic:iterate id=elements name=list type=myappli.myClass offset=offset length=length tr bgcolor=#EBEBEB td bgcolor=#EBEBEB width=13% html:link href=action.do bean:write name=elements property=id/ /html:link /td td bgcolor=#EBEBEB width=5% bean:write name=elements property=name/ /td td bgcolor=#EBEBEB width=10% html:checkbox name=elements property=type value=on/ /td /tr /logic:iterate /table Least help would be appreciated. Thanks Sandra -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED]] Sent: 15 January 2003 08:19 To: Struts Users Mailing List Subject: Re: How to let a user click a column header to sort data in a table using struts? http://edhill.its.uiowa.edu/display-0.8/ this does it for you in one click -D - Original Message - From: Jason Yam [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 10:51 PM Subject: How to let a user click a column header to sort data in a table using struts? Hi all, anyone knows how to implement this sequence of operations in struts (i.e. click column header to sort)? DisplayAction - jsp form - ProcessAction - jsp result with header for sorting - click one header - jsp result with header for different sorting order The result jsp has a table with multiple column headers. A user can click one of the column headers to sort the data in different order. I do not know how to implement this in struts . Do I need to make a form in the result jsp so that I can make another ProcessAction for sorting. For instance, DisplayAction - jsp form - ProcessAction *A* - jsp result with header for sorting - click one header - ProcessAction *B* - jsp result with header for different sorting order How to change the struts-config to make it work? Thank you Jason -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: A form with a List
Hi, Use Dynamic Forms for this functionlity. Go to www.keyboardmonkey.com or you can see running examples: http://www.keyboardmonkey.com/StrutMonkey/monkey-action.do and a better one on http://www.keyboardmonkey.com/StrutMonkey/MonkeyStruts_v2.jsp The site has tutorials as well but I would suggest download the example and go through the code. It is really very simple and easy to implement and enhance. Hope this helps - Original Message - From: João Paulo Batistella [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 7:04 PM Subject: A form with a List Hi! I have the following situation: One form that have 20 lines of professionals. The problem is how to get the 20 professionals using only one form? Can I have a collection (or List) as an attribute of a Form? The number 20 is dynamic. It could bem 20, 30 or more. Thanks, Joao Paulo. - Busca Yahoo! O melhor lugar para encontrar tudo o que você procura na Internet -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to let a user click a column header to sort data in a tab le u sing struts?
Isn't it ? This is a friend of mine who has coded it, and it's working well. Check out the attachement. Thomas At 14:40 15/01/2003 +0100, you wrote: 2003. január 15. 14:39 dátummal Thomas CORNET ezt írtad: Hello Do you need this sequence to be full JSP ?? Because JavaScript librairies exist to let you directly sort tables. Thus, no page reload is needed. Sounds interesting! Is it running on the popular browsers? Where can I get this? Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] sort.zip Description: Zip archive -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE : RE : Changing the log level of Struts
OK, I'm now using Log4J and it works like i wanted. Thanks! Christophe VIGOUROUX ECILIA -Message d'origine- De : Christophe Vigouroux [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 15 janvier 2003 14:12 À : 'Struts Users Mailing List' Objet : RE : Changing the log level of Struts But I'm using JDK 1.4 logging system... I also tried to set those properties in my web.xml : init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namedetail/param-name param-value0/param-value /init-param Christophe VIGOUROUX ECILIA -Message d'origine- De : Ahmed ALAMI [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 15 janvier 2003 13:57 À : Struts Users Mailing List Objet : RE: Changing the log level of Struts I'm using Log4J so i set the level to ERROR. -Message d'origine- De : Christophe Vigouroux [mailto:[EMAIL PROTECTED]] Envoyé : Wednesday, January 15, 2003 1:50 PM À : 'Struts Users Mailing List' Objet : Changing the log level of Struts Hello again, I want to disable the output of the INFO messages coming from Struts (especially those from the validator...). How can I do this ?? Christophe VIGOUROUX ECILIA -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] Bloody Brits
Nah, they're only french, so it's not like it matters if we hurt their feelings. ;-) -Original Message- From: Guillaume Labelle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 6:59 PM To: Struts Users Mailing List Subject: RE: [OT] Bloody Brits Hey watch what you are saying about the french people in Canada. Mark Galbreath [EMAIL PROTECTED] wrote:Hey, we kicked yer arse in 1783, 1815 and took the Oregon Territory from ya. Don't push yer luck, limey. (We'd have taken Canada, too, but we didn't want all those damn fake French persons!) -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 7:22 PM Maybe. All I know, is that I didn't get a Christmas card, so no more Mr. Nice Guy from me. It never pays to be nice to Yankees, you'd think I'd have learned that by now! ;-) -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 6:16 PM To: 'Struts Users Mailing List' Subject: RE: [REQUEST] Corrections for Struts Kick Start Only to the bloody suck-ups -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 4:45 PM I bet you say that to all of your reviewers. :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 2:39 PM Simon - You will forever be on my Christmas Card list! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to let a user click a column header to sort data in a table using struts?
!--- DISPLAY TAG --- display:table width=100% name=list display=1 decorator=some_class display:column property=id title=ID decorator= some_class / display:column property=name decorator= some_class / display:column property=type decorator= some_class / /display:table I've listed the decorator parameter on the tags because this will allow you to either wrap objects to provide special links or you can assign a decorator to each column where each column has it's own decorator: http://edhill.its.uiowa.edu/display-examples-0.8/example-decorator.jsp Example: http://edhill.its.uiowa.edu/display-examples-0.8/Wrapper.java.txt Hope this helps Jacob Hookom The Enverio Group http://www.enverio.com | -Original Message- | From: Heligon Sandra [mailto:[EMAIL PROTECTED]] | Sent: Wednesday, January 15, 2003 7:46 AM | To: 'Struts Users Mailing List' | Subject: RE: How to let a user click a column header to sort data in a | table using struts? | | I seek to use the tag display:table with an aim of offering the | sorting | by column header. I would wish to know if there is no disavantage to use | display:table rather than basic tag HTML. | In the display library examples JSP source combine table tag and | display:table tag. Why doesn't one use only display:table? | The list of the display:table and display:column | attributes are available in the display.tld file but is there an | explanation | in the form textual of these attributes ?the tld file is not detailed and | I | have some difficulties to modify my JSP page to use display:* tags. | | Can we combine display:tag with struts logic:iterate tag ? | | How can I modify the following code to use display:* tags ? | | table width=100% border=1 cellpadding=0 cellspacing=0 | bordercolor=#FF | | %-- Title for the columns of the table --% | tr bgcolor=#FFCC00 | th align=left width=13%bean:message key=label.id//th | th align=left width=5%bean:message key=label.name//th | th align=left width=9%bean:message key=label.type//th | /tr | | logic:iterate id=elements name=list type=myappli.myClass | offset=offset length=length | tr bgcolor=#EBEBEB | td bgcolor=#EBEBEB width=13% | html:link href=action.do | bean:write name=elements property=id/ | /html:link | /td | | td bgcolor=#EBEBEB width=5% | bean:write name=elements property=name/ | /td | | td bgcolor=#EBEBEB width=10% | html:checkbox name=elements property=type value=on/ | /td | /tr | /logic:iterate | /table | | Least help would be appreciated. | Thanks | Sandra | -Original Message- | From: Dan Tran [mailto:[EMAIL PROTECTED]] | Sent: 15 January 2003 08:19 | To: Struts Users Mailing List | Subject: Re: How to let a user click a column header to sort data in a | table using struts? | | | http://edhill.its.uiowa.edu/display-0.8/ | | this does it for you in one click | | -D | - Original Message - | From: Jason Yam [EMAIL PROTECTED] | To: Struts Users Mailing List [EMAIL PROTECTED] | Sent: Tuesday, January 14, 2003 10:51 PM | Subject: How to let a user click a column header to sort data in a table | using struts? | | | Hi all, | | anyone knows how to implement this sequence of operations in struts | (i.e. click column header to sort)? | | DisplayAction - jsp form - ProcessAction - jsp result with header | for | sorting - click one header - jsp result with header for different | sorting | order | | The result jsp has a table with multiple column headers. A user can | click one of the column headers to sort the data in different order. I | do | not know how to implement this in struts . Do I need to make a form in | the | result jsp so that I can make another ProcessAction for sorting. For | instance, | | DisplayAction - jsp form - ProcessAction *A* - jsp result with | header | for sorting - click one header - ProcessAction *B* - jsp result with | header for different sorting order | | How to change the struts-config to make it work? | | Thank you | | Jason | | | -- | To unsubscribe, e-mail: | mailto:[EMAIL PROTECTED] | For additional commands, e-mail: | mailto:[EMAIL PROTECTED] | | -- | To unsubscribe, e-mail: mailto:struts-user- | [EMAIL PROTECTED] | For additional commands, e-mail: mailto:struts-user- | [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] Bloody Brits
standard reply to yanks Strategic withdrawl! Late for how many wars now? huh? noticed that y'all keep asking for our help in the middle east! /standard reply to yanks -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 6:29 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Bloody Brits Hey, we kicked yer arse in 1783, 1815 and took the Oregon Territory from ya. Don't push yer luck, limey. (We'd have taken Canada, too, but we didn't want all those damn fake French persons!) -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 7:22 PM Maybe. All I know, is that I didn't get a Christmas card, so no more Mr. Nice Guy from me. It never pays to be nice to Yankees, you'd think I'd have learned that by now! ;-) -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 6:16 PM To: 'Struts Users Mailing List' Subject: RE: [REQUEST] Corrections for Struts Kick Start Only to the bloody suck-ups -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 4:45 PM I bet you say that to all of your reviewers. :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 2:39 PM Simon - You will forever be on my Christmas Card list! -- To unsubscribe, e-mail: mailto:struts-user-[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to let a user click a column header to sort data in a tab le u sing struts?
2003. január 15. 14:54 dátummal Thomas CORNET ezt írtad: Isn't it ? This is a friend of mine who has coded it, and it's working well. Check out the attachement. WOW! This works like a charm (thou I need some polishing on date handling). Is this copyrighted under public domain? Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Re: AW: Refresh on MSIE, PLEASE HELP!! NOT SOLVED
Kiuma, As per Microsoft Support site, you will need to place another set of meta tags after the closing /body tag. This has to do with the way the headers are evaluated and the caching algorithm utilized by IE. So your ending code would look something like this. HTML HEAD TITLE---/TITLE META HTTP-EQUIV=Pragma CONTENT=no-cache /HEAD BODY Text in the Browser Window /BODY HEAD META HTTP-EQUIV=Pragma CONTENT=no-cache /HEAD /HTML Keep in mind there is also an issue with the pragma tag in IE5 and you may need to set the following: META HTTP-EQUIV=Expires CONTENT=-1 There is a fairly good article at the below link wich explains it in more detail. http://www.htmlgoodies.com/beyond/nocache.html#ie5 HTH, Todd G. Nist From: kiuma [EMAIL PROTECTED] Date: 2003/01/15 Wed AM 08:00:12 EST To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: AW: Refresh on MSIE, PLEASE HELP!! NOT SOLVED Hirschmann, Bernhard ha scritto: Sadly this doesn't solve the problem! Does your browser use a http proxy? Maybe this is the reason. Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] . No proxy set. The fact is that with Mozilla works but not with MSIE. I'm using tiles and I see this strange bheav. I'm using tiles so I have %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % %@ taglib uri=/WEB-INF/struts-bean-el.tld prefix=bean-el % tiles:insert page=/skel.jsp flush=true tiles:put name='title' content='WebAppointments v1.0' direct='true'/ tiles:put name='topborder' content='/topborder.jsp'/ tiles:put name='menu' content='/secure/menu.jsp'/ tiles:put name='centerframe' content='/secure/activitycenteredit_center.jsp'/ /tiles:insert I write the server current time in '/secure/menu.jsp' and '/secure/activitycenteredit_center.jsp' which contains the form. but, while in men the time is update when i access the page, /secure/activitycenteredit_center.jsp continue to hold old values. in skel.jsp' header I've put meta http-equiv=pragma content=no cache meta http-equiv=cache-control content=no store meta http-equiv=expires content=0 The problem is only with MSIE!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to let a user click a column header to sort data in a tab le u sing struts?
BOMBZ!! That's really cool. It works in Mozilla too FYI. -Jacob | -Original Message- | From: Thomas CORNET [mailto:[EMAIL PROTECTED]] | Sent: Wednesday, January 15, 2003 7:55 AM | To: Struts Users Mailing List | Subject: Re: How to let a user click a column header to sort data in a tab | le u sing struts? | | | Isn't it ? This is a friend of mine who has coded it, and it's working | well. Check out the attachement. | | Thomas | | At 14:40 15/01/2003 +0100, you wrote: | 2003. január 15. 14:39 dátummal Thomas CORNET ezt írtad: | Hello | | Do you need this sequence to be full JSP ?? Because JavaScript | librairies | exist to let you directly sort tables. Thus, no page reload is needed. | | Sounds interesting! Is it running on the popular browsers? Where can I | get | this? | | Tib | | -- | To unsubscribe, e-mail: mailto:struts-user- | [EMAIL PROTECTED] | For additional commands, e-mail: mailto:struts-user- | [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Using a database with Struts
Given the amount of discussion of database usage and O/R mapping I've seen on this list, I thought this article on Jakarta OJB would be interesting to some on the list. Kevin http://www.onjava.com/pub/a/onjava/2003/01/08/ojb.html --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] Bloody Brits
snip noticed that y'all keep asking for our help in the middle east! /snip To find it on the map? ;-) hehe C'mon youse blokes - you both know that this sort of things not appropriate in this list... ...until Friday :-) -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 15 January 2003 22:05 To: Struts Users Mailing List Subject: RE: [OT] Bloody Brits standard reply to yanks Strategic withdrawl! Late for how many wars now? huh? noticed that y'all keep asking for our help in the middle east! /standard reply to yanks -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 6:29 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Bloody Brits Hey, we kicked yer arse in 1783, 1815 and took the Oregon Territory from ya. Don't push yer luck, limey. (We'd have taken Canada, too, but we didn't want all those damn fake French persons!) -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 7:22 PM Maybe. All I know, is that I didn't get a Christmas card, so no more Mr. Nice Guy from me. It never pays to be nice to Yankees, you'd think I'd have learned that by now! ;-) -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 6:16 PM To: 'Struts Users Mailing List' Subject: RE: [REQUEST] Corrections for Struts Kick Start Only to the bloody suck-ups -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 4:45 PM I bet you say that to all of your reviewers. :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 2:39 PM Simon - You will forever be on my Christmas Card list! -- To unsubscribe, e-mail: mailto:struts-user-[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] Bloody Brits
-Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 8:13 AM To: Struts Users Mailing List Subject: RE: [OT] Bloody Brits snip C'mon youse blokes - you both know that this sort of things not appropriate in this list... ...until Friday Every day is Friday with Mark. ;-) And we used the [OT] designator. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts Validator and security roles
Hi Has anyone used the Struts Validator with security roles? What I would like to do validate on fields which depend on the login account detail. It doesn't matter what kind of the credential either user id, realm, or group role but the type will be a java.lang.String. For example role: `submitter' check the fields `firstName', `lastName' are not null or blank role: `reviewer' check also the fields `firstName', `lastName' are not null or blank but also check `supervisor', `department' too. My first thought would be to subclass the `FieldChecks' class (1.1 beta3) to add an extra parameter `role', but then how do I get the role into the action form bean. Thoughts? -- Peter Pilgrim, Struts/J2EE Consultant, RBoS FM, Risk IT Tel: +44 (0)207-375-5642 Visit our Internet site at http://www.rbsmarkets.com This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information, if you are not the named addressee, you are not authorised to retain, read, copy or disseminate this message or any part of it. The Royal Bank of Scotland plc is registered in Scotland No 90312 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB Regulated by the Financial Services Authority -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to let a user click a column header to sort data in a tab le u sing struts?
You can use/modify it as you wish. Anyway, you'll have to modify it to update the style (colors, font) for your application... Thomas At 15:09 15/01/2003 +0100, you wrote: 2003. január 15. 14:54 dátummal Thomas CORNET ezt írtad: Isn't it ? This is a friend of mine who has coded it, and it's working well. Check out the attachement. WOW! This works like a charm (thou I need some polishing on date handling). Is this copyrighted under public domain? Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Select sub-app at runtime ?
Hi Does anybody know how one could extend struts to be able to select a subapplication at runtime ? I.e. basically force the servlet to process the request as if it had a sub-app prefix. It seems that simply overwriting the ActionServlet.process() and re-implementing a slightly different version of RequestUtils.selectApplication(request, context) in it would be enough for the servlet to select the proper subapp. Would it be enough ? Does someone forsee any issue ? Thanks Jacques-Olivier -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [Gurus Invited] Why not an Action Based Validator?
Well, all this would be a mute point if there weren't times when we have to populate collections in an ActionForm so that our jsp page doesn't blow up. If I have errors in my validate on the form level I have to populate collections. Those collections are gathered from my resource layer which requires that I access the business layer in order to create them. If my validation code is in two places this makes for more maintenance (i.e. validation in form and action). I understand the whole semantic vs. business-rule validation (good clarification). But, it also stands true that with a useful tool like Validator we could handle the validation in the Action class or in the ActionForm. It doesn't matter where the validation happens really. Because, we are reusing the validator validation rules... not the validate method in the ActionForm. There are cases where I actually want different validation to happen on a form than at other times. With Validator you use ValidatorActionForm and create validation specific to the action mapping. So, why not make validation available in the Action also. This does not seem to be breaking in reusability rules. I don't know if my point is being clearly communicated. IF YOU USE VALIDATOR AND VALIDATOR COULD BE USED FROM AN ACTION then the same validation will happen whether it is in you ValidatorActionForm or Action class. The only difference would be that business-rule validation could be handled along with the semantic. Besides, with Validator the semantic validation is ALREADY ABSTRACTED. Why not make the Validator flexible enough to be used from within the Action by creating a ValidatorAction class with the underlying code and method to use the Validator. Simplify... Simplify... Simplify... :-D Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 6:41 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: AW: [Gurus Invited] Why not an Action Based Validator? I seriously doubt, that the approach handle (ALL) types of validation in the SAME class is practical: The Validation taht takes place in the from class happens a semantic level: It just checks, wether the entered values are in a valid format(this even applies to mandatory field, as NULL is not a valid format for the field) - exactly where a validation against business-rules happens is highly-architecture dependent and so you cannot even be sure, that an action-class is the architectural right place to perform validation: There are a lot of projects where the action classes either work as BusinessDelegates or access BusinessDelegates, that delegate their calls to ejb or whatever. In simpler, less-tiered system you may have action-classes that do the validation against businessrules themself. What indeed may be missing is a unified approach not handle validation but how to handle validation errors: 1) semantic errors: The Action is never invoked, request is immerdiately returned to input. 2) business-rule violations: They finally arrive in the action and you have to put set some kind of errors and forward to an errorhandler page. The questions seems to me, if there is a) need to unify this handling b) possibility to implement such a unified handling --- Ursprüngliche Nachricht --- Datum: 15.01.2003 11:44 Von: Gemes Tibor [EMAIL PROTECTED] An: Struts Users Mailing List [EMAIL PROTECTED] Betreff: Re: [Gurus Invited] Why not an Action Based Validator? 2003. január 15. 11:30 dátummal Phase Web and Multimedia ezt írtad: But that is my whole point. Complex validation or not. Why don't we handle both types of validation in the SAME class. I don't want to beat this into the ground. But, it just seems organizationaly better in my mind to handle validation on the Action level. With all the great minds on this project I am certain that there is a good design reason for placing validate in the ActionForm. I am just curious what it is. I use the validator framework to ensure that the Form property (type String) can be converted to BigDecimal/Date/int. If I reuse a Form I want to reuse these validations as well. This can be done if the validation is coupled with the form imho. No one is forced to use this approach however. You can implement the other one by creating a new BaseForm base class which has the a function with the same functionality as the ValidatorActionForm.validate(...) under a different name. Set up the validator framework properly. This ensures client side validations, but the server side validation won't occure. Now call the renamed form's validation function in your BaseAction's validate method. Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:
RE: A form with a List
Thanks. Professionals is only an example. I tried to say is that I have not only one professional (or something else) but many. As you said, I understand that I can have an attribute that can store these professionals. Can you give me a simple example? This attribute is an array of java.lang.Object? Thanks, Joao Paulo. Sri Sankaran [EMAIL PROTECTED] wrote:I don't know what you mean by professionals. However, treating it as some java.lang.Object you can easily accomplish this with a form-bean that has a List of professionals and display the contents of the list in your JSP using a . Am I missing something? Sri -Original Message- From: João Paulo Batistella [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 8:34 AM To: [EMAIL PROTECTED] Subject: A form with a List Hi! I have the following situation: One form that have 20 lines of professionals. The problem is how to get the 20 professionals using only one form? Can I have a collection (or List) as an attribute of a Form? The number 20 is dynamic. It could bem 20, 30 or more. Thanks, Joao Paulo. - Busca Yahoo! O melhor lugar para encontrar tudo o que você procura na Internet -- To unsubscribe, e-mail: For additional commands, e-mail: - Busca Yahoo! O melhor lugar para encontrar tudo o que você procura na Internet
Re: Can anybody make a recommendation between Struts in Action and Struts Kick Start
Even I was into the same dilemma which one to buy... I then read a lot of reviews and decided that I want Struts in Action first, and I have ordered it from Amazon.com, am waiting for the book now a days..it will take almost 15 days for me to receive the book. I chose this one only because somewhere I read that this book consolidates the general problems put-up in this forum. Regards Puneet - Original Message - From: Denis Wang [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 1:42 PM Subject: Can anybody make a recommendation between Struts in Action and Struts Kick Start Thanks a lot! Denis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to let a user click a column header to sort data in a tab le u sing struts?
2003. január 15. 15:29 dátummal Thomas CORNET ezt írtad: You can use/modify it as you wish. Anyway, you'll have to modify it to update the style (colors, font) for your application... I tested it on a few browsers: It does work on mozilla, IE, but not on Opera 6.0. It works on konqueror 3.0.4, but not on konqueror 2 series. It does not work on lynx :) So it works for the target browsers. 10x Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: A form with a List
Look at the file logic-iterate.jsp in the struts-exercise-taglib application that ships with Struts. It demonstrates several uses of logic:iterate. It would also help to look at the documentation of logic:iterate tag at http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate. Sri -Original Message- From: João Paulo Batistella [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 9:51 AM To: Struts Users Mailing List Subject: RE: A form with a List Thanks. Professionals is only an example. I tried to say is that I have not only one professional (or something else) but many. As you said, I understand that I can have an attribute that can store these professionals. Can you give me a simple example? This attribute is an array of java.lang.Object? Thanks, Joao Paulo. Sri Sankaran [EMAIL PROTECTED] wrote:I don't know what you mean by professionals. However, treating it as some java.lang.Object you can easily accomplish this with a form-bean that has a List of professionals and display the contents of the list in your JSP using a . Am I missing something? Sri -Original Message- From: João Paulo Batistella [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 8:34 AM To: [EMAIL PROTECTED] Subject: A form with a List Hi! I have the following situation: One form that have 20 lines of professionals. The problem is how to get the 20 professionals using only one form? Can I have a collection (or List) as an attribute of a Form? The number 20 is dynamic. It could bem 20, 30 or more. Thanks, Joao Paulo. - Busca Yahoo! O melhor lugar para encontrar tudo o que você procura na Internet -- To unsubscribe, e-mail: For additional commands, e-mail: - Busca Yahoo! O melhor lugar para encontrar tudo o que você procura na Internet -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: Refresh on MSIE, PLEASE HELP!! NOT SOLVED
[EMAIL PROTECTED] ha scritto: Kiuma, As per Microsoft Support site, you will need to place another set of meta tags after the closing /body tag. This has to do with the way the headers are evaluated and the caching algorithm utilized by IE. So your ending code would look something like this. HTML HEAD TITLE---/TITLE META HTTP-EQUIV=Pragma CONTENT=no-cache /HEAD BODY Text in the Browser Window /BODY HEAD META HTTP-EQUIV=Pragma CONTENT=no-cache /HEAD /HTML Keep in mind there is also an issue with the pragma tag in IE5 and you may need to set the following: META HTTP-EQUIV=Expires CONTENT=-1 There is a fairly good article at the below link wich explains it in more detail. http://www.htmlgoodies.com/beyond/nocache.html#ie5 HTH, Todd G. Nist From: kiuma [EMAIL PROTECTED] Date: 2003/01/15 Wed AM 08:00:12 EST To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: AW: Refresh on MSIE, PLEASE HELP!! NOT SOLVED Hirschmann, Bernhard ha scritto: Sadly this doesn't solve the problem! Does your browser use a http proxy? Maybe this is the reason. Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] . No proxy set. The fact is that with Mozilla works but not with MSIE. I'm using tiles and I see this strange bheav. I'm using tiles so I have %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % %@ taglib uri=/WEB-INF/struts-bean-el.tld prefix=bean-el % tiles:insert page=/skel.jsp flush=true tiles:put name='title' content='WebAppointments v1.0' direct='true'/ tiles:put name='topborder' content='/topborder.jsp'/ tiles:put name='menu' content='/secure/menu.jsp'/ tiles:put name='centerframe' content='/secure/activitycenteredit_center.jsp'/ /tiles:insert I write the server current time in '/secure/menu.jsp' and '/secure/activitycenteredit_center.jsp' which contains the form. but, while in men the time is update when i access the page, /secure/activitycenteredit_center.jsp continue to hold old values. in skel.jsp' header I've put meta http-equiv=pragma content=no cache meta http-equiv=cache-control content=no store meta http-equiv=expires content=0 The problem is only with MSIE!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] . Cut paste but the result is the same! P.s. I'm using JBoss3.0.4 + Jetty + Struts_b3 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Validator and security roles
Another aproach: Call a setter for the role (1) (ex: formBean.setRole(req.getUserPrinicipal) in onSave in action. Now your can call formBean.validate() in your action. And... your formBean class must implement a validate method to do all your logic. This way you can use the same formbean validation in model1, or anywhere where you need the bean. Or a variant of yours is to just do (1) and then do your role thingy. That code could be usefull to others. ,V PILGRIM, Peter, FM wrote: Hi Has anyone used the Struts Validator with security roles? What I would like to do validate on fields which depend on the login account detail. It doesn't matter what kind of the credential either user id, realm, or group role but the type will be a java.lang.String. For example role: `submitter' check the fields `firstName', `lastName' are not null or blank role: `reviewer' check also the fields `firstName', `lastName' are not null or blank but also check `supervisor', `department' too. My first thought would be to subclass the `FieldChecks' class (1.1 beta3) to add an extra parameter `role', but then how do I get the role into the action form bean. Thoughts? -- Peter Pilgrim, Struts/J2EE Consultant, RBoS FM, Risk IT Tel: +44 (0)207-375-5642 Visit our Internet site at http://www.rbsmarkets.com This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information, if you are not the named addressee, you are not authorised to retain, read, copy or disseminate this message or any part of it. The Royal Bank of Scotland plc is registered in Scotland No 90312 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB Regulated by the Financial Services Authority -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [Gurus Invited] Why not an Action Based Validator?
I think validation was originally placed in ActionForm in an effort to simplify simple validation on the form fields. From an OO view point, this allows an ActionForm to remain cohesive. It is responsible for providing a simple API to facilitate access to data in the HTTP request. It only makes sense that it should know how to validate that same data. The Action class implements a command pattern which usually contains a single method which is invoked by its parent framework and executes some business logic. If we start adding a method here or a method there which may be useful for 80% of the users then would it not violate the command pattern and introduce additional complexity into the Struts framework? I think the original intention for separating validation was that since all data in the request entered either from a GET or POST request is represented as strings, then there was a real need to determine if a user id was an integer or if a character string represenated a valid date before the data could even be used in the Action class. Why even bother invoking the Action class (for a particular mapping) if the user input was invalid? This allows Struts to avoid some useless overhead and speed up an already useless server side roundtrip. Yes, this could be done with JavaScript, but we all know that is not dependable. I agree that since Struts is a presentation framework it should be able to satisfy a large number of user requirements. But there is a fine line between satisfying those requirements and violating the framework ( a line only few can walk - Craig, Ted, etc...). Why not look at how the existing framework can be used to satisfy your requirements? The ValidatorActionForm is a complex (and loose) implementation of a Visitor pattern. It allows the form to be extended without actually extending it. In effect, you could place all pre-processing validation in a custom Validator. This way your ValidatorActionForm remains simple and reusable and validation can be executed based on the form name, action path, and/or page number. This also allows you to encapsulate all validation routines in a single or a family of Validator's. Struts also provides a way to abstract exception handling from your Action class so that if you get a runtime exception you can declare the handlers in the struts-config file. If you leverage DynaActionValidatorForm the Action class becomes very clean and devoid of most business logic and acts (IMHO as it should) as a simple delegate to the business or service layer. Personally, I like to use the Struts validation framework for simple validation. My Action classes delegate to a service layer which delegates to reusuable business objects. The service layer contains application validation and the business objects contains model validation. All throw the appropriate exception which is propogated to the Action class where it is handled appropriately. In closing, Struts is a simple open source presentation framework which by itself is very flexible...and you can modify it if it doesn't meet your specific requirements. I hope I understood your question, answered appropriately, and didn't just ramble on. robert -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 5:24 AM To: Struts Users Mailing List Subject: RE: [Gurus Invited] Why not an Action Based Validator? +1 -Original Message- From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 15 January 2003 18:30 To: Struts Users Mailing List Subject: RE: [Gurus Invited] Why not an Action Based Validator? But that is my whole point. Complex validation or not. Why don't we handle both types of validation in the SAME class. I don't want to beat this into the ground. But, it just seems organizationaly better in my mind to handle validation on the Action level. With all the great minds on this project I am certain that there is a good design reason for placing validate in the ActionForm. I am just curious what it is. Thanks, Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 2:24 AM To: Struts Users Mailing List Subject: Re: [Gurus Invited] Why not an Action Based Validator? 2003. január 15. 10:13 dátummal Phase Web and Multimedia ezt írtad: But, can the Validator be called/used from within the action class? I use the Validator to check if the input is in the appropriate Domain (int, float, mask, date, etc) which can be checked static. However there are some validations which require calls to the model. These are checked in the Action. And these are far more complex so cannot be declared in an xml. failure and my input forwards back to the jsp then the page explodes because the collections are empty. So, what I need to do is populate
Map Backed ActionForm using LinkedListHashMap
I experimented with using a LinkedListHashMap in order to preserve the order of my Map entries from the jsp form into the ActionForm (map backed). It appears that the population of my LinkedListHashMap does not preserve the form order. I assume this is due to how the ActionServlet populates the Maps in the ActionForm. Is support for this due in the future so that the order in which the form is collected is in a predictable order when using a map. It would be nice if reflection could be used to intelligently decide what type of Map is being used and populate it accordingly. Currently my solution is to supply a hidden sort element with a comma delimited list of key names and the order I want them sorted. Then I resort the map into a LinkListHashMap and I am able get the order that I want. Anyways, it all works fine. I am just wondering. Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can anybody make a recommendation between Struts in Action and Struts Kick Start
I've read Struts in Action. It seems to me that it is dummied a bit, but still a very good book. I don't know about Struts Kick Start. Has anyone read Programming Jakarta Struts from O'Reilly? -Original Message- From: Puneet Agarwal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 8:51 AM To: Struts Users Mailing List Subject: Re: Can anybody make a recommendation between Struts in Action and Struts Kick Start Even I was into the same dilemma which one to buy... I then read a lot of reviews and decided that I want Struts in Action first, and I have ordered it from Amazon.com, am waiting for the book now a days..it will take almost 15 days for me to receive the book. I chose this one only because somewhere I read that this book consolidates the general problems put-up in this forum. Regards Puneet - Original Message - From: Denis Wang [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 1:42 PM Subject: Can anybody make a recommendation between Struts in Action and Struts Kick Start Thanks a lot! Denis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to let a user click a column header to sort data in a tab le u sing struts?
It´s fantastic!! Is it free to use? -Mensaje original- De: Gemes Tibor [mailto:[EMAIL PROTECTED]] Enviado el: 15 de enero de 03 15:10 Para: Struts Users Mailing List Asunto: Re: How to let a user click a column header to sort data in a tab le u sing struts? 2003. január 15. 14:54 dátummal Thomas CORNET ezt írtad: Isn't it ? This is a friend of mine who has coded it, and it's working well. Check out the attachement. WOW! This works like a charm (thou I need some polishing on date handling). Is this copyrighted under public domain? Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts horizontal menu
Sandra, Have you looked at using HierMenu's? It's a JS menu with a LOT of functionality in it. There is also an article on adapting it to work with Struts, but I had already adapted the Heir Menu's to dynamically create a menu based on the user's previous chosen preferences, which are stored in the database. When I first started using the JS files for HeirMenu, the code was free, but I believe the site now charges a nominal fee for the code. More info on HeirMenu's can be found at: http://www.webreference.com/dhtml/ an the article on how to modify it to work with Struts can be found at: http://www.webreference.com/programming/java/jspmenus/ Again, I didn't do exactly what the article presented, as I had already modified HierMenu's to work dynamically in JSP's 2 years ago. Hope this info helps. Celeste -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 5:16 AM To: '[EMAIL PROTECTED]' Subject: Struts horizontal menu Importance: High I have many difficulties of presenting the menu which I wish in my application. I already posted a message on this subject, a person sent a example to me but unfortunately someimperfections remain and I am not able to solve them. This example uses the tags Tiles andJavascript functions but unfortunately I have very little knowledge of Javascript. This is why I launch a new call. The problem is as follows we wish to place a menu in the Web pages of our application. The menu should not be posted in a band on the left of all pages but in the header (horizontal position). Example of JSP page: LogoHomeAdmin Titel1 Title2 Help --- | | Table | --- The main items can have sub-items - Home (no sub-item) - Admin - Change password - Tile1 - sub-item1 - sub-item2 - Title2 - Help - about The requirements are the following, - we want to present the menu in a horizontal bar. - spaces between each command (home, admin, etc...) must be regular. If somebody has an example who function I am really very interested. Thanks in advance Sandra -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Map Backed ActionForm using LinkedListHashMap
I believe the problem is that HTTP and consequently ServletRequest.getParameterNames() does not guarantee the order of the returned parameters. This makes it rather difficult to maintain your order. David From: Phase Web and Multimedia [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts User List [EMAIL PROTECTED] Subject: Map Backed ActionForm using LinkedListHashMap Date: Wed, 15 Jan 2003 08:20:36 -0700 I experimented with using a LinkedListHashMap in order to preserve the order of my Map entries from the jsp form into the ActionForm (map backed). It appears that the population of my LinkedListHashMap does not preserve the form order. I assume this is due to how the ActionServlet populates the Maps in the ActionForm. Is support for this due in the future so that the order in which the form is collected is in a predictable order when using a map. It would be nice if reflection could be used to intelligently decide what type of Map is being used and populate it accordingly. Currently my solution is to supply a hidden sort element with a comma delimited list of key names and the order I want them sorted. Then I resort the map into a LinkListHashMap and I am able get the order that I want. Anyways, it all works fine. I am just wondering. Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Need Dynamic Form Beans feature for Struts1.0.2
Can you give me more details, like what jar files, where to get them and how to use them etc... Thanks a lot, Saul -Original Message- From: ashokd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 12:55 AM To: Struts Users Mailing List Subject: Re: Need Dynamic Form Beans feature for Struts1.0.2 Hi, By using 1.0.2 also we can use Dynamic Form. For this we need to add some .zar files. I expermented with 1.0.2 Thnaks Regards, Ashok.D - Original Message - From: Yuan, Saul (TOR-ML) [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 3:03 AM Subject: RE: Need Dynamic Form Beans feature for Struts1.0.2 Thanks, Craig, I got to trust you :-) Saul -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 4:13 PM To: Struts Users Mailing List Subject: Re: Need Dynamic Form Beans feature for Struts1.0.2 On Wed, 8 Jan 2003, Yuan, Saul (TOR-ML) wrote: Date: Wed, 8 Jan 2003 15:55:29 -0500 From: Yuan, Saul (TOR-ML) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Need Dynamic Form Beans feature for Struts1.0.2 Hi, We really need the Dynamic Form Beans feature in Struts1.1, but we're stuck with Struts1.0.2, just wondering what's the best way to add that feature to Struts1.0.2? Or any existing samples out there? (1) Upgrade to 1.1 -- the easy way :-) (2) Go make about 1000 lines worth of code changes to the o.a.s.u.BeanUtils and o.a.s.u.PropertyUtils classes, along with changes to most of the tags, to implement it yourself. In short, it is not really very practical. Thanks in advance, Saul Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Un Subscribe
Please remove me from the mailing list. Thanks. Amit. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Define tile definition
I have added the following to struts-config.xml plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml / set-property property=moduleAware value=true / set-property property=definitions-parser-validate value=true / /plug-in I have got the tiles-defs.xml in the web-inf directory which got the following lines: definition name=mainLayout path=/layout/classicLayout.jsp put name=title value=Tiles Library Documentation / put name=header value=/common/header.jsp / put name=menu value=/common/menu.jsp / put name=footer value=/common/footer.jsp / put name=body value=/common/body.jsp / /definition i have got an index.jsp which got the following line: tiles:insert definition=mainLayout flush=true/ but it gave me error saying: Can't get definitions factory from context. Did i use the definition correctly? Is it definition=mainLayout that i should used? if i change the index.jsp to contains the following. it works fine tiles:insert page=/layout/classicLayout.jsp tiles:put name=title value=Tiles Library Documentation / tiles:put name=header value=/common/header.jsp / tiles:put name=menu value=/common/menu.jsp / tiles:put name=footer value=/common/footer.jsp / tiles:put name=body value=/common/body.jsp / /tiles:insert Anyone got any ideas where i went wrong? Thanks in advance _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [Gurus Invited] Why not an Action Based Validator?
Wow! I am glad to hear I am not alone ;-) For a second there I thought I was being one of those obstinate fools who can't see the forest for the trees. :-)) Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 8:19 AM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: [Gurus Invited] Why not an Action Based Validator? One of my colleagues and I had this very same debate last summer. I was putting all my validation in the Action class and he was insisting that the Struts spec required validation be placed in the Action form. We never did agree and continued as we were. Mark -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 5:24 AM +1 -Original Message- From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 15 January 2003 18:30 But that is my whole point. Complex validation or not. Why don't we handle both types of validation in the SAME class. I don't want to beat this into the ground. But, it just seems organizationaly better in my mind to handle validation on the Action level. With all the great minds on this project I am certain that there is a good design reason for placing validate in the ActionForm. I am just curious what it is. Thanks, Brandon Goodin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Un Subscribe
Sure, what's your password? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 9:21 AM To: [EMAIL PROTECTED] Subject: Un Subscribe Please remove me from the mailing list. Thanks. Amit. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts horizontal menu
Checkout struts-menu at http://sourceforge.net/forum/forum.php?forum_id=241446 - I recently added functionality for coolmenus4 and dhtml list menus like this one: http://www.gazingus.org/html/menuExpandable.html For more information on improvements I made, check out: http://www.raibledesigns.com/page/rd/20021207#struts_menu_improved The demo doesn't appear to be working right now - I'm at work and can't telnet out of the office to fix - sorry. Matt -Original Message- From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 8:14 AM To: 'Struts Users Mailing List' Subject: RE: Struts horizontal menu Sandra, Have you looked at using HierMenu's? It's a JS menu with a LOT of functionality in it. There is also an article on adapting it to work with Struts, but I had already adapted the Heir Menu's to dynamically create a menu based on the user's previous chosen preferences, which are stored in the database. When I first started using the JS files for HeirMenu, the code was free, but I believe the site now charges a nominal fee for the code. More info on HeirMenu's can be found at: http://www.webreference.com/dhtml/ an the article on how to modify it to work with Struts can be found at: http://www.webreference.com/programming/java/jspmenus/ Again, I didn't do exactly what the article presented, as I had already modified HierMenu's to work dynamically in JSP's 2 years ago. Hope this info helps. Celeste -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 5:16 AM To: '[EMAIL PROTECTED]' Subject: Struts horizontal menu Importance: High I have many difficulties of presenting the menu which I wish in my application. I already posted a message on this subject, a person sent a example to me but unfortunately someimperfections remain and I am not able to solve them. This example uses the tags Tiles andJavascript functions but unfortunately I have very little knowledge of Javascript. This is why I launch a new call. The problem is as follows we wish to place a menu in the Web pages of our application. The menu should not be posted in a band on the left of all pages but in the header (horizontal position). Example of JSP page: LogoHomeAdmin Titel1 Title2 Help --- | | Table | --- The main items can have sub-items - Home (no sub-item) - Admin - Change password - Tile1 - sub-item1 - sub-item2 - Title2 - Help - about The requirements are the following, - we want to present the menu in a horizontal bar. - spaces between each command (home, admin, etc...) must be regular. If somebody has an example who function I am really very interested. Thanks in advance Sandra -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Map Backed ActionForm using LinkedListHashMap
Actually, the order is preserved in the request according to the order they appear in you html page. Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 8:15 AM To: [EMAIL PROTECTED] Subject: Re: Map Backed ActionForm using LinkedListHashMap I believe the problem is that HTTP and consequently ServletRequest.getParameterNames() does not guarantee the order of the returned parameters. This makes it rather difficult to maintain your order. David From: Phase Web and Multimedia [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts User List [EMAIL PROTECTED] Subject: Map Backed ActionForm using LinkedListHashMap Date: Wed, 15 Jan 2003 08:20:36 -0700 I experimented with using a LinkedListHashMap in order to preserve the order of my Map entries from the jsp form into the ActionForm (map backed). It appears that the population of my LinkedListHashMap does not preserve the form order. I assume this is due to how the ActionServlet populates the Maps in the ActionForm. Is support for this due in the future so that the order in which the form is collected is in a predictable order when using a map. It would be nice if reflection could be used to intelligently decide what type of Map is being used and populate it accordingly. Currently my solution is to supply a hidden sort element with a comma delimited list of key names and the order I want them sorted. Then I resort the map into a LinkListHashMap and I am able get the order that I want. Anyways, it all works fine. I am just wondering. Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts horizontal menu
One problem with HeirMenus is they now charge for it - doh! http://www.webreference.com/cgi-bin/hier/index.cgi CoolMenus offers the same functionality, and it's free: http://www.dhtmlcentral.com/projects/coolmenus/?m=10 -Original Message- From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 8:14 AM To: 'Struts Users Mailing List' Subject: RE: Struts horizontal menu Sandra, Have you looked at using HierMenu's? It's a JS menu with a LOT of functionality in it. There is also an article on adapting it to work with Struts, but I had already adapted the Heir Menu's to dynamically create a menu based on the user's previous chosen preferences, which are stored in the database. When I first started using the JS files for HeirMenu, the code was free, but I believe the site now charges a nominal fee for the code. More info on HeirMenu's can be found at: http://www.webreference.com/dhtml/ an the article on how to modify it to work with Struts can be found at: http://www.webreference.com/programming/java/jspmenus/ Again, I didn't do exactly what the article presented, as I had already modified HierMenu's to work dynamically in JSP's 2 years ago. Hope this info helps. Celeste -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 5:16 AM To: '[EMAIL PROTECTED]' Subject: Struts horizontal menu Importance: High I have many difficulties of presenting the menu which I wish in my application. I already posted a message on this subject, a person sent a example to me but unfortunately someimperfections remain and I am not able to solve them. This example uses the tags Tiles andJavascript functions but unfortunately I have very little knowledge of Javascript. This is why I launch a new call. The problem is as follows we wish to place a menu in the Web pages of our application. The menu should not be posted in a band on the left of all pages but in the header (horizontal position). Example of JSP page: LogoHomeAdmin Titel1 Title2 Help --- | | Table | --- The main items can have sub-items - Home (no sub-item) - Admin - Change password - Tile1 - sub-item1 - sub-item2 - Title2 - Help - about The requirements are the following, - we want to present the menu in a horizontal bar. - spaces between each command (home, admin, etc...) must be regular. If somebody has an example who function I am really very interested. Thanks in advance Sandra -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Reverse Validation
I've seen the html:errors property=propertyName/ tag, and I'm hoping I can use it. I have a page that is a web-version of an Excel workbook, with 3 spreadsheets. I am retrieving, from a database, a parent object with ArrayLists of 4 children. The first three children are worksheets per se, and the 4th child is an ArrayList of validation errors associated with all sheets. I want to loop though all the validation errors, and match them up with child properties, so I can add a html:errors property=.../ next to each input ... field. Is this possible? I'm looking for something like new ActionError(property, message). Thanks, Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RequiredIf Example
Can someone post the necessary code to show a working requiredif validation. I can seem to get this going per my prior post (attached). Hello all, I have a field that I wish to validate based on the results of another field. The other field 'useSecure' returns a string of true or false from 2 radio buttons. I wish to validate a field called 'sslKeyStore' if useSecure = true. If it returns false no validation. I have tried the following... but it still gets called. field property=sslKeyStore depends=requiredif,exists arg0 key=appserver.sslkeystore.displayname/ var var-namefield/var-name var-valueuseSecure/var-value /var var var-namefield-test/var-name var-valueEQUAL/var-value /var var var-namefield-value/var-name var-valuetrue/var-value /var /field I have also tried the following... field property=sslKeyStore depends=requiredif,exists arg0 key=appserver.sslkeystore.displayname/ var var-namefield[0]/var-name var-valueuseSecure/var-value /var var var-namefield-test[0]/var-name var-valueEQUAL/var-value /var var var-namefield-value[0]/var-name var-valuetrue/var-value /var /field I am unclear as to what field-indexed means, so I tried it to, with same results as above. Any ideas why this isnt working? Thanks! Jeremy Weber [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Jeremy Weber [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Un Subscribe
No. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 10:21 AM Please remove me from the mailing list. Thanks. Amit. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Map Backed ActionForm using LinkedListHashMap
2003. január 15. 16:41 dátummal Phase Web and Multimedia ezt írtad: Actually, the order is preserved in the request according to the order they appear in you html page. I would not depend on this because the spec says that the order is indefinit. It might vary depending on the browsers eg. Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Un Subscribe
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] Please remove me from the mailing list. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Map Backed ActionForm using LinkedListHashMap
Absolutely...form objects are returned as an array which elements coincide with the form element order. Think of how you use JavaScript to access the array of objects at the page level. Mark -Original Message- From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 10:41 AM Actually, the order is preserved in the request according to the order they appear in you html page. Brandon Goodin -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 8:15 AM I believe the problem is that HTTP and consequently ServletRequest.getParameterNames() does not guarantee the order of the returned parameters. This makes it rather difficult to maintain your order. David -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Un Subscribe
Please remove me from the mailing list. Thanks. Amit. Enter your credit card information here your request will be processed as soon as possible :-) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to Access an Application Scope object in a Struts Action Class
Mark, I think I was working too many hours yesterday, and my brain shut off. Thanks!!! Celeste -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 6:58 PM To: 'Struts Users Mailing List' Subject: RE: How to Access an Application Scope object in a Struts Action Class That's because a JSP application scope is a servlet context scope object. Use this instead: ServletContext context = this.getServlet().getServletContext(); Map monitor = ( Hashtable) context.getAttribute( monitor ); Mark -Original Message- From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 7:41 PM I'm relatively new to Struts, and I am working in Struts 1.02 (since we are not comfortable using a beta version of struts on a new project), and I am stuck on a simple problem. If I create a Hashtable bean object called monitor, with application scope, in my Welcome page using jsp:useBean id=monitor scope=application class=java.util.Hashtable/ how do I access this application scope object in all of my Struts action classes? I've tried using Hashtable monitor = (Hashtable)session.getAttribute(Constants.MONITOR_KEY); if (monitor != null) { -do something--- } and I get a null pointer error, as seen from my error log below: 01/14 18:30:47 error java.lang.NullPointerException at com.NYTC.struts.LogonAction.perform(LogonAction.java:144) where line 144 is the if (monitor != null) statement. My objective in using the monitor bean is to keep track of every user who logs in, and if they still have an active session, recover any data and then invalidate the old session, and create a new session for them. We were doing this in our previous web apps, but we were using a Model 1 approach, so I am having some trouble converting this concept to a Model 2 approach. In our Model 1 apps, we just used the monitor to keep track of user's sessions, and invalidate any active session still on server as follows: if (monitor.containsKey(user)){ HttpSession oldSession = (HttpSession)monitor.get(user); System.out.println(User already has an active session in memory + oldSession.getId()); ---retrieve old data in between here and then invalidate old session-- oldSession.invalidate(); System.out.println(Got rid of the old session); } else { System.out.println(No old session was found); } monitor.put(user, session); How do I accomplish this using a Model 2 approach?? Thanks in advance for any insight/advice Celeste -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
S in Action Vs S Kick Start [Was: Can anybody make a recommendation between Struts in Action and Struts Kick Start]
But Struts Kick Start is going for reprint in February and they are making changes too... Not the right time to buy this one now... - Original Message - From: Durham David Cntr 805CSS/SCBE [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Puneet Agarwal [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 3:11 PM Subject: RE: Can anybody make a recommendation between Struts in Action and Struts Kick Start I've read Struts in Action. It seems to me that it is dummied a bit, but still a very good book. I don't know about Struts Kick Start. Has anyone read Programming Jakarta Struts from O'Reilly? -Original Message- From: Puneet Agarwal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 8:51 AM To: Struts Users Mailing List Subject: Re: Can anybody make a recommendation between Struts in Action and Struts Kick Start Even I was into the same dilemma which one to buy... I then read a lot of reviews and decided that I want Struts in Action first, and I have ordered it from Amazon.com, am waiting for the book now a days..it will take almost 15 days for me to receive the book. I chose this one only because somewhere I read that this book consolidates the general problems put-up in this forum. Regards Puneet - Original Message - From: Denis Wang [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 1:42 PM Subject: Can anybody make a recommendation between Struts in Action and Struts Kick Start Thanks a lot! Denis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: A form with a List
Thanks again. But my doubt is not how to use iterate tag. It's how to model the form that store the list of professionals (or anything else). Thanks, Joao Paulo. Sri Sankaran [EMAIL PROTECTED] wrote:Look at the file logic-iterate.jsp in the struts-exercise-taglib application that ships with Struts. It demonstrates several uses of . It would also help to look at the documentation of tag at http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate. Sri -Original Message- From: João Paulo Batistella [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 9:51 AM To: Struts Users Mailing List Subject: RE: A form with a List Thanks. Professionals is only an example. I tried to say is that I have not only one professional (or something else) but many. As you said, I understand that I can have an attribute that can store these professionals. Can you give me a simple example? This attribute is an array of java.lang.Object? Thanks, Joao Paulo. Sri Sankaran wrote:I don't know what you mean by professionals. However, treating it as some java.lang.Object you can easily accomplish this with a form-bean that has a List of professionals and display the contents of the list in your JSP using a . Am I missing something? Sri -Original Message- From: João Paulo Batistella [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 8:34 AM To: [EMAIL PROTECTED] Subject: A form with a List Hi! I have the following situation: One form that have 20 lines of professionals. The problem is how to get the 20 professionals using only one form? Can I have a collection (or List) as an attribute of a Form? The number 20 is dynamic. It could bem 20, 30 or more. Thanks, Joao Paulo. - Busca Yahoo! O melhor lugar para encontrar tudo o que você procura na Internet -- To unsubscribe, e-mail: For additional commands, e-mail: - Busca Yahoo! O melhor lugar para encontrar tudo o que você procura na Internet -- To unsubscribe, e-mail: For additional commands, e-mail: - Busca Yahoo! O melhor lugar para encontrar tudo o que você procura na Internet
RE: Map Backed ActionForm using LinkedListHashMap
true. My sort works great so I'll just stick with that. P.S. Gemes! you are question answering machine today :-) Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 8:37 AM To: Struts Users Mailing List Subject: Re: Map Backed ActionForm using LinkedListHashMap 2003. január 15. 16:41 dátummal Phase Web and Multimedia ezt írtad: Actually, the order is preserved in the request according to the order they appear in you html page. I would not depend on this because the spec says that the order is indefinit. It might vary depending on the browsers eg. Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: S in Action Vs S Kick Start [Was: Can anybody make a recommendation between Struts in Action and Struts Kick Start]
Read it? I helped edit it - see the acknowledgements at the beginning of the book. It's the best of the lot. Mark - Original Message - From: Durham David Cntr 805CSS/SCBE [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 3:11 PM Has anyone read Programming Jakarta Struts from O'Reilly? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Un Subscribe
Please sign your emails with Flamebait. Thanks. Dave. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 9:21 AM To: [EMAIL PROTECTED] Subject: Un Subscribe Please remove me from the mailing list. Thanks. Amit. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: S in Action Vs S Kick Start [Was: Can anybody make a recommendation between Struts in Action and Struts Kick Start]
I use it. It's really comprehensive. When I evaluated the available books, it seemed from far the best. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 10:48 AM To: 'Struts Users Mailing List' Subject: RE: S in Action Vs S Kick Start [Was: Can anybody make a recommendation between Struts in Action and Struts Kick Start] Read it? I helped edit it - see the acknowledgements at the beginning of the book. It's the best of the lot. Mark - Original Message - From: Durham David Cntr 805CSS/SCBE [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 3:11 PM Has anyone read Programming Jakarta Struts from O'Reilly? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Un Subscribe
You can check out any time you like, but you can never leave... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Map Backed ActionForm using LinkedListHashMap
2003. január 15. 16:56 dátummal Phase Web and Multimedia ezt írtad: true. My sort works great so I'll just stick with that. I reckon a case in which I was sure that only a few browser types will access a page. In this situation I had a few fields with the same property. They were populated into an array in the ActionForm. And I needed proper order, and these browsers kept me it. What if you provide the same property as well, this way the input will be put into an array on the ActionForm in the proper order, and you can do anything you like! P.S. Gemes! you are question answering machine today :-) Thou it seems that we could just hardly agree. :) Tib Ps: good-bye for now! I'm going home. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Extends HttpJspPage
Hi all, I've a bunch of variables such as locale, timezone, userContainer, and etc. I want to make them available to all jsp pages. Right now they're located in the global.jsp page and I included them on every single page that needs these variables. I hate doing this and I wish somehow I can extend the httpJspPage or some other techniques to make these variables available without including them...Any ideas? Thanks, Hai _ Introducing the all new and improved continental.com. With a totally new personalized design, it's the best place to go. Before you go. Continental Airlines. Work Hard. Fly Right. http://www.continental.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]