RE: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread Jerson John
Is that Tomcat Version 6 Many Thanks and Regards, Jerson CPR Vision Management Pte Ltd CRM Software & Marketing E: jer...@cprvision.com T: + (65) 6535 0996 F: + (65) 6327 8085 www.cprvision.com CPR Vision - Nominated finalist for CRM, Marketing & Loyalty "Agency of the Year" Award - Organized b

RE: DateTimePicker Tag

2011-02-17 Thread Jerson John
Settled Thanks alot Many Thanks and Regards, Jerson CPR Vision Management Pte Ltd CRM Software & Marketing E: jer...@cprvision.com T: + (65) 6535 0996 F: + (65) 6327 8085 www.cprvision.com CPR Vision - Nominated finalist for CRM, Marketing & Loyalty “Agency of the Year” Award – Organized by Ma

Re: DateTimePicker Tag

2011-02-17 Thread Lukasz Lenart
2011/2/18 Jerson John : >  Can u suggest me the best way to use datetime picker tag...It seems normal > Struts 2 Tag Library does not have this... > I try to follow the code dojo library,It's only displaying the label and not > displaying the datetime colander...When I try put the code theme="ajax

DateTimePicker Tag

2011-02-17 Thread Jerson John
Hi, Can u suggest me the best way to use datetime picker tag...It seems normal Struts 2 Tag Library does not have this... I try to follow the code dojo library,It's only displaying the label and not displaying the datetime colander...When I try put the code I am getting the freemaker template e

RE: generate SQL Hibernate Query using session

2011-02-17 Thread Jerson John
Hi, Can u suggest me the best way to use datetime picker tag...It seems normal Struts 2 Tag Library does not have this... Many Thanks and Regards, Jerson CPR Vision Management Pte Ltd CRM Software & Marketing E: jer...@cprvision.com T: + (65) 6535 0996 F: + (65) 6327 8085 www.cprvision.com CP

RE: generate SQL Hibernate Query using session

2011-02-17 Thread Jerson John
Hi, It was really a great help from you guys...Thanks a lotfinally I manged to do some way.. Appreciate ur help... Many Thanks and Regards, Jerson -Original Message- From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Friday, February 18, 2011 11:23 AM To: Struts Use

RE: generate SQL Hibernate Query using session

2011-02-17 Thread CRANFORD, CHRIS
Jerson - What I would likely suggest you consider is creating a DTO object that resembles your result from the SQLQuery. You can then use one of the stock Hibernate Transformers to convert the SQL results into instances of this DTO Bean and then you can return the beans to your view to iterate ov

RE: Help with JQuery plugin

2011-02-17 Thread CRANFORD, CHRIS
Greg - In order to open the dialog, you simply need to initially define your dialog in your JSP. I prefer to use dynamic invocation of my dialogs, especially in the scenario where I need to pass dynamic values such as URL parameters to the dialog in the event I am editing multiple records, say in

Re: generate SQL Hibernate Query using session

2011-02-17 Thread Mead Lai
I think you may use the Composite Class in Hibernate. Query q = session.createQuery (" select new NewCompositeClass(members, classInfo.className) " + " from Members members, ClassInfo classInfo " + " where members.level = classInfo.classCode "); and you need a class:NewCompositeClass.java

RE: generate SQL Hibernate Query using session

2011-02-17 Thread Jerson John
Hi, By the way My query is below "select b.Name as brand,a.Name as eventname,c.Code,a.EventStartDate,a.EventEndDate,a.EventObjective,a.EventTyp e from ASSET a,Brand b,LPDCOUNTRY c where a.Brand=b.id and a.Country=c.id" It also says brand property not defined...Is there any syntax error...I could

RE: generate SQL Hibernate Query using session

2011-02-17 Thread Jerson John
Hi, Thanks for your reply. Actually I am bit confused here..What I do normally is that get the List of the model calss from the HQL Query and cast it and iterate it in jsp...Here If there values from more than one table then I can't cast it to any model class because of the difference in properti

Re: generate SQL Hibernate Query using session

2011-02-17 Thread Dave Newton
What does having joins have to do with not being able to map to your data model? Dave On Feb 17, 2011 8:43 PM, "Jerson John" wrote: > Hi, > I am trying to generate SQL query using session.createSQLQuery and > returning the list object..This select query contains joins and so it cannot > be mappe

Re: Handling dynamic set of radio buttons

2011-02-17 Thread Dave Newton
Yep :) Check out the type conversion docs; they discuss array and map naming conventions. Dave On Feb 17, 2011 8:58 PM, "Nick Broadhurst" wrote: > Thanks Dave. > > So are you saying have a Map property in the Action and the first radio > button would have Map position 1 as its name? > > Nick >

Re: Handling dynamic set of radio buttons

2011-02-17 Thread Nick Broadhurst
Thanks Dave. So are you saying have a Map property in the Action and the first radio button would have Map position 1 as its name? Nick On Thu, Feb 17, 2011 at 2:40 PM, Dave Newton wrote: > Use a map or array rather than actual field names that include the index as > part of the field names. >

generate SQL Hibernate Query using session

2011-02-17 Thread Jerson John
Hi, I am trying to generate SQL query using session.createSQLQuery and returning the list object..This select query contains joins and so it cannot be mapped to any of my model objects.How can I now get the values in my jsp page using iterator tag in Struts 2... Please help me on this Many Than

datetime picker tag

2011-02-17 Thread Jerson John
Hi, Hi Can you advice me on the best way to implement the datetime picker tag in Struts 2 Please help me on this Many Thanks and Regards, Jerson Many Thanks and Regards, Jerson - To unsubscribe, e-mail: user-unsubscr...@

RE: Best performance practices with Struts 2...anyone!

2011-02-17 Thread Jerson John
Hi, Hi Can you advice me on the best way to implement the datetime picker tag in Struts 2 Please help me on this Many Thanks and Regards, Jerson Many Thanks and Regards, Jerson -Original Message- From: Jerson John [mailto:jer...@cprvision.com] Sent: Friday, February 18, 2011 9:34

RE: Best performance practices with Struts 2...anyone!

2011-02-17 Thread Jerson John
Hi, I am trying to generate SQL query using session.createSQLQuery and returning the list object..This select query contains joins and so it cannot be mapped to any of my model objects.How can I now get the values in my jsp page using iterator tag in Struts 2... Please help me on this Many Than

RE: Help with JQuery plugin

2011-02-17 Thread Martin Gainty
Hello Angry Gregg download struts2-jquery-plugin from the google repository http://code.google.com/p/struts2-jquery/ Be aware that the object default persistence store is HSQL (Hypersonic) I have retasked the configuration to implement mysql-5.1.25 also be sure to hook in 2.4.2 lucene-core as ch

Re: Help with JQuery plugin

2011-02-17 Thread Dave Newton
Why not just use plain jquery? Dave On Feb 17, 2011 5:09 PM, "Greg Akins" wrote: > I'm trying to implement a modal dialog in a Struts2 application. > > I found the struts2-jquery-plugin. > > What I'm not sure about is how to implement a dialog that contains a > form. I'm trying to implement a fe

Re: Help with JQuery plugin

2011-02-17 Thread Vitor De Mario
I've had a good experience regarding jQuery and modal dialogs using Impromptu: http://trentrichardson.com/Impromptu/index.php It covers the use of forms inside a dialog, but I don't know how it relates to the struts2-jquery-plugin, I've never used it

Help with JQuery plugin

2011-02-17 Thread Greg Akins
I'm trying to implement a modal dialog in a Struts2 application. I found the struts2-jquery-plugin. What I'm not sure about is how to implement a dialog that contains a form. I'm trying to implement a feature to edit the value in a page by displaying the dialog with a and submitting that form t

Re: Best performance practices with Struts 2...anyone!

2011-02-17 Thread Shishir Saxena
Hi I need to have the best practices which could be applied on Struts2 based application to keep the system best performant and scalable. Can somebody help me here please? Thanks and regards Shishir =-=-= Notice: The information contained in this e-mail message and/or attach

Re: Handling dynamic set of radio buttons

2011-02-17 Thread Dave Newton
Use a map or array rather than actual field names that include the index as part of the field names. dave On Feb 17, 2011 12:04 PM, "Nick Broadhurst" wrote: > Hi Folks, > > I have a set of radio buttons and text fields that display based on user > selections from prior page. This code: > > > >

Re: Critical question regarding JIRA issue number 'WW-3461'!

2011-02-17 Thread Shishir Saxena
It could take some time. I'll revert once done. Thanks for prompt action. Regards Shishir -Lukasz Lenart wrote: - To: Struts Users Mailing List From: Lukasz Lenart Date: 02/17/2011 07:33PM Subject: Re: Critical question regarding JIRA issue number 'WW-3461'! The patch is ready, coul

Re: Critical question regarding JIRA issue number 'WW-3461'!

2011-02-17 Thread Lukasz Lenart
The patch is ready, could you test it ? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands,

Re: Critical question regarding JIRA issue number 'WW-3461'!

2011-02-17 Thread Lukasz Lenart
Hi, I've reopened that issue, I'm going to prepare a new patch. Could you test it ? Kind regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia http://javarsovia.pl - To unsubscribe, e-mail: user-unsu

RE: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread @rju
k but please send me the code please. i might get any idea by seeing dat naa.. please adam pinder wrote: > > > > its specific to pdfs and won't be any different to window.print on a > normal web page > >> Date: Thu, 17 Feb 2011 09:22:33 -0800 >> From: nagarjunabatt...@gmail.com >> To: user@st

RE: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread adam pinder
its specific to pdfs and won't be any different to window.print on a normal web page > Date: Thu, 17 Feb 2011 09:22:33 -0800 > From: nagarjunabatt...@gmail.com > To: user@struts.apache.org > Subject: RE: Integrate JasperReports into a Struts2 web application > > > inside a pdf able to print??

RE: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread @rju
inside a pdf able to print??? ok can u please send that java script file to me.(nagarjunabatt...@gmail.com) adam pinder wrote: > > > > i think all interactions using window.print require the user to at least > acknowledge that they want to print. i've only used javascript inside a > pdf to be

Re: Critical question regarding JIRA issue number 'WW-3461'!

2011-02-17 Thread Shishir Saxena
Thanks Wendy for your reply! Actually, I am not developing any patches but want to fix one of the production issues based on Struts2 through a patch; hence the question :-) I have updated the thread with my testing result in my previous mail where I mentioned that I could not see my problem bein

RE: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread adam pinder
i think all interactions using window.print require the user to at least acknowledge that they want to print. i've only used javascript inside a pdf to be able to print without user interaction but even that has been deemed a security risk and so is also frowned upon. > Date: Thu, 17 Feb 2011

RE: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread adam pinder
i'm not sure what tests can be done on the variable created from the window.open - if you can test for it being loaded and are able to issue a print against the actual new window then that would be simplest otherwise...if the call to the jasper report could output an html page containing the r

Handling dynamic set of radio buttons

2011-02-17 Thread Nick Broadhurst
Hi Folks, I have a set of radio buttons and text fields that display based on user selections from prior page. This code: displays it fine and names the radio/text inputs, but is there any other way to accept this info in my submit action than hard coding the field

RE: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread @rju
ok adam am also thinking that only. so can you tell me is it possible to print the report directly when i press ok button . in this ok button the function am giving is window.open(action urlx). so i want a report if it dont display even it is not a matter but i need print out directly should go to

Re: requests die with a stack overflow

2011-02-17 Thread Denis Laroche
I know, but what baffles me is why it starts behaving this way out of nowhere. The application can run fine for a long time, and then all of a sudden this happens. I'm sending Ajax requests to Struts actions. Would anybody be aware of any issue with sending Ajax requests to Struts 1.3.10 actions?

RE: Strut2 JQuery (O/T) amending pom.xml to work with lucene

2011-02-17 Thread Martin Gainty
guys there is a problem when invoking search with lucene 3.0 via jquery-grid plugin specifically java.lang.InstantiationException: org.apache.lucene.analysis.standard.StandardAnalyzer the fix is to rollback lucene to 2.4.0 ..make sure your child dependency for struts2-jquery-grid pom.xml cont

Re: Critical question regarding JIRA issue number 'WW-3461'!

2011-02-17 Thread Wendy Smoak
On Thu, Feb 17, 2011 at 10:47 AM, Shishir Saxena wrote: > Hence, the patch does not seem to help me here. Any comments? The user list is generally for discussion of released versions. If you're building it yourself and applying patches, the dev list is a better place for questions. (I didn't c

Re: requests die with a stack overflow

2011-02-17 Thread Brian Thompson
Looks to me like it's getting into an infinite loop somewhere. I did notice that the same 18 lines were repeating for about half the file. -Brian On Thu, Feb 17, 2011 at 10:21 AM, Denis Laroche wrote: > Hello all, > > I also posted this message to the Tomcat mailing list, because I'm not su

requests die with a stack overflow

2011-02-17 Thread Denis Laroche
Hello all, I also posted this message to the Tomcat mailing list, because I'm not sure where the problem is. The version of Struts is 1.3.10. The version of Tomcat is 6.0.29, and the JVM is 1.6.0_17-b17 running on a Linux server, kernel version 2.6.18. Once in a while, the application starts beha

Re: Critical question regarding JIRA issue number 'WW-3461'!

2011-02-17 Thread Shishir Saxena
Hi When I applied the patch, I am receiving the same thread dump messages as before: "httpSSLWorkerThread-6357-20" daemon prio=3 tid=0x019f9c00 nid=0xb4 waiting for monitor entry [0xb5e79000..0xb5e7f870] java.lang.Thread.State: BLOCKED (on object monitor) at com.opensymphony.xwork2.validato

RE: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread Martin Gainty
so would assigning the var win=window.open to a Javascript variable and testing win for null work? or are you thinking more of iframe communication? thanks, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Na

Re: Custom Type Converter & Session data

2011-02-17 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/17/2011 01:40 AM, Lukasz Lenart wrote: > Why do not change the format in JSP file ? > > Convert should do only conversion, formatting should be in view. Do > you use the tag to display those dates ? If so, the > first entry should be presented

Critical question regarding JIRA issue number 'WW-3461'!

2011-02-17 Thread Shishir Saxena
Hi I am facing a critical production performance problem for Struts 2.2.1. >From thread dumps, the issue (See details below in P.S.) seems to be similar to the one addressed by JIRA issue number 'WW-3461' . Since Struts 2.2.2 is still not released, is it safe that only the patch related with 'An

RE: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread adam pinder
window.open is not a synchronous command and hence the window.print is occurring before the jasper report is actually rendered and you need to issue the window.print on the new window which i doubt it is given you're calling it from the parent window. you need to be able to test that the new w

Re: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread Frans Thamura
We use modjk and mod proxy And a php for redirect to the active action We have probel with redirect action type, this is our workaround /m/ -Original Message- From: "Jerson John" Date: Thu, 17 Feb 2011 19:17:02 To: 'Struts Users Mailing List'; Subject: RE: Integrate JasperReports in

RE: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread Jerson John
Hi Could you share with me some tipsOr If you need more info of this please let me know Many Thanks and Regards, Jerson CPR Vision Management Pte Ltd CRM Software & Marketing E: jer...@cprvision.com T: + (65) 6535 0996 F: + (65) 6327 8085 www.cprvision.com CPR Vision - Nominated finalist f

Re: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread Frans Thamura
We use a lot virtual host around 20 dotcom, splitted for around 5 tomcat, jboss and glassfish in one server /m/ -Original Message- From: "Jerson John" Date: Thu, 17 Feb 2011 18:58:25 To: 'Struts Users Mailing List' Reply-To: "Struts Users Mailing List" Subject: RE: Integrate JasperRe

RE: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread Jerson John
Hi, Please help me out.I have Struts2 Application which works fine when I run in localhost.Somehow I am failed to run using Virtual host name.It comes to stating login page after then it cannot execute my action classes..I am try to google for the solution but nothing works out.Please help me on

Re: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread @rju
hello sir, in my java script file am calling action as follows and it displays the jasper report. window.open("itemsNotInPackageReport.action?branchName=" + $('select#branchName option:selected').val()); so now i want to send this to printer directly when i am calling action. Is it possible???

RE: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread @rju
hey in my java script file am calling action as follows and it displays the jasper report. window.open("itemsNotInPackageReport.action?branchName=" + $('select#branchName option:selected').val()); so now i want to send this to printer directly when i am calling action. Is it possible??? i ve us

Re: Integrate JasperReports into a Struts2 web application

2011-02-17 Thread @rju
hey in my java script file am calling action as follows and it displays the jasper report. window.open("itemsNotInPackageReport.action?branchName=" + $('select#branchName option:selected').val()); so now i want to send this to printer directly when i am calling action. Is it possible??? i ve us

Re: RE: Multiple field and modelDriven

2011-02-17 Thread Maurizio Cucchiara
I'm not sure, maybe type conversion is the answer to your question. Have you already seen this [1]? [1] http://struts.apache.org/2.2.1/docs/type-conversion.html Maurizio Cucchiara Il giorno 17/feb/2011 10.36, ha scritto: > My User Class came from another java library which bind User class to an

RE: Multiple field and modelDriven

2011-02-17 Thread Matthieu.Marc
My User Class came from another java library which bind User class to an Active Directory User. I would like to find a solution without modifying this java library. ... but If there is no solution, I will modify my User class. Matthieu MARC -Message d'origine- De : Maurizio Cucchiara

Re: Multiple field and modelDriven

2011-02-17 Thread Maurizio Cucchiara
Pardon, I didn't see model driven stuff. Have you tryied to change your address field to an array string or a simple collection? Maurizio Cucchiara Il giorno 17/feb/2011 09.07, ha scritto: > Hi everybody, > > I have a class named User which contain some information about user . > > I have made a

RE: Multiple field and modelDriven

2011-02-17 Thread Matthieu.Marc
I used the struts 2.2.1.1 version -Message d'origine- De : Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] Envoyé : jeudi 17 février 2011 10:28 À : Struts Users Mailing List Objet : Re: Multiple field and modelDriven Which struts version? Maurizio Cucchiara Il giorno 17/feb/2

Re: Multiple field and modelDriven

2011-02-17 Thread Maurizio Cucchiara
Which struts version? Maurizio Cucchiara Il giorno 17/feb/2011 09.07, ha scritto: > Hi everybody, > > I have a class named User which contain some information about user . > > I have made a form in my JSP and an action which is modelDriven with my User class. > > Public class User implements mod

RE: Strut2 JQuery

2011-02-17 Thread Johannes Geppert
here is an other way which describes how to easy overwrite a default handler in struts2 jquery plugin. http://www.jgeppert.com/2011/02/how-to-overwrite-functions-in-struts2-jquery-plugin/ Johannes CRANFORD, CHRIS wrote: > > I tried passing the JS through something that understands JSP but it

Multiple field and modelDriven

2011-02-17 Thread Matthieu.Marc
Hi everybody, I have a class named User which contain some information about user . I have made a form in my JSP and an action which is modelDriven with my User class. Public class User implements modelDriven{}... My question is about multiple field with same id in my JSP. My User class have