Re: [ANN] "Starting with Struts2" Book

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

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

2007-06-01 Thread Caine Lai
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"

Re: Turning JSPs into Excel files

2007-06-01 Thread Jeromy Evans
Pierre Goupil wrote: Do you mean that the only way is to generate a file by hand ? No help from Struts ? Jasper reports [1] may suit you. The S2 jasper reports plugin gives you a little bit of help, but not really. There's no 'automatically make this JSP an XLS file' solution. If you're ju

Re: Turning JSPs into Excel files

2007-06-01 Thread Pierre Goupil
Do you mean that the only way is to generate a file by hand ? No help from Struts ? Pierre -- "Mon horizon était désormais les pétales courbés, Ma nouvelle demeure resplendissait de flèches d'herbes folles Et d'oreillers de pollens odorants." (Naïmah, le philosophe Fémereif)

Re: Turning JSPs into Excel files

2007-06-01 Thread Martin Gainty
You will need to create a Microsoft Compound Document Please review the POI website for development and operation characteristics at http://jakarta.apache.org/poi/ Bon Chance! Martin-- This email message and any files transmitted with it contain confidential information intended only for the pe

Turning JSPs into Excel files

2007-06-01 Thread Pierre Goupil
Hello, all ! I have a webapp with different views managed by JSP. Now, I need to turn some into Excel files. Is there an handy way to do so in Struts ? Struts 1.3, Tomcat 5.5 & Java 5 are used. Cheers, Pierre -- "Mon horizon était désormais les pétales courbés, Ma nouvelle demeure resplendi

Re: Re: xhtml problem

2007-06-01 Thread Ray Clough
That is absolutely my point. The jstl tags work seamlessly with the jsp el, and allow very elegant solutions to some of the required tag structural problems associated with using jsp-document format. But the s2-tags don't play very smoothly in some situations, which makes them much less useful

Re: xhtml problem

2007-06-01 Thread Laurie Harper
That's a quite different issue from DTD validation. Yes, when you use XML-format JSP documents, they must be authored in well-formed XML. This isn't a Struts tags issue; the same would be true for any JSP custom action (tag) from any source. For the case you describe below I'd probably try a c

Re: xhtml problem

2007-06-01 Thread Ray Clough
That is exactly how I do it now, using the xhtml1-transitional dtd. But when the container assembles the page, it is not valid xhtml, because of the nested s2-tag elements. For example, the s2 documentation uses this example to dynamically change the css class of a tr element: oddeven"> Aside fr

Using a tag as an attribute value

2007-06-01 Thread yitzle
I got a linkIf.tag file that's working well. It checks the test and either creates a link the the url with the body as the link content (ie < a href="<%=url%>" >) or just shows the body sans link. I want to set the test attribute to be , and that's where I run into trouble. I tried:

Re: Struts 1.2.9 and UNICODE issue on form submittal

2007-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam, Adam Gordon wrote: > After some digging, there's URIEncoding attribute on the Connector > element that if not specified defaults to ISO-8859-1 when attempting to > decode URI bytes. I suspect setting this to UTF-8, in addition to the > other c

Re: [S2] JSTL Advice Experience

2007-06-01 Thread John M Flinchbaugh
On Sat, Jun 02, 2007 at 12:41:28AM +1000, Zoran Avtarovski wrote: > I was wondering what people's experience has been with using JSTL as > opposed > to OGNL with regards to performance. I saw the Wiki entry for the > ActionPropertyExportInterceptor but I'm concerned it may have to big a > performa

Re: how to check if page has been displayed (rendered) by the browser

2007-06-01 Thread Pierre Goupil
Hello ! 2007/5/31, Raghupathy, Gurumoorthy <[EMAIL PROTECTED]>: Put your javascript at the last ... so you are sure that my the time your javascript is being executed your html is rendered Unfortunately, this doesn't work this way : you have no guarantee that your page has finished *renderin

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-01 Thread panpan
Hi Dave, I'm doing migration from S1 to S2. S1 and S2 should work together peacefully. I add those required configuration in web.xml and jars in the classpath. I've done other pages sucessfully with mixed S1 tag and S2 tag. Don't understand this one. I found the problem is that org.apache.struts

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-01 Thread Dave Newton
--- panpan <[EMAIL PROTECTED]> wrote: > This page is originally served through struts1. > During the migration to struts 2, I need to add a new > feature to this page using struts 2 tag to > invoke the struts 2 action. Well... if the page isn't being served through the S2 filter I'm not sure which

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-01 Thread panpan
Hi Dave, Thanks for your reply and sorry for the confusion! This page is originally served through struts1. During the migration to struts 2, I need to add a new feature to this page using struts 2 tag to invoke the struts 2 action. Please help me! pp Dave Newton-4 wrote: > > I'm confused.

RE: Wierd behaviour with redirect, result, and store interceptor

2007-06-01 Thread Al Sutton
I've got formatting for messages and errors separately. I'd like to keep errors in the error formatting and so use addActionError to add them. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 01 June 2007 12:01 To: Struts Users Mailing List Subject: RE: Wierd behaviour

Re: XML error reading definitions

2007-06-01 Thread jondcruz
No ideas? No one has seen this exception? jondcruz wrote: > > Hello, > > I've posted this question on the Webwork forums, and thought that maybe > the Struts2 community could help. I've integrated Tiles into my WW > application, and am seeing an error that I can't seem to track down. I've

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-01 Thread Dave Newton
I'm confused. --- panpan <[EMAIL PROTECTED]> wrote: > This logon.jsp page doesn't use sitemesh and I only > add one struts2 tag line . I don't > know what happend. Is the page being served through S2? d. __

NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-01 Thread panpan
I have this logon.jsp page which was developed from struts. I got this new assigment to add struts2 tag to it. I've migrated other mixed pages with sitemesh successfully. This logon.jsp page doesn't use sitemesh and I only add one struts2 tag line . I don't know what happend. The below is the exec

Re: Struts 1.2.9 and UNICODE issue on form submittal

2007-06-01 Thread Adam Gordon
You know, I had my doubts about whether or not Struts was really actually doing anything with POST request parameters other than just reading them. It did seem to me that it was more of an issue at the Tomcat level since Tomcat is the one serving up the parameters. After some digging, there's

Re: Creating actions without context

2007-06-01 Thread Musachy Barroso
The url has an 'includeContext' param: http://struts.apache.org/2.x/docs/url.html As for the form, if it finds the action, it will append the context. I'm not sure how you could avoid that one. You can always overwrite the form template. Or use the form on the simple theme(not good as you would

Re: [S2] JSTL Advice Experience

2007-06-01 Thread Niall Pemberton
On 6/1/07, Zoran Avtarovski <[EMAIL PROTECTED]> wrote: I was wondering what people's experience has been with using JSTL as opposed to OGNL with regards to performance. I saw the Wiki entry for the ActionPropertyExportInterceptor but I'm concerned it may have to big a performance hit, essentially

Re: Creating actions without context

2007-06-01 Thread Lucas Garcia
Hi Musachy, Yes, the url must be a "wrong" URL. I have an Apache web server and a tomcat colaborating together. My application context is /myapp/, but I don't want that the users can see the context (and I don't want to deploy the application in / because I'll create more web applications). I ha

[S2] JSTL Advice Experience

2007-06-01 Thread Zoran Avtarovski
I was wondering what people's experience has been with using JSTL as opposed to OGNL with regards to performance. I saw the Wiki entry for the ActionPropertyExportInterceptor but I'm concerned it may have to big a performance hit, essentially copying the value stack elements to the request scope.

Re: Creating actions without context

2007-06-01 Thread Musachy Barroso
In that case the form would be submitted the wrong URL right? Can you give some more details on why you need this? regards musachy On 6/1/07, Lucas Garcia <[EMAIL PROTECTED]> wrote: Hi, I'm using s:url and s:form tags to build url's and form's. In a case, I want to use s:form and I don't want

Re: Struts 1.2.9 and UNICODE issue on form submittal

2007-06-01 Thread Niall Pemberton
On 5/29/07, Adam Gordon <[EMAIL PROTECTED]> wrote: We're using the html:form element and we have the acceptCharset attribute set to "UTF-8" and when we enter a unicode character in a textarea in this form element, the UTF-8 character (in this case \u2022, the bullet symbol: •) displays correctly

Re: xhtml problem

2007-06-01 Thread Manos Batsis
Ray Clough wrote: The failure is in the deployed code. The processor which produces html from the jsp markup (in tomcat, in this case) will not allow the nested elements. It is treating everything as pure xml, and the dtd for xhtml won't allow that type of markup. I could live with it if it

RE: Wierd behaviour with redirect, result, and store interceptor

2007-06-01 Thread Dave Newton
--- Al Sutton <[EMAIL PROTECTED]> wrote: > There is no validation or parameters for ActionA, > but it does extend > ActionSupport. It gets a summary of all comments > (via Hibernate) and creates > a Set which is iterated over in the JSP. > > I'm not sure of the best way to disable just the > valid

Re: can't build Struts 2 ...

2007-06-01 Thread Giovanni Azua
Hi! Indeed, I updated maven's settings.xml under conf with a full list of mirrors then it works :) happy building! regards, Giovanni - Original Message - From: "Al Sutton" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Friday, June 01, 2007 12:33 PM Subject: RE: can't bu

Re: xhtml problem

2007-06-01 Thread Ray Clough
The failure is in the deployed code. The processor which produces html from the jsp markup (in tomcat, in this case) will not allow the nested elements. It is treating everything as pure xml, and the dtd for xhtml won't allow that type of markup. I could live with it if it was only the editor

RE: Wierd behaviour with redirect, result, and store interceptor

2007-06-01 Thread Al Sutton
Well, switching from the default interceptor stack to the i18n stack seems to have fixed the problem, and as the i18n stack doesn't have the validation in it I'm assuming it must be something to do with it. Is this one for JIRA? -Original Message- From: Al Sutton [mailto:[EMAIL PROTECTED

RE: The class variable reference null problem

2007-06-01 Thread Dave Newton
--- Kapil Sharma <[EMAIL PROTECTED]> wrote: > public class ClsAction extends Action { > public static GraphicsServer myServer = null; > Actionforward execute(){ > if(myServer == null) > myServer = > ClsInitializeServer.getInitializeInstance(); >} > } Just make sure this

RE: can't build Struts 2 ...

2007-06-01 Thread Al Sutton
It seems the whole ftp.ggi-project.org site has gone. Going to the front page gives you a redirect to ibiblio, and the file isn't found using that path at ibiblio. -Original Message- From: Al Sutton [mailto:[EMAIL PROTECTED] Sent: 01 June 2007 11:33 To: 'Struts Users Mailing List' Subject

RE: can't build Struts 2 ...

2007-06-01 Thread Al Sutton
The file in the URL isn't valid. When I try it I get a 404 and I have full web access (i.e. no filtering) -Original Message- From: Giovanni Azua [mailto:[EMAIL PROTECTED] Sent: 01 June 2007 11:12 To: Struts Users Mailing List Subject: Re: can't build Struts 2 ... Hi! Thanks for the qui

RE: Wierd behaviour with redirect, result, and store interceptor

2007-06-01 Thread Al Sutton
There is no validation or parameters for ActionA, but it does extend ActionSupport. It gets a summary of all comments (via Hibernate) and creates a Set which is iterated over in the JSP. I'm not sure of the best way to disable just the validation interceptor, have you got any suggestions? I've lo

Re: can't build Struts 2 ...

2007-06-01 Thread Giovanni Azua
Hi James, Yep I have Symantec Personal Firewall but it created rules automatically for java and should work. I also tried disabling it completely and still get the same maven errors ... I have: - Windows XP - java version 1.6.0_01 - Maven version: 2.0.6 - Used the TortoiseSVN-1.4.3.8645-win32-s

Re: can't build Struts 2 ...

2007-06-01 Thread James Mitchell
Are you behind a firewall? It looks like you do not have a proxy set for Maven. -- James Mitchell On Jun 1, 2007, at 6:12 AM, Giovanni Azua wrote: Hi! Thanks for the quick response! It does not help ... I still get: [INFO] Scanning for projects... Downloading: http://ftp.ggi-project.

Re: xhtml problem

2007-06-01 Thread Manos Batsis
Ray Clough wrote: I produce all my jsp pages is xml format - ie. as 'jspx' jsp-documents. I find a serious drawback to the struts tags, and I'm wondering if anyone has a suggestion. The xhtml does not allow element content within other elements; for example the tag cannot contain a tag. Lots

Re: can't build Struts 2 ...

2007-06-01 Thread Giovanni Azua
Hi! Thanks for the quick response! It does not help ... I still get: [INFO] Scanning for projects... Downloading: http://ftp.ggi-project.org/pub/packages/maven2/org/apache/apache/3/apache-3.pom [INFO] [ERROR] FATAL ERRO

Re: can't build Struts 2 ...

2007-06-01 Thread James Mitchell
cd to current/maven/pom/ $ mvn install -- James Mitchell On Jun 1, 2007, at 6:04 AM, Giovanni Azua wrote: Hi all, After following the simple instructions under page: http://struts.apache.org/dev/builds.html I get the maven errors bellow. TIA, regards, Giovanni [INFO] Scanning for projec

can't build Struts 2 ...

2007-06-01 Thread Giovanni Azua
Hi all, After following the simple instructions under page: http://struts.apache.org/dev/builds.html I get the maven errors bellow. TIA, regards, Giovanni [INFO] Scanning for projects... Downloading: http://maven.opensymphony.com/org.apache.struts/poms/struts-master-4.pom Downloading: http://

RE: Exception while using validator framework

2007-06-01 Thread Fei Fei
OH.. you can referrence this web page to fix your problem: http://www.junlu.com/msg/200341.html _ With Windows Live Hotmail, you can personalize your inbox with your favorite color. www.windowslive-hotmail.com/learnmore/personalize

Re: Exception while using validator framework

2007-06-01 Thread Fitzwilliam . Aaron
Guess you used the wrong version of the "commons-validator.jar". Luck. Fitzwilliam -- 北半球的狗几月份掉毛?

Creating actions without context

2007-06-01 Thread Lucas Garcia
Hi, I'm using s:url and s:form tags to build url's and form's. In a case, I want to use s:form and I don't want that taglib put the application context in the finally action. E.g.: is traduce as , but I want How can I do this? Greetings

Re: Exception while using validator framework

2007-06-01 Thread Fitzwilliam . Aaron
Tell me those things: 1. struts' version u r using; 2. DOCTYPE of both validation.xml and validation-rules.xml -- 北半球的狗几月份掉毛?

RE: Exception while using validator framework

2007-06-01 Thread bhanuprakash.singh
Sir I have removed the old one and put the new one -Original Message- From: Oguz Kologlu [mailto:[EMAIL PROTECTED] Sent: Friday, June 01, 2007 2:00 PM To: Struts Users Mailing List Subject: Re: Exception while using validator framework also make sure you delete the old one. Oz On 01/06

Re: Exception while using validator framework

2007-06-01 Thread Oguz Kologlu
also make sure you delete the old one. Oz On 01/06/2007, at 6:27 PM, <[EMAIL PROTECTED]> wrote: HI Fei Thanks for your kind response As said by u I have replaced existing commons-validator with new one commons-validator-1.3.1.jar But the problems still persists Regards Bhanu -Original M

Re: [S2] Annotation validation and I18N

2007-06-01 Thread Petit Pas De Lune
I'm stupid the key attribute. Thanks On 6/1/07, Petit Pas De Lune <[EMAIL PROTECTED]> wrote: Hello. Is-it possible to internationalize validation messages when using annotations ? PPDL.

RE: Exception while using validator framework

2007-06-01 Thread bhanuprakash.singh
HI Fei Thanks for your kind response As said by u I have replaced existing commons-validator with new one commons-validator-1.3.1.jar But the problems still persists Regards Bhanu -Original Message- From: Fei Fei [mailto:[EMAIL PROTECTED] Sent: Friday, June 01, 2007 12:34 PM To: Struts

[S2] Annotation validation and I18N

2007-06-01 Thread Petit Pas De Lune
Hello. Is-it possible to internationalize validation messages when using annotations ? PPDL.

Visitor field validation with dynamic context

2007-06-01 Thread aniruddha
Hi, I am using struts2 for my application. While validating a User say in User-validation.xml, I want to use the visitor field validation in the following way. true someContext

Re: [S2] Struts2, JDK 1.4, retrotranslator

2007-06-01 Thread Taras Puchko
Hi, you have to translate struts2-codebehind-plugin-2.0.6.jar since the distribution has only struts2-core-2.0.6.jar and xwork-2.0.1.jar translated. Cheers, Taras On 5/31/07, Jason Wyatt <[EMAIL PROTECTED]> wrote: Hi, I'm trying to deploy Struts 2 on Oracle Application Server 9i, which uses JDK

RE: Exception while using validator framework

2007-06-01 Thread Fei Fei
update your commons-validator.jar file,it is an old version, - A Fei -> Subject: Exception while using validator framework> Date: Fri, 1 Jun 2007 12:22:45 +0530> From: [EMAIL PROTECTED]> To: user@struts.apache.org> > > Hi all,> > > > I have created a sample struts application> > Im trying to m

RE: Exception while using validator framework

2007-06-01 Thread bhanuprakash.singh
Thanks for your kind response Wang Yes I have the required commons-validator.jar in the /web-inf/lib Regards Bhanu -Original Message- From: wang huan [mailto:[EMAIL PROTECTED] Sent: Friday, June 01, 2007 12:29 PM To: Struts Users Mailing List Subject: Re: Exception while using validato

Re: [ANN] "Starting with Struts2" Book

2007-06-01 Thread Volkan OZYILMAZ
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. > > J