Re: [ANN] Starting with Struts2 Book
Hmmm... I registered but when I try to download the book I get a window that tells me I'm trying to access a resource...(can't read anymore cause the window is not resizable) message. On 6/1/07, Volkan OZYILMAZ [EMAIL PROTECTED] wrote: Thank you for this very useful and public ebook :) On 5/31/07, James Mitchell [EMAIL PROTECTED] wrote: Will do! Hope you can make it. -- James Mitchell On May 31, 2007, at 11:41 AM, Ian Roughley wrote: No, no paypal account. You can buy me a beer if I make it to apachecon. James Mitchell wrote: Ian, Nice job! I don't need the paper copy, but I'd like you to get the full price of the book. Do you have a Paypal account that I could donate some funds to? -- James Mitchell On May 29, 2007, at 12:13 PM, Henri Yandell wrote: The registration system at InfoQ is pretty slow; so I downloaded directly from lulu.com. Great work Ian, I hope it becomes the 'Thinking in Struts2' and is a big success. Hen On 5/25/07, Ted Husted [EMAIL PROTECTED] wrote: Is anyone else having trouble logging into the InfoQ site? On 5/24/07, Ian Roughley [EMAIL PROTECTED] wrote: I am pleased to announce the release of the mini-book Starting with Struts2 from InfoQ.com. Starting with Struts2 is aimed at those who are new to Strut2, and those familiar with MVC frameworks but unfamiliar with Struts2. It provides everything you need to know to get up and running using Struts2, and can be used as a starting point to explore the more intricate features of the Struts2 framework. Topics include architecture and configuration, how to implementing actions, and supporting infrastructure such as validation and internationalization. Also included are productivity tips, providing a practical introduction on how best to use the framework. The eBook can be found at http://www.infoq.com/minibooks/ starting-struts2 /Ian --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Volkan OZYILMAZ Volko http://www.volko.biz --
dd-MON-yyyy date format validation
Hi all, I'm developing a jsp form that has a date field. I want to get the date in dd-MON- from the user. I can't validate the format using struts validation framework. Can any one help me on this? Thank you, Ambaris Mohanty
facade stored in Session
Hello every one: I am trying to access my business layer from Actions. However, I need to hold a reference to the business layer facade and access it from any Actions classes. I am saving the reference to servicesFacade in a session and retrieving it in the Action. I am having no problem with this, but I don't know if this is the proper way to do it. Is there other alternatives ? I need an advice. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dd-MON-yyyy date format validation
You will have to write your own custom validator or implement the validate() method on the form. Custom validator: http://www.onjava.com/pub/a/onjava/2002/12/11/jakartastruts.html?page=last Ambaris Mohanty wrote: Hi all, I'm developing a jsp form that has a date field. I want to get the date in dd-MON- from the user. I can't validate the format using struts validation framework. Can any one help me on this? Thank you, Ambaris Mohanty - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dd-MON-yyyy date format validation
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ambaris, Ambaris Mohanty wrote: I'm developing a jsp form that has a date field. I want to get the date in dd-MON- from the user. I can't validate the format using struts validation framework. Why not? http://struts.apache.org/1.3.8/faqs/validator.html [See Standard Built In Validations section] If you are using Struts 2, then you should say so. If Struts 2's date validator does not allow the user to specify the date format, then a significant loss of functionality has occurred. :( - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGYbGc9CaO5/Lv0PARAqmaAJwKkz0qlDRgnc926wDtpVvkjCJOxQCeMz5f x2ErqsjxBGFGHfIN/hrocTk= =ONzX -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: url validation
I am trying to validate a url. I have the following in my validation.xml file form name=LinksInputForm field property=url1 depends =url arg0 key=label.url / var var-nameallowallschemes /var-name var-valuetrue/var-value /var var var-nameallow2slashes /var-name var-valuetrue/var-value /var var var-nameschemes/var-name var-valuehttp,https,telnet,file/var-value /var var var-namenofragments/var-name var-valuetrue/var-value /var /field /form However when I use a url like http://www.apple.com, it fails. What am I doing wrong? Thanks, -Joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: facade stored in Session
It may be OK, but my experience tells me its atypical... the question I would ask is why you need to cache the reference to the facade in the first place? Typically you get an instance of it, either a new instance or a pooled instance from a JNDI lookup or some factory or something along those lines for each use (usually one per request)... is there something about the design of your facade that makes this not possible, or are you thinking of performance reasons? Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) and JavaScript, DOM Scripting and Ajax Projects (2007, Apress, ISBN 1-59059-816-4) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! Mansour wrote: Hello every one: I am trying to access my business layer from Actions. However, I need to hold a reference to the business layer facade and access it from any Actions classes. I am saving the reference to servicesFacade in a session and retrieving it in the Action. I am having no problem with this, but I don't know if this is the proper way to do it. Is there other alternatives ? I need an advice. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Starting with Struts2 Book
Just finished reading this.., thanks Ian.., good job. - Original Message - From: Caine Lai [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, June 02, 2007 6:40 AM Subject: Re: [ANN] Starting with Struts2 Book Hmmm... I registered but when I try to download the book I get a window that tells me I'm trying to access a resource...(can't read anymore cause the window is not resizable) message. On 6/1/07, Volkan OZYILMAZ [EMAIL PROTECTED] wrote: Thank you for this very useful and public ebook :) On 5/31/07, James Mitchell [EMAIL PROTECTED] wrote: Will do! Hope you can make it. -- James Mitchell On May 31, 2007, at 11:41 AM, Ian Roughley wrote: No, no paypal account. You can buy me a beer if I make it to apachecon. James Mitchell wrote: Ian, Nice job! I don't need the paper copy, but I'd like you to get the full price of the book. Do you have a Paypal account that I could donate some funds to? -- James Mitchell On May 29, 2007, at 12:13 PM, Henri Yandell wrote: The registration system at InfoQ is pretty slow; so I downloaded directly from lulu.com. Great work Ian, I hope it becomes the 'Thinking in Struts2' and is a big success. Hen On 5/25/07, Ted Husted [EMAIL PROTECTED] wrote: Is anyone else having trouble logging into the InfoQ site? On 5/24/07, Ian Roughley [EMAIL PROTECTED] wrote: I am pleased to announce the release of the mini-book Starting with Struts2 from InfoQ.com. Starting with Struts2 is aimed at those who are new to Strut2, and those familiar with MVC frameworks but unfamiliar with Struts2. It provides everything you need to know to get up and running using Struts2, and can be used as a starting point to explore the more intricate features of the Struts2 framework. Topics include architecture and configuration, how to implementing actions, and supporting infrastructure such as validation and internationalization. Also included are productivity tips, providing a practical introduction on how best to use the framework. The eBook can be found at http://www.infoq.com/minibooks/ starting-struts2 /Ian --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Volkan OZYILMAZ Volko http://www.volko.biz -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How does one use lazy loading in Struts 2 with container managed persistence?
No one? This seems like a major design flaw in Struts 2, if there is no way to use lazy loading in Struts 2 using JPA. I've read something online that describes it may be possible to write a custom interceptor that can scan for annotations and inject the persistence context into a struts action. But without framework support for JPA (built in), how can Struts 2 ever be taken seriously? Isn't EJB3 and JPA the current standard spec? I'm not at all interested in using Spring either. And quite fankly I shouldn't be forced to use Spring purely for the Open Session in View pattern. Thoughts? On 6/1/07, Caine Lai [EMAIL PROTECTED] wrote: I'm using EJB3 stateless session beans/JPA/JTA to manage my data access. But I can't figure out how one would use lazy loading in this scenario since any transaction opened in the EJB layer will already be committed prior to rendering the view. Any tips? I'm familiar with Open Session in View when using hibernate, but it's not quite the same when I'm using container managed transactions and dependency injection in EJB3. Or is it? Would I still open a hibernate session within the view and close it after the view is rendered in this scenario? Thanks for any pointers.
Re: How does one use lazy loading in Struts 2 with container managed persistence?
Hi Caine, I use JPA. I place the EntityManagerFactory into the application context so it can be accessed by an S2 interceptor. The S2 interceptor creates an EntityManager for each request as per the open session in view pattern and so lazy loading can be used where appropriate. This doesn't qualify as CPM though which is what you asked for. I haven't tried using S2 with an EJB container yet. There's no need to use spring. cheers, Jeromy Evans Caine Lai wrote: No one? This seems like a major design flaw in Struts 2, if there is no way to use lazy loading in Struts 2 using JPA. I've read something online that describes it may be possible to write a custom interceptor that can scan for annotations and inject the persistence context into a struts action. But without framework support for JPA (built in), how can Struts 2 ever be taken seriously? Isn't EJB3 and JPA the current standard spec? I'm not at all interested in using Spring either. And quite fankly I shouldn't be forced to use Spring purely for the Open Session in View pattern. Thoughts? On 6/1/07, Caine Lai [EMAIL PROTECTED] wrote: I'm using EJB3 stateless session beans/JPA/JTA to manage my data access. But I can't figure out how one would use lazy loading in this scenario since any transaction opened in the EJB layer will already be committed prior to rendering the view. Any tips? I'm familiar with Open Session in View when using hibernate, but it's not quite the same when I'm using container managed transactions and dependency injection in EJB3. Or is it? Would I still open a hibernate session within the view and close it after the view is rendered in this scenario? Thanks for any pointers. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.7 - Release Date: 2/06/2007 12:00 AM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How does one use lazy loading in Struts 2 with container managed persistence?
Hi Jeromy, Thanks for your response. It sounds like your solution works, but it doesn't seem like this would integrate with container managed persistence very well. It's strange this is so difficult to achieve in the next generation struts. I don't know why JPA/EJB3 is an afterthought. I really don't want to abandon Struts 2 at this point since it was exactly what I was looking for except for this one very large issue. I'd still be very interested in hearing from anyone that has thought about or solved this problem of using Struts 2 in a managed environment. Thanks, Caine On 6/2/07, Jeromy Evans [EMAIL PROTECTED] wrote: Hi Caine, I use JPA. I place the EntityManagerFactory into the application context so it can be accessed by an S2 interceptor. The S2 interceptor creates an EntityManager for each request as per the open session in view pattern and so lazy loading can be used where appropriate. This doesn't qualify as CPM though which is what you asked for. I haven't tried using S2 with an EJB container yet. There's no need to use spring. cheers, Jeromy Evans Caine Lai wrote: No one? This seems like a major design flaw in Struts 2, if there is no way to use lazy loading in Struts 2 using JPA. I've read something online that describes it may be possible to write a custom interceptor that can scan for annotations and inject the persistence context into a struts action. But without framework support for JPA (built in), how can Struts 2 ever be taken seriously? Isn't EJB3 and JPA the current standard spec? I'm not at all interested in using Spring either. And quite fankly I shouldn't be forced to use Spring purely for the Open Session in View pattern. Thoughts? On 6/1/07, Caine Lai [EMAIL PROTECTED] wrote: I'm using EJB3 stateless session beans/JPA/JTA to manage my data access. But I can't figure out how one would use lazy loading in this scenario since any transaction opened in the EJB layer will already be committed prior to rendering the view. Any tips? I'm familiar with Open Session in View when using hibernate, but it's not quite the same when I'm using container managed transactions and dependency injection in EJB3. Or is it? Would I still open a hibernate session within the view and close it after the view is rendered in this scenario? Thanks for any pointers. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.7 - Release Date: 2/06/2007 12:00 AM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception-tag bean:size must be empty, but is not
On 6/2/07, vikas rao [EMAIL PROTECTED] wrote: bean:size id=size name=searchForm property=results I get this error: org.apache.jasper.JasperException: /search.jsp(36,0) According to TLD, tag bean:size must be empty, but is not. The tag isn't closed. If you're using a validating editor, it should have complained that there was no /bean:size tag. Try: bean:size id=size name=searchForm property=results / Note the / at the end. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]