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 modelDrivenUser{}...

My question is about multiple field with same id in my JSP. My User class have 
a field named streetaddresses (which is linked with an active directory field 
of the same name). In my form, I want to put 3 input field for streetaddresses 
(streetaddresses line 1, streetaddresses line2 and streetaddresses line3).
If I do this, the three field will be concatenated using comma (line1, line2, 
line3)

Is there a way to change the separator comma with another thing (like \r\n) ? 
(line1\r\nline2\r\nline3)

And will it will prepopulate the three field splitting the getStreetAddresses 
field using the separator when I will want to  make a form to modify 
informations ?

Streetaddresses = line1\r\nline2\r\nline3\r\n - streetaddresses line1 = line1  
- streetaddresses line2 = line2

Thanks

Matthieu MARC

--
matthieu.m...@ensam.eumailto:matthieu.m...@ensam.eu
Responsable du Service Informatique
Arts et Métiers ParisTech - Angers



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
 seemed to have been a failed attempt as nothing seemed to work.  What
 the existing plugin does is somewhat as you described; the tags create a
 simple JSON object filled with options and then passes those options off
 to the javascript layer to prepare the core JQuery stuff.
 
 I noticed that the plugin has a preBind and postBind function; however,
 I'm not entirely sure how one can use those two functions with this
 plugin though; and support/activity seems to be hit or miss.
 
 
 -Original Message-
 From: Dave Newton [mailto:davelnew...@gmail.com]
 Sent: Monday, February 14, 2011 7:26 AM
 To: Struts Users Mailing List
 Subject: Re: Strut2 JQuery
 
  is a better plugin I could use to get the same results or whether
 just
  using JQuery directly is the acceptable route in this case...
 
 Using jQuery directly is almost always the easiest way to use jQuery.
 
 When I need to pass JSP-ish things to JavaScript I usually just pass a
 JSON object to [a function | a set of functions |
 external-JS-created-thing] that contains stuff generated from JSP
 tags. You can also pass your JS files through something that
 understands JSP, etc.
 
 Dave
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 


-
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep

-- 
View this message in context: 
http://old.nabble.com/Strut2-JQuery-tp30921546p30947756.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Multiple field and modelDriven

2011-02-17 Thread Maurizio Cucchiara
Which struts version?

Maurizio Cucchiara

Il giorno 17/feb/2011 09.07, matthieu.m...@ensam.eu 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 modelDrivenUser{}...

 My question is about multiple field with same id in my JSP. My User class
have a field named streetaddresses (which is linked with an active directory
field of the same name). In my form, I want to put 3 input field for
streetaddresses (streetaddresses line 1, streetaddresses line2 and
streetaddresses line3).
 If I do this, the three field will be concatenated using comma (line1,
line2, line3)

 Is there a way to change the separator comma with another thing (like
\r\n) ? (line1\r\nline2\r\nline3)

 And will it will prepopulate the three field splitting the
getStreetAddresses field using the separator when I will want to make a form
to modify informations ?

 Streetaddresses = line1\r\nline2\r\nline3\r\n - streetaddresses line1 =
line1 - streetaddresses line2 = line2

 Thanks

 Matthieu MARC

 --
 matthieu.m...@ensam.eumailto:matthieu.m...@ensam.eu
 Responsable du Service Informatique
 Arts et Métiers ParisTech - Angers



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/2011 09.07, matthieu.m...@ensam.eu 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 modelDrivenUser{}...

 My question is about multiple field with same id in my JSP. My User 
 class
have a field named streetaddresses (which is linked with an active directory 
field of the same name). In my form, I want to put 3 input field for 
streetaddresses (streetaddresses line 1, streetaddresses line2 and 
streetaddresses line3).
 If I do this, the three field will be concatenated using comma (line1,
line2, line3)

 Is there a way to change the separator comma with another thing (like
\r\n) ? (line1\r\nline2\r\nline3)

 And will it will prepopulate the three field splitting the
getStreetAddresses field using the separator when I will want to make a form to 
modify informations ?

 Streetaddresses = line1\r\nline2\r\nline3\r\n - streetaddresses line1 
 =
line1 - streetaddresses line2 = line2

 Thanks

 Matthieu MARC

 --
 matthieu.m...@ensam.eumailto:matthieu.m...@ensam.eu
 Responsable du Service Informatique
 Arts et Métiers ParisTech - Angers


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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, matthieu.m...@ensam.eu 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 modelDrivenUser{}...

 My question is about multiple field with same id in my JSP. My User class
have a field named streetaddresses (which is linked with an active directory
field of the same name). In my form, I want to put 3 input field for
streetaddresses (streetaddresses line 1, streetaddresses line2 and
streetaddresses line3).
 If I do this, the three field will be concatenated using comma (line1,
line2, line3)

 Is there a way to change the separator comma with another thing (like
\r\n) ? (line1\r\nline2\r\nline3)

 And will it will prepopulate the three field splitting the
getStreetAddresses field using the separator when I will want to make a form
to modify informations ?

 Streetaddresses = line1\r\nline2\r\nline3\r\n - streetaddresses line1 =
line1 - streetaddresses line2 = line2

 Thanks

 Matthieu MARC

 --
 matthieu.m...@ensam.eumailto:matthieu.m...@ensam.eu
 Responsable du Service Informatique
 Arts et Métiers ParisTech - Angers



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 [mailto:maurizio.cucchi...@gmail.com] 
Envoyé : jeudi 17 février 2011 10:31
À : Struts Users Mailing List
Objet : Re: Multiple field and modelDriven

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, matthieu.m...@ensam.eu 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 modelDrivenUser{}...

 My question is about multiple field with same id in my JSP. My User 
 class
have a field named streetaddresses (which is linked with an active directory 
field of the same name). In my form, I want to put 3 input field for 
streetaddresses (streetaddresses line 1, streetaddresses line2 and 
streetaddresses line3).
 If I do this, the three field will be concatenated using comma (line1,
line2, line3)

 Is there a way to change the separator comma with another thing (like
\r\n) ? (line1\r\nline2\r\nline3)

 And will it will prepopulate the three field splitting the
getStreetAddresses field using the separator when I will want to make a form to 
modify informations ?

 Streetaddresses = line1\r\nline2\r\nline3\r\n - streetaddresses line1 
 =
line1 - streetaddresses line2 = line2

 Thanks

 Matthieu MARC

 --
 matthieu.m...@ensam.eumailto:matthieu.m...@ensam.eu
 Responsable du Service Informatique
 Arts et Métiers ParisTech - Angers


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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, matthieu.m...@ensam.eu ha scritto:
 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 [mailto:maurizio.cucchi...@gmail.com]
 Envoyé : jeudi 17 février 2011 10:31
 À : Struts Users Mailing List
 Objet : Re: Multiple field and modelDriven

 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, matthieu.m...@ensam.eu 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 modelDrivenUser{}...

 My question is about multiple field with same id in my JSP. My User
 class
 have a field named streetaddresses (which is linked with an active
directory field of the same name). In my form, I want to put 3 input field
for streetaddresses (streetaddresses line 1, streetaddresses line2 and
streetaddresses line3).
 If I do this, the three field will be concatenated using comma (line1,
 line2, line3)

 Is there a way to change the separator comma with another thing (like
 \r\n) ? (line1\r\nline2\r\nline3)

 And will it will prepopulate the three field splitting the
 getStreetAddresses field using the separator when I will want to make a
form to modify informations ?

 Streetaddresses = line1\r\nline2\r\nline3\r\n - streetaddresses line1
 =
 line1 - streetaddresses line2 = line2

 Thanks

 Matthieu MARC

 --
 matthieu.m...@ensam.eumailto:matthieu.m...@ensam.eu
 Responsable du Service Informatique
 Arts et Métiers ParisTech - Angers


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



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 used like this also

window.open(itemsNotInPackageReport.action?branchName= +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

action 
name=itemsNotInPackageReport 
method=getItemsNotInPackageReport 

class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction 
result name=itemsNotInPackageReport type=jasper
/jasper/sales/ItemsNotInPackageReport.jasper
itemNameList
PDF  
/result
/action

please help me its urgent for me








@rju wrote:
 
 hello boss
 previously you ve helped a lot
 hope u remember me.
 boss am giving action call through ajax.
 so after that action i dont want my result as a jasper report i want to
 send that report directly to the printer... dat to without user
 interaction
 
 Dave Newton-6 wrote:
 
 He's saying Hit Ctrl-P from inside a PDF reader.
 
 On Wednesday, February 16, 2011, @rju nagarjunabatt...@gmail.com wrote:

 if dont mind can you tell in detailed manner
 --
 View this message in context:
 http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948479.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 used like this also

window.open(itemsNotInPackageReport.action?branchName= +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

action 
name=itemsNotInPackageReport 
method=getItemsNotInPackageReport 

class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction 
result name=itemsNotInPackageReport type=jasper
/jasper/sales/ItemsNotInPackageReport.jasper
itemNameList
PDF  
/result
/action

please help me its urgent for me

-- 
View this message in context: 
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948492.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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???

i ve used like this also

window.open(itemsNotInPackageReport.action?branchName= +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

action 
name=itemsNotInPackageReport 
method=getItemsNotInPackageReport 

class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction 
result name=itemsNotInPackageReport type=jasper
/jasper/sales/ItemsNotInPackageReport.jasper
itemNameList
PDF  
/result
/action

please help me its urgent for me

-- 
View this message in context: 
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 this
issue...

If My application can work in localhost I assume it will works for virtual
host also.Please advice me on what can be the possible cause.

Many Thanks and Regards,

Jerson

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 Marketing Magazine


-Original Message-
From: @rju [mailto:nagarjunabatt...@gmail.com] 
Sent: Thursday, February 17, 2011 6:42 PM
To: user@struts.apache.org
Subject: Re: Integrate JasperReports into a Struts2 web application


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 used like this also

window.open(itemsNotInPackageReport.action?branchName= +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

action 
name=itemsNotInPackageReport 
method=getItemsNotInPackageReport 

class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction 
result name=itemsNotInPackageReport type=jasper
/jasper/sales/ItemsNotInPackageReport.jasper
itemNameList
PDF  
/result
/action

please help me its urgent for me








@rju wrote:
 
 hello boss
 previously you ve helped a lot
 hope u remember me.
 boss am giving action call through ajax.
 so after that action i dont want my result as a jasper report i want to
 send that report directly to the printer... dat to without user
 interaction
 
 Dave Newton-6 wrote:
 
 He's saying Hit Ctrl-P from inside a PDF reader.
 
 On Wednesday, February 16, 2011, @rju nagarjunabatt...@gmail.com wrote:

 if dont mind can you tell in detailed manner
 --
 View this message in context:

http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30946620.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
 

-- 
View this message in context:
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30948479.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 jer...@cprvision.com
Date: Thu, 17 Feb 2011 18:58:25 
To: 'Struts Users Mailing List'user@struts.apache.org
Reply-To: Struts Users Mailing List user@struts.apache.org
Subject: RE: Integrate JasperReports into a Struts2 web application

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 this
issue...

If My application can work in localhost I assume it will works for virtual
host also.Please advice me on what can be the possible cause.

Many Thanks and Regards,

Jerson

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 Marketing Magazine


-Original Message-
From: @rju [mailto:nagarjunabatt...@gmail.com] 
Sent: Thursday, February 17, 2011 6:42 PM
To: user@struts.apache.org
Subject: Re: Integrate JasperReports into a Struts2 web application


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 used like this also

window.open(itemsNotInPackageReport.action?branchName= +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

action 
name=itemsNotInPackageReport 
method=getItemsNotInPackageReport 

class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction 
result name=itemsNotInPackageReport type=jasper
/jasper/sales/ItemsNotInPackageReport.jasper
itemNameList
PDF  
/result
/action

please help me its urgent for me








@rju wrote:
 
 hello boss
 previously you ve helped a lot
 hope u remember me.
 boss am giving action call through ajax.
 so after that action i dont want my result as a jasper report i want to
 send that report directly to the printer... dat to without user
 interaction
 
 Dave Newton-6 wrote:
 
 He's saying Hit Ctrl-P from inside a PDF reader.
 
 On Wednesday, February 16, 2011, @rju nagarjunabatt...@gmail.com wrote:

 if dont mind can you tell in detailed manner
 --
 View this message in context:

http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30946620.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
 

-- 
View this message in context:
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30948479.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 for CRM, Marketing  Loyalty Agency of the
Year Award - Organized by Marketing Magazine


-Original Message-
From: Frans Thamura [mailto:fr...@meruvian.org] 
Sent: Thursday, February 17, 2011 7:04 PM
To: Struts Users Mailing List
Subject: Re: Integrate JasperReports into a Struts2 web application

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 jer...@cprvision.com
Date: Thu, 17 Feb 2011 18:58:25 
To: 'Struts Users Mailing List'user@struts.apache.org
Reply-To: Struts Users Mailing List user@struts.apache.org
Subject: RE: Integrate JasperReports into a Struts2 web application

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 this
issue...

If My application can work in localhost I assume it will works for virtual
host also.Please advice me on what can be the possible cause.

Many Thanks and Regards,

Jerson

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 Marketing Magazine


-Original Message-
From: @rju [mailto:nagarjunabatt...@gmail.com] 
Sent: Thursday, February 17, 2011 6:42 PM
To: user@struts.apache.org
Subject: Re: Integrate JasperReports into a Struts2 web application


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 used like this also

window.open(itemsNotInPackageReport.action?branchName= +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

action 
name=itemsNotInPackageReport 
method=getItemsNotInPackageReport 

class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction 
result name=itemsNotInPackageReport type=jasper
/jasper/sales/ItemsNotInPackageReport.jasper
itemNameList
PDF  
/result
/action

please help me its urgent for me








@rju wrote:
 
 hello boss
 previously you ve helped a lot
 hope u remember me.
 boss am giving action call through ajax.
 so after that action i dont want my result as a jasper report i want to
 send that report directly to the printer... dat to without user
 interaction
 
 Dave Newton-6 wrote:
 
 He's saying Hit Ctrl-P from inside a PDF reader.
 
 On Wednesday, February 16, 2011, @rju nagarjunabatt...@gmail.com wrote:

 if dont mind can you tell in detailed manner
 --
 View this message in context:

http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30946620.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
 

-- 
View this message in context:
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30948479.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 jer...@cprvision.com
Date: Thu, 17 Feb 2011 19:17:02 
To: 'Struts Users Mailing List'user@struts.apache.org; fr...@meruvian.org
Subject: RE: Integrate JasperReports into a Struts2 web application

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 for CRM, Marketing  Loyalty Agency of the
Year Award - Organized by Marketing Magazine


-Original Message-
From: Frans Thamura [mailto:fr...@meruvian.org] 
Sent: Thursday, February 17, 2011 7:04 PM
To: Struts Users Mailing List
Subject: Re: Integrate JasperReports into a Struts2 web application

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 jer...@cprvision.com
Date: Thu, 17 Feb 2011 18:58:25 
To: 'Struts Users Mailing List'user@struts.apache.org
Reply-To: Struts Users Mailing List user@struts.apache.org
Subject: RE: Integrate JasperReports into a Struts2 web application

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 this
issue...

If My application can work in localhost I assume it will works for virtual
host also.Please advice me on what can be the possible cause.

Many Thanks and Regards,

Jerson

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 Marketing Magazine


-Original Message-
From: @rju [mailto:nagarjunabatt...@gmail.com] 
Sent: Thursday, February 17, 2011 6:42 PM
To: user@struts.apache.org
Subject: Re: Integrate JasperReports into a Struts2 web application


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 used like this also

window.open(itemsNotInPackageReport.action?branchName= +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

action 
name=itemsNotInPackageReport 
method=getItemsNotInPackageReport 

class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction 
result name=itemsNotInPackageReport type=jasper
/jasper/sales/ItemsNotInPackageReport.jasper
itemNameList
PDF  
/result
/action

please help me its urgent for me








@rju wrote:
 
 hello boss
 previously you ve helped a lot
 hope u remember me.
 boss am giving action call through ajax.
 so after that action i dont want my result as a jasper report i want to
 send that report directly to the printer... dat to without user
 interaction
 
 Dave Newton-6 wrote:
 
 He's saying Hit Ctrl-P from inside a PDF reader.
 
 On Wednesday, February 16, 2011, @rju nagarjunabatt...@gmail.com wrote:

 if dont mind can you tell in detailed manner
 --
 View this message in context:

http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30946620.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
 

-- 
View this message in context:
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30948479.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





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 window is loaded first, then issue a 
print on the new window.

 Date: Thu, 17 Feb 2011 02:44:44 -0800
 From: nagarjunabatt...@gmail.com
 To: user@struts.apache.org
 Subject: Re: Integrate JasperReports into a Struts2 web application
 
 
 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???
 
 i ve used like this also
 
 window.open(itemsNotInPackageReport.action?branchName= +
 $('select#branchName option:selected').val());
 window.print();
 
 but it is printing the empty page but generating the report successfully
 
 action in struts.xml
 
 action 
   name=itemsNotInPackageReport 
   method=getItemsNotInPackageReport 
 
 class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction   
 result name=itemsNotInPackageReport type=jasper
 /jasper/sales/ItemsNotInPackageReport.jasper
 itemNameList
 PDF
 /result
 /action
 
 please help me its urgent for me
 
 -- 
 View this message in context: 
 http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
 Sent from the Struts - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
  

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 'AnnotationActionValidatorManager.java' to be applied and
hence,the related application to be rolled out in production environment?
By safe, I mean that no other Struts2 component using this class starts
behaving in an unexpected manner whenevr that patch is being used.

It would be great if this answer could be responded as the decision to roll
out corresponding application in production depends on the same.

Thanks!

P.S.: Current Thread dump says:-
httpSSLWorkerThread-6357-65quot; daemon prio=3 tid=0x02d51400 nid=0x728
waiting for monitor entry [0xaed7b000..0xaed7fa70]
   java.lang.Thread.State: BLOCKED (on object monitor)
at

com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators
(AnnotationActionValidatorManager.java)
- waiting to lock lt;0xcc1b9b28gt; (a
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate
(AnnotationActionValidatorManager.java:115)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate
(AnnotationActionValidatorManager.java:107)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate
(AnnotationActionValidatorManager.java:102)
.


Regards
Shishir

=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 s:iterator/ tag to display those dates ? If so, the
 first entry should be presented with full format, the following
 entries just with reduced format. And use hidden fields for full
 format.

Thank you so much!  I was so fixated on the solution I was describing
that I completely ignored an obvious, easily coded solution.  Your
comment put me on the better path.

Regards,

Barry

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFNXSIdCFu3bIiwtTARAkPUAJkByi2CQmqd4/M3CTjH1Sx2KTNT9wCcDbJx
PgWGGlRfCgIiY4s4Zoo+nJM=
=Vj6n
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 From: apin...@hotmail.co.uk
 To: user@struts.apache.org
 Subject: RE: Integrate JasperReports into a Struts2 web application
 Date: Thu, 17 Feb 2011 12:07:51 +
 
 
 
 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 window is loaded first, then issue a 
 print on the new window.
 
  Date: Thu, 17 Feb 2011 02:44:44 -0800
  From: nagarjunabatt...@gmail.com
  To: user@struts.apache.org
  Subject: Re: Integrate JasperReports into a Struts2 web application
  
  
  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???
  
  i ve used like this also
  
  window.open(itemsNotInPackageReport.action?branchName= +
  $('select#branchName option:selected').val());
  window.print();
  
  but it is printing the empty page but generating the report successfully
  
  action in struts.xml
  
  action 
  name=itemsNotInPackageReport 
  method=getItemsNotInPackageReport 
  
  class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction 
  result name=itemsNotInPackageReport type=jasper
  /jasper/sales/ItemsNotInPackageReport.jasper
  itemNameList
  PDF  
  /result
  /action
  
  please help me its urgent for me
  
  -- 
  View this message in context: 
  http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
  Sent from the Struts - User mailing list archive at Nabble.com.
  
  
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
  
 
  

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-20quot; 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.validator.AnnotationActionValidatorManager.getValidators
(AnnotationActionValidatorManager.java)
 - waiting to lock lt;0xcc1b9b28gt; (a
 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager)
 at
 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate
(AnnotationActionValidatorManager.java:115)
 at
 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate
(AnnotationActionValidatorManager.java:107)
 at
 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate
(AnnotationActionValidatorManager.java:102)
 at
 com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation
 (ValidationInterceptor.java:222)
 at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept
 (ValidationInterceptor.java:261)
 at
 
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept
(AnnotationValidationInterceptor.java:68)
 at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
 (MethodFilterInterceptor.java:98)
 at com.opensymphony.xwork2.DefaultActionInvocation.invoke
 (DefaultActionInvocation.java:248)
 at
 com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept
 (ConversionErrorInterceptor.java:133)
 at com.opensymphony.xwork2.DefaultActionInvocation.invoke
 (DefaultActionInvocation.java:248)
 at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept
 (ParametersInterceptor.java:207)
 at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
 (MethodFilterInterceptor.java:98)
 at com.opensymphony.xwork2.DefaultActionInvocation.invoke
 (DefaultActionInvocation.java:248)
 at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept
 (ParametersInterceptor.java:207)
 at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
 (MethodFilterInterceptor.java:98)
 at com.opensymphony.xwork2.DefaultActionInvocation.invoke
 (DefaultActionInvocation.java:248)
 at
 com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept
 (StaticParametersInterceptor.java:190)
 at com.opensymphony.xwork2.DefaultActionInvocation.invoke
 (DefaultActionInvocation.java:248)
 at org.apache.struts2.interceptor.MultiselectInterceptor.intercept
 (MultiselectInterceptor.java:75)


Hence, the patch does not seem to help me here. Any comments?

Thanks
Shishir

-Shishir Saxena  wrote: -
To: user@struts.apache.org
From: Shishir Saxena shishir.sax...@tcs.com
Date: 02/17/2011 12:45PM
Subject: Critical question regarding JIRA issue number 'WW-3461'!

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 'AnnotationActionValidatorManager.java' to be applied and
hence,the related application to be rolled out in production environment?
By safe, I mean that no other Struts2 component using this class starts
behaving in an unexpected manner whenevr that patch is being used.

It would be great if this answer could be responded as the decision to roll
out corresponding application in production depends on the same.

Thanks!

P.S.: Current Thread dump says:-
httpSSLWorkerThread-6357-65quot; daemon prio=3 tid=0x02d51400 nid=0x728
waiting for monitor entry [0xaed7b000..0xaed7fa70]
   java.lang.Thread.State: BLOCKED (on object monitor)
at

com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators
(AnnotationActionValidatorManager.java)
- waiting to lock lt;0xcc1b9b28gt; (a
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate
(AnnotationActionValidatorManager.java:115)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate
(AnnotationActionValidatorManager.java:107)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate
(AnnotationActionValidatorManager.java:102)
.


Regards
Shishir

=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank 

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 behaving erratically with huge stack
traces generated in the log file of the application. When the application
starts behaving this way, all requests fail and they all generate those huge
stack traces. The log file reaches 1 gigabyte in no time.

I've attached one of those stack traces which I compressed with gzip. The
trace is 3756 lines long!

Any help would be greatly appreciated.

--
D. Laroche
Pratt  Whitney Canada


application.log.gz
Description: GNU Zip compressed data

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

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 dlaroc...@gmail.com wrote:

 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 behaving erratically with huge
 stack traces generated in the log file of the application. When the
 application starts behaving this way, all requests fail and they all
 generate those huge stack traces. The log file reaches 1 gigabyte in no
 time.

 I've attached one of those stack traces which I compressed with gzip. The
 trace is 3756 lines long!

 Any help would be greatly appreciated.

 --
 D. Laroche
 Pratt  Whitney Canada




 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



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 shishir.sax...@tcs.com 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 check the JIRA issue, but please do update it with the
results of your testing, perhaps the original author of the patch can
offer some advice.)

-- 
Wendy

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 contains version 2.4.0 and no higher e.g.

dependencies
 dependency
  groupIdorg.apache.lucene/groupId
  artifactIdlucene-core/artifactId
  version2.4.0/version
...

sorry but the plugin does not yet have its own blog..  jquery-grid is Off Topic 
for struts core functionality
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




From: mgai...@hotmail.com
To: user@struts.apache.org
Subject: RE: Strut2 JQuery
Date: Wed, 16 Feb 2011 21:05:12 -0500








..in case anyone is interested..
the new and improved grid control now persists entities to MySQL database

vielen danke johannes
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




From: mgai...@hotmail.com
To: user@struts.apache.org
Subject: RE: Strut2 JQuery
Date: Mon, 14 Feb 2011 08:44:26 -0500








if you take a look at the capabilities of the original Jquery library you will 
see jquery-plugin is missing features (for grid) and requires work

http://code.google.com/p/struts2-jquery/issues/list

 

as mentioned you can still implement the original JQuery JS code 
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

 Date: Mon, 14 Feb 2011 08:25:34 -0500
 Subject: Re: Strut2 JQuery
 From: davelnew...@gmail.com
 To: user@struts.apache.org
 
  is a better plugin I could use to get the same results or whether just
  using JQuery directly is the acceptable route in this case...
 
 Using jQuery directly is almost always the easiest way to use jQuery.
 
 When I need to pass JSP-ish things to JavaScript I usually just pass a
 JSON object to [a function | a set of functions |
 external-JS-created-thing] that contains stuff generated from JSP
 tags. You can also pass your JS files through something that
 understands 

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?

--
DL

2011/2/17 Brian Thompson elephant...@gmail.com

 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 dlaroc...@gmail.comwrote:

 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 behaving erratically with huge
 stack traces generated in the log file of the application. When the
 application starts behaving this way, all requests fail and they all
 generate those huge stack traces. The log file reaches 1 gigabyte in no
 time.

 I've attached one of those stack traces which I compressed with gzip. The
 trace is 3756 lines long!

 Any help would be greatly appreciated.

 --
 D. Laroche
 Pratt  Whitney Canada




 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





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 the printer.
simply sending the report directly to the printer without any user
interaction after pressing ok.
can u help me regarding this


adam pinder wrote:
 
 
 
 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 window is loaded first, then
 issue a print on the new window.
 
 Date: Thu, 17 Feb 2011 02:44:44 -0800
 From: nagarjunabatt...@gmail.com
 To: user@struts.apache.org
 Subject: Re: Integrate JasperReports into a Struts2 web application
 
 
 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???
 
 i ve used like this also
 
 window.open(itemsNotInPackageReport.action?branchName= +
 $('select#branchName option:selected').val());
 window.print();
 
 but it is printing the empty page but generating the report successfully
 
 action in struts.xml
 
 action 
  name=itemsNotInPackageReport 
  method=getItemsNotInPackageReport 
 
 class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction  
 result name=itemsNotInPackageReport type=jasper
 /jasper/sales/ItemsNotInPackageReport.jasper
 itemNameList
 PDF   
 /result
 /action
 
 please help me its urgent for me
 
 -- 
 View this message in context:
 http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
 Sent from the Struts - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951544.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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:

s:iterator value=deniedAreas status=rowstatus
 s:property/
  s:radio name=conclusion.radio%{#rowstatus.index}
list=#{'Yes':'Yes','No':'No'}/s:radio
  s:textfield name=conclusion.text%{rowstatus.index}/
/s:iterator

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 names in
the Action or the Conclusion entity in the Action? I am trying to avoid that
because everything this section is based on is dynamic. I am using JPA for
persistence, and I can handle this there with @ElementCollection but the
radio/text inputs having different names are getting in the way.

Basically I need to capture a yes/no and explanation of each box selected in
a different part of app.

Any ideas would be appreciated.

Nick


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 report and 
javascript which is called onload which does the window.print then that would 
suffice or similar type of functionality


 From: mgai...@hotmail.com
 To: user@struts.apache.org
 Subject: RE: Integrate JasperReports into a Struts2 web application
 Date: Thu, 17 Feb 2011 09:21:36 -0500
 
 
 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 Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
 sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
 oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich 
 dem Austausch von Informationen und entfaltet keine rechtliche 
 Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen 
 wir keine Haftung fuer den Inhalt uebernehmen.
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
 destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
 l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
 est interdite. Ce message sert à l'information seulement et n'aura pas 
 n'importe quel effet légalement obligatoire. Étant donné que les email 
 peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
 aucune responsabilité pour le contenu fourni.
 
 
 
 
  From: apin...@hotmail.co.uk
  To: user@struts.apache.org
  Subject: RE: Integrate JasperReports into a Struts2 web application
  Date: Thu, 17 Feb 2011 12:07:51 +
  
  
  
  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 window is loaded first, then issue 
  a print on the new window.
  
   Date: Thu, 17 Feb 2011 02:44:44 -0800
   From: nagarjunabatt...@gmail.com
   To: user@struts.apache.org
   Subject: Re: Integrate JasperReports into a Struts2 web application
   
   
   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???
   
   i ve used like this also
   
   window.open(itemsNotInPackageReport.action?branchName= +
   $('select#branchName option:selected').val());
   window.print();
   
   but it is printing the empty page but generating the report successfully
   
   action in struts.xml
   
   action 
 name=itemsNotInPackageReport 
 method=getItemsNotInPackageReport 
   
   class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction   
   result name=itemsNotInPackageReport type=jasper
   /jasper/sales/ItemsNotInPackageReport.jasper
   itemNameList
   PDF
   /result
   /action
   
   please help me its urgent for me
   
   -- 
   View this message in context: 
   http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
   Sent from the Struts - User mailing list archive at Nabble.com.
   
   
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
   

 
  

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 09:03:05 -0800
 From: nagarjunabatt...@gmail.com
 To: user@struts.apache.org
 Subject: RE: Integrate JasperReports into a Struts2 web application
 
 
 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 the printer.
 simply sending the report directly to the printer without any user
 interaction after pressing ok.
 can u help me regarding this
 
 
 adam pinder wrote:
  
  
  
  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 window is loaded first, then
  issue a print on the new window.
  
  Date: Thu, 17 Feb 2011 02:44:44 -0800
  From: nagarjunabatt...@gmail.com
  To: user@struts.apache.org
  Subject: Re: Integrate JasperReports into a Struts2 web application
  
  
  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???
  
  i ve used like this also
  
  window.open(itemsNotInPackageReport.action?branchName= +
  $('select#branchName option:selected').val());
  window.print();
  
  but it is printing the empty page but generating the report successfully
  
  action in struts.xml
  
  action 
 name=itemsNotInPackageReport 
 method=getItemsNotInPackageReport 
  
  class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction
  result name=itemsNotInPackageReport type=jasper
  /jasper/sales/ItemsNotInPackageReport.jasper
  itemNameList
  PDF 
  /result
  /action
  
  please help me its urgent for me
  
  -- 
  View this message in context:
  http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
  Sent from the Struts - User mailing list archive at Nabble.com.
  
  
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
  

  
 
 -- 
 View this message in context: 
 http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951544.html
 Sent from the Struts - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
  

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 being resolved. Yes, I am
expecting some advice from the original author on this one.

Regards
Shishir

-Wendy Smoak  wrote: -
To: Struts Users Mailing List user@struts.apache.org
From: Wendy Smoak wsm...@gmail.com
Date: 02/17/2011 04:47PM
Subject: Re: Critical question regarding JIRA issue number 'WW-3461'!

On Thu, Feb 17, 2011 at 10:47 AM, Shishir Saxena shishir.sax...@tcs.com
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 check the JIRA issue, but please do update it with the
results of your testing, perhaps the original author of the patch can
offer some advice.)

--
Wendy

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 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 09:03:05 -0800
 From: nagarjunabatt...@gmail.com
 To: user@struts.apache.org
 Subject: RE: Integrate JasperReports into a Struts2 web application
 
 
 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 the printer.
 simply sending the report directly to the printer without any user
 interaction after pressing ok.
 can u help me regarding this
 
 
 adam pinder wrote:
  
  
  
  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 window is loaded first, then
  issue a print on the new window.
  
  Date: Thu, 17 Feb 2011 02:44:44 -0800
  From: nagarjunabatt...@gmail.com
  To: user@struts.apache.org
  Subject: Re: Integrate JasperReports into a Struts2 web application
  
  
  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???
  
  i ve used like this also
  
  window.open(itemsNotInPackageReport.action?branchName= +
  $('select#branchName option:selected').val());
  window.print();
  
  but it is printing the empty page but generating the report
 successfully
  
  action in struts.xml
  
  action 
name=itemsNotInPackageReport 
method=getItemsNotInPackageReport 
  
 
 class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction  
  result name=itemsNotInPackageReport type=jasper
  /jasper/sales/ItemsNotInPackageReport.jasper
  itemNameList
  PDF
  /result
  /action
  
  please help me its urgent for me
  
  -- 
  View this message in context:
 
 http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
  Sent from the Struts - User mailing list archive at Nabble.com.
  
  
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
  
   
  
 
 -- 
 View this message in context:
 http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951544.html
 Sent from the Struts - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951720.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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???
 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 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 09:03:05 -0800
  From: nagarjunabatt...@gmail.com
  To: user@struts.apache.org
  Subject: RE: Integrate JasperReports into a Struts2 web application
  
  
  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 the printer.
  simply sending the report directly to the printer without any user
  interaction after pressing ok.
  can u help me regarding this
  
  
  adam pinder wrote:
   
   
   
   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 window is loaded first, then
   issue a print on the new window.
   
   Date: Thu, 17 Feb 2011 02:44:44 -0800
   From: nagarjunabatt...@gmail.com
   To: user@struts.apache.org
   Subject: Re: Integrate JasperReports into a Struts2 web application
   
   
   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???
   
   i ve used like this also
   
   window.open(itemsNotInPackageReport.action?branchName= +
   $('select#branchName option:selected').val());
   window.print();
   
   but it is printing the empty page but generating the report
  successfully
   
   action in struts.xml
   
   action 
   name=itemsNotInPackageReport 
   method=getItemsNotInPackageReport 
   
  
  class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction
   result name=itemsNotInPackageReport type=jasper
   /jasper/sales/ItemsNotInPackageReport.jasper
   itemNameList
   PDF  
   /result
   /action
   
   please help me its urgent for me
   
   -- 
   View this message in context:
  
  http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
   Sent from the Struts - User mailing list archive at Nabble.com.
   
   
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
   
  
   
  
  -- 
  View this message in context:
  http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951544.html
  Sent from the Struts - User mailing list archive at Nabble.com.
  
  
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
  

  
 
 -- 
 View this message in context: 
 http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951720.html
 Sent from the Struts - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
  

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@struts.apache.org
 Subject: RE: Integrate JasperReports into a Struts2 web application
 
 
 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 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 09:03:05 -0800
  From: nagarjunabatt...@gmail.com
  To: user@struts.apache.org
  Subject: RE: Integrate JasperReports into a Struts2 web application
  
  
  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 the printer.
  simply sending the report directly to the printer without any user
  interaction after pressing ok.
  can u help me regarding this
  
  
  adam pinder wrote:
   
   
   
   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 window is loaded first,
 then
   issue a print on the new window.
   
   Date: Thu, 17 Feb 2011 02:44:44 -0800
   From: nagarjunabatt...@gmail.com
   To: user@struts.apache.org
   Subject: Re: Integrate JasperReports into a Struts2 web application
   
   
   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???
   
   i ve used like this also
   
   window.open(itemsNotInPackageReport.action?branchName= +
   $('select#branchName option:selected').val());
   window.print();
   
   but it is printing the empty page but generating the report
  successfully
   
   action in struts.xml
   
   action 
  name=itemsNotInPackageReport 
  method=getItemsNotInPackageReport 
   
  
 
 class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction  
   result name=itemsNotInPackageReport type=jasper
   /jasper/sales/ItemsNotInPackageReport.jasper
   itemNameList
   PDF 
   /result
   /action
   
   please help me its urgent for me
   
   -- 
   View this message in context:
  
 
 http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
   Sent from the Struts - User mailing list archive at Nabble.com.
   
   
  
 -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
   
 
   
  
  -- 
  View this message in context:
 
 http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951544.html
  Sent from the Struts - User mailing list archive at Nabble.com.
  
  
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
  
   
  
 
 -- 
 View this message in context:
 http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951720.html
 Sent from the Struts - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951761.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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, e-mail: user-h...@struts.apache.org



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 user@struts.apache.org
From: Lukasz Lenart lukasz.len...@googlemail.com
Date: 02/17/2011 07:33PM
Subject: Re: Critical question regarding JIRA issue number 'WW-3461'!

The patch is ready, could you test it ?


Regards
--
#321;ukasz
+ 48 606 323 122 http://www.lenart.org.pl/ Kapitu#322;a Javarsovia
http://javarsovia.pl
- To
unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional
commands, e-mail: user-h...@struts.apache.org

=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 hou1...@gmail.com wrote:
 Hi Folks,

 I have a set of radio buttons and text fields that display based on user
 selections from prior page. This code:

 s:iterator value=deniedAreas status=rowstatus
 s:property/
 s:radio name=conclusion.radio%{#rowstatus.index}
 list=#{'Yes':'Yes','No':'No'}/s:radio
 s:textfield name=conclusion.text%{rowstatus.index}/
 /s:iterator

 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 names
in
 the Action or the Conclusion entity in the Action? I am trying to avoid
that
 because everything this section is based on is dynamic. I am using JPA for
 persistence, and I can handle this there with @ElementCollection but the
 radio/text inputs having different names are getting in the way.

 Basically I need to capture a yes/no and explanation of each box selected
in
 a different part of app.

 Any ideas would be appreciated.

 Nick


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 attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 s:form/ and submitting that form to
an action as the dialog is closed.

The examples in the struts-jquery-plugin wiki don't seem to cover this
case; though I've been fighting this (along with some other attempts
using SimpleModal) for a day now and am hoping someone can point me in
the right direction.

Thanks.



-- 
Greg Akins
http://twitter.com/akinsgre

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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

http://trentrichardson.com/Impromptu/index.phpIt 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.

On Thu, Feb 17, 2011 at 8:08 PM, Greg Akins angryg...@gmail.com 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 feature to edit the value in a page
 by displaying the dialog with a s:form/ and submitting that form to
 an action as the dialog is closed.

 The examples in the struts-jquery-plugin wiki don't seem to cover this
 case; though I've been fighting this (along with some other attempts
 using SimpleModal) for a day now and am hoping someone can point me in
 the right direction.

 Thanks.



 --
 Greg Akins
 http://twitter.com/akinsgre

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




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 angryg...@gmail.com 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 feature to edit the value in a page
 by displaying the dialog with a s:form/ and submitting that form to
 an action as the dialog is closed.

 The examples in the struts-jquery-plugin wiki don't seem to cover this
 case; though I've been fighting this (along with some other attempts
 using SimpleModal) for a day now and am hoping someone can point me in
 the right direction.

 Thanks.



 --
 Greg Akins
 http://twitter.com/akinsgre

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



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 child dependency

I am sure you will be impressed with the user-friendly RIA interface!

give a shout if you need any help,
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 From: vitordema...@gmail.com
 Date: Thu, 17 Feb 2011 20:15:47 -0200
 Subject: Re: Help with JQuery plugin
 To: user@struts.apache.org; angryg...@gmail.com
 
 I've had a good experience regarding jQuery and modal dialogs using
 Impromptu: http://trentrichardson.com/Impromptu/index.php
 
 http://trentrichardson.com/Impromptu/index.phpIt 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.
 
 On Thu, Feb 17, 2011 at 8:08 PM, Greg Akins angryg...@gmail.com 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 feature to edit the value in a page
  by displaying the dialog with a s:form/ and submitting that form to
  an action as the dialog is closed.
 
  The examples in the struts-jquery-plugin wiki don't seem to cover this
  case; though I've been fighting this (along with some other attempts
  using SimpleModal) for a day now and am hoping someone can point me in
  the right direction.
 
  Thanks.
 
 
 
  --
  Greg Akins
  http://twitter.com/akinsgre
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
  

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 Thanks and Regards,

Jerson




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 AM
To: 'Struts Users Mailing List'
Subject: RE: Best performance practices with Struts 2...anyone!

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 Thanks and Regards,

Jerson




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 Thanks and Regards,

Jerson




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 davelnew...@gmail.com wrote:

 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 hou1...@gmail.com wrote:
  Hi Folks,
 
  I have a set of radio buttons and text fields that display based on user
  selections from prior page. This code:
 
  s:iterator value=deniedAreas status=rowstatus
  s:property/
  s:radio name=conclusion.radio%{#rowstatus.index}
  list=#{'Yes':'Yes','No':'No'}/s:radio
  s:textfield name=conclusion.text%{rowstatus.index}/
  /s:iterator
 
  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 names
 in
  the Action or the Conclusion entity in the Action? I am trying to avoid
 that
  because everything this section is based on is dynamic. I am using JPA
 for
  persistence, and I can handle this there with @ElementCollection but the
  radio/text inputs having different names are getting in the way.
 
  Basically I need to capture a yes/no and explanation of each box selected
 in
  a different part of app.
 
  Any ideas would be appreciated.
 
  Nick



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 hou1...@gmail.com 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

 On Thu, Feb 17, 2011 at 2:40 PM, Dave Newton davelnew...@gmail.com
wrote:

 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 hou1...@gmail.com wrote:
  Hi Folks,
 
  I have a set of radio buttons and text fields that display based on
user
  selections from prior page. This code:
 
  s:iterator value=deniedAreas status=rowstatus
  s:property/
  s:radio name=conclusion.radio%{#rowstatus.index}
  list=#{'Yes':'Yes','No':'No'}/s:radio
  s:textfield name=conclusion.text%{rowstatus.index}/
  /s:iterator
 
  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
names
 in
  the Action or the Conclusion entity in the Action? I am trying to avoid
 that
  because everything this section is based on is dynamic. I am using JPA
 for
  persistence, and I can handle this there with @ElementCollection but
the
  radio/text inputs having different names are getting in the way.
 
  Basically I need to capture a yes/no and explanation of each box
selected
 in
  a different part of app.
 
  Any ideas would be appreciated.
 
  Nick



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 jer...@cprvision.com 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 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 Thanks and Regards,

 Jerson




 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



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 properties.Please advice me a approach
for thisThanks in advance

Many Thanks and Regards,

Jerson

-Original Message-
From: Dave Newton [mailto:davelnew...@gmail.com] 
Sent: Friday, February 18, 2011 10:34 AM
To: Struts Users Mailing List
Subject: Re: generate SQL Hibernate Query using session

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 jer...@cprvision.com 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 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 Thanks and Regards,

 Jerson




 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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
couldn't find any

Thanks in advance

Many Thanks and Regards,

Jerson


From: Jerson John [mailto:jer...@cprvision.com] 
Sent: Friday, February 18, 2011 10:53 AM
To: 'Struts Users Mailing List'
Subject: RE: generate SQL Hibernate Query using session

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 properties.Please advice me a approach
for thisThanks in advance

Many Thanks and Regards,

Jerson

-Original Message-
From: Dave Newton [mailto:davelnew...@gmail.com] 
Sent: Friday, February 18, 2011 10:34 AM
To: Struts Users Mailing List
Subject: Re: generate SQL Hibernate Query using session

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 jer...@cprvision.com 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 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 Thanks and Regards,

 Jerson




 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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

Regards,
Mead


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 a table or grid.

1. Define your dialog in your JSP like:

sj:dialog id=myDialog autOpen=false modal=true width=525
  position=[150,250] onCloseTopics=myDialogClosed 
  onCompleteTopics=myDialogOpened resizable=false /

I have my dialog defined to not auto open, be modal when invoked, and to
be positioned at a given location and to fire a few topics based on some
dialog events.  

2. Bind a click event to something to invoke your dialog

jQuery(document).ready(function() {
  $(#myid).click(function(event,data) {
var url = build my url here;
$(#myDialog).load(url, function() { 
  $(this).dialog(open);
});
return false;
  });
});

When the DOM is ready, I tie a click event to a DOM element.  I build my
URL when the user clicks the element and pass that URL to my dialog to
be loaded.  When the dialog has loaded the URL content, I then invoke
the dialog open to render the screen.  If your content you need to show
can be built inside the sj:dialog/ tags when you initially render the
page and doesn't need to be remote/dynamic called, you can do that and
simply call change the above function to:

jQuery(document).ready(function() {
  $(#myid).click(function(event,data) {
$(#myDialog).dialog(open);
  });
});

3. Setup your form and tie a click event to your submit button

When you click the button, you make an AJAX call to the server to submit
your data.  If you get a successful result, you can then call
$(#myDialog).dialog(close) to close the dialog window and if you get
an error, you can then overlay another dialog to display the error or
set a div in your form you rendered in the dialog with the error
message.

Inevitability it boils down to a number of topic publish/subscribe
events you need to handle.
Any questions, hit me up off list.

Chris


 -Original Message-
 From: Greg Akins [mailto:angryg...@gmail.com]
 Sent: Thursday, February 17, 2011 4:09 PM
 To: user@struts.apache.org
 Subject: Help with JQuery plugin
 
 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 s:form/ and submitting that form to
 an action as the dialog is closed.
 
 The examples in the struts-jquery-plugin wiki don't seem to cover this
 case; though I've been fighting this (along with some other attempts
 using SimpleModal) for a day now and am hoping someone can point me in
 the right direction.
 
 Thanks.
 
 
 
 --
 Greg Akins
 http://twitter.com/akinsgre
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 over.

Here's a simple example:

public List getQueryUsingResultTransformer() {
  SQLQuery query = session.createSQLQuery(SELECT SOME FANCY DATA);
  /* do other stuff */
  query.setResultTransformer(new
AliasToBeanResultTransformer(YourDTO.class));
  return(query.list());
}

Another alternative would be to iterate the result set yourself 

public ListYourDTO getQueryDoingSelfInstantiation() {
  ListYourDTO myList = new ArrayListYourDTO();
  SQLQuery query = session.createSQLQuery(SELECT SOME FANCY DATA);
  /* do other stuff */
  List results = query.list();
  Iterator i = results.iterator();
  while(i.hasNext())
  {
Object[] row = (Object[]) i.next();
/* each row has a 0-based index for each column of query */
YourDTO dto = new YourDTO();
/* set values on dto */
myList.add(dto);
  }
  return(myList);
}

Both basically do the same; however I find that using the AliasToBean
transformer is much cleaner code :)

Chris

 -Original Message-
 From: Jerson John [mailto:jer...@cprvision.com]
 Sent: Thursday, February 17, 2011 7:43 PM
 To: user@struts.apache.org
 Subject: generate SQL Hibernate Query using session
 
 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 Thanks and Regards,
 
 Jerson
 
 
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 Users Mailing List
Subject: RE: generate SQL Hibernate Query using session

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 over.

Here's a simple example:

public List getQueryUsingResultTransformer() {
  SQLQuery query = session.createSQLQuery(SELECT SOME FANCY DATA);
  /* do other stuff */
  query.setResultTransformer(new
AliasToBeanResultTransformer(YourDTO.class));
  return(query.list());
}

Another alternative would be to iterate the result set yourself 

public ListYourDTO getQueryDoingSelfInstantiation() {
  ListYourDTO myList = new ArrayListYourDTO();
  SQLQuery query = session.createSQLQuery(SELECT SOME FANCY DATA);
  /* do other stuff */
  List results = query.list();
  Iterator i = results.iterator();
  while(i.hasNext())
  {
Object[] row = (Object[]) i.next();
/* each row has a 0-based index for each column of query */
YourDTO dto = new YourDTO();
/* set values on dto */
myList.add(dto);
  }
  return(myList);
}

Both basically do the same; however I find that using the AliasToBean
transformer is much cleaner code :)

Chris

 -Original Message-
 From: Jerson John [mailto:jer...@cprvision.com]
 Sent: Thursday, February 17, 2011 7:43 PM
 To: user@struts.apache.org
 Subject: generate SQL Hibernate Query using session
 
 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 Thanks and Regards,
 
 Jerson
 
 
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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

CPR Vision - Nominated finalist for CRM, Marketing  Loyalty Agency of the
Year Award - Organized by Marketing Magazine


-Original Message-
From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] 
Sent: Friday, February 18, 2011 11:23 AM
To: Struts Users Mailing List
Subject: RE: generate SQL Hibernate Query using session

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 over.

Here's a simple example:

public List getQueryUsingResultTransformer() {
  SQLQuery query = session.createSQLQuery(SELECT SOME FANCY DATA);
  /* do other stuff */
  query.setResultTransformer(new
AliasToBeanResultTransformer(YourDTO.class));
  return(query.list());
}

Another alternative would be to iterate the result set yourself 

public ListYourDTO getQueryDoingSelfInstantiation() {
  ListYourDTO myList = new ArrayListYourDTO();
  SQLQuery query = session.createSQLQuery(SELECT SOME FANCY DATA);
  /* do other stuff */
  List results = query.list();
  Iterator i = results.iterator();
  while(i.hasNext())
  {
Object[] row = (Object[]) i.next();
/* each row has a 0-based index for each column of query */
YourDTO dto = new YourDTO();
/* set values on dto */
myList.add(dto);
  }
  return(myList);
}

Both basically do the same; however I find that using the AliasToBean
transformer is much cleaner code :)

Chris

 -Original Message-
 From: Jerson John [mailto:jer...@cprvision.com]
 Sent: Thursday, February 17, 2011 7:43 PM
 To: user@struts.apache.org
 Subject: generate SQL Hibernate Query using session
 
 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 Thanks and Regards,
 
 Jerson
 
 
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 s:head
theme=ajax / I am getting the freemaker template error...What is the
cause for this..Please help me on 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

CPR Vision - Nominated finalist for CRM, Marketing  Loyalty Agency of the
Year Award - Organized by Marketing Magazine


-Original Message-
From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] 
Sent: Friday, February 18, 2011 11:23 AM
To: Struts Users Mailing List
Subject: RE: generate SQL Hibernate Query using session

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 over.

Here's a simple example:

public List getQueryUsingResultTransformer() {
  SQLQuery query = session.createSQLQuery(SELECT SOME FANCY DATA);
  /* do other stuff */
  query.setResultTransformer(new
AliasToBeanResultTransformer(YourDTO.class));
  return(query.list());
}

Another alternative would be to iterate the result set yourself 

public ListYourDTO getQueryDoingSelfInstantiation() {
  ListYourDTO myList = new ArrayListYourDTO();
  SQLQuery query = session.createSQLQuery(SELECT SOME FANCY DATA);
  /* do other stuff */
  List results = query.list();
  Iterator i = results.iterator();
  while(i.hasNext())
  {
Object[] row = (Object[]) i.next();
/* each row has a 0-based index for each column of query */
YourDTO dto = new YourDTO();
/* set values on dto */
myList.add(dto);
  }
  return(myList);
}

Both basically do the same; however I find that using the AliasToBean
transformer is much cleaner code :)

Chris

 -Original Message-
 From: Jerson John [mailto:jer...@cprvision.com]
 Sent: Thursday, February 17, 2011 7:43 PM
 To: user@struts.apache.org
 Subject: generate SQL Hibernate Query using session
 
 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 Thanks and Regards,
 
 Jerson
 
 
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: DateTimePicker Tag

2011-02-17 Thread Lukasz Lenart
2011/2/18 Jerson John jer...@cprvision.com:
  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 s:head
 theme=ajax / I am getting the freemaker template error...What is the
 cause for this..Please help me on this

Try using sx:head/ ;-)


Kind 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, e-mail: user-h...@struts.apache.org



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 Marketing Magazine


-Original Message-
From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Sent: Friday, February 18, 2011 2:47 PM
To: Struts Users Mailing List
Subject: Re: DateTimePicker Tag

2011/2/18 Jerson John jer...@cprvision.com:
  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 s:head
 theme=ajax / I am getting the freemaker template error...What is the
 cause for this..Please help me on this

Try using sx:head/ ;-)


Kind 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, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 by Marketing Magazine


-Original Message-
From: Frans Thamura [mailto:fr...@meruvian.org] 
Sent: Thursday, February 17, 2011 7:35 PM
To: Jerson John; 'Struts Users Mailing List'
Subject: Re: Integrate JasperReports into a Struts2 web application

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 jer...@cprvision.com
Date: Thu, 17 Feb 2011 19:17:02 
To: 'Struts Users Mailing List'user@struts.apache.org;
fr...@meruvian.org
Subject: RE: Integrate JasperReports into a Struts2 web application

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 for CRM, Marketing  Loyalty Agency of the
Year Award - Organized by Marketing Magazine


-Original Message-
From: Frans Thamura [mailto:fr...@meruvian.org] 
Sent: Thursday, February 17, 2011 7:04 PM
To: Struts Users Mailing List
Subject: Re: Integrate JasperReports into a Struts2 web application

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 jer...@cprvision.com
Date: Thu, 17 Feb 2011 18:58:25 
To: 'Struts Users Mailing List'user@struts.apache.org
Reply-To: Struts Users Mailing List user@struts.apache.org
Subject: RE: Integrate JasperReports into a Struts2 web application

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 this
issue...

If My application can work in localhost I assume it will works for virtual
host also.Please advice me on what can be the possible cause.

Many Thanks and Regards,

Jerson

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 Marketing Magazine


-Original Message-
From: @rju [mailto:nagarjunabatt...@gmail.com] 
Sent: Thursday, February 17, 2011 6:42 PM
To: user@struts.apache.org
Subject: Re: Integrate JasperReports into a Struts2 web application


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 used like this also

window.open(itemsNotInPackageReport.action?branchName= +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

action 
name=itemsNotInPackageReport 
method=getItemsNotInPackageReport 

class=com.ae.school.web.action.sales.reports.ItemsNotInPackageAction 
result name=itemsNotInPackageReport type=jasper
/jasper/sales/ItemsNotInPackageReport.jasper
itemNameList
PDF  
/result
/action

please help me its urgent for me








@rju wrote:
 
 hello boss
 previously you ve helped a lot
 hope u remember me.
 boss am giving action call through ajax.
 so after that action i dont want my result as a jasper report i want to
 send that report directly to the printer... dat to without user
 interaction
 
 Dave Newton-6 wrote:
 
 He's saying Hit Ctrl-P from inside a PDF reader.
 
 On Wednesday, February 16, 2011, @rju nagarjunabatt...@gmail.com wrote:

 if dont mind can you tell in detailed manner
 --
 View this message in context:

http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30946620.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
 

-- 
View this message in context: