Re: Exception-tag bean:size must be empty, but is not

2007-06-02 Thread Wendy Smoak
On 6/2/07, vikas rao <[EMAIL PROTECTED]> wrote: 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 tag. T

Re: How does one use lazy loading in Struts 2 with container managed persistence?

2007-06-02 Thread Caine Lai
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 re

Re: How does one use lazy loading in Struts 2 with container managed persistence?

2007-06-02 Thread Jeromy Evans
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 qu

Re: How does one use lazy loading in Struts 2 with container managed persistence?

2007-06-02 Thread Caine Lai
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.

Exception-tag bean:size must be empty, but is not

2007-06-02 Thread vikas rao
Hi everyone, this is a part of my search.jsp: logic:present name="searchForm" property="results"> No Employees Found I get this error: org.apache.jasper.JasperException: /search.jsp(36,0) According to TLD, tag bean:size must be empty, but is not. Is there a conflict with the "size" use

Re: [ANN] "Starting with Struts2" Book

2007-06-02 Thread Nuwan Chandrasoma
Just finished reading this.., thanks Ian.., good job. - Original Message - From: "Caine Lai" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" 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

Re: facade stored in Session

2007-06-02 Thread Frank W. Zammetti
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

RE: url validation

2007-06-02 Thread Joe Yuen
I am trying to validate a url. I have the following in my validation.xml file allowallschemes true allow2slashes true schemes http,https,telnet,file nofragments true However when I use a url like http://www.apple.com, it fails. What am I doing wrong? T

Re: dd-MON-yyyy date format validation

2007-06-02 Thread Christopher Schultz
-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/v

Re: dd-MON-yyyy date format validation

2007-06-02 Thread Jeremiah Johnson
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 dat

facade stored in Session

2007-06-02 Thread Mansour
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

dd-MON-yyyy date format validation

2007-06-02 Thread Ambaris Mohanty
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