Interceptor Stack config

2010-11-18 Thread RogerV
Hi I'm setting up a new Struts 2 project - the first time I've started from scratch in ages. I think it must be age, but I seem to have forgotten a lot of the basics :( Could someone look at my struts.xml and tell me why the config-browser plugin shows that I'm using the default stack rather

Re: result type Jasper [Struts 2]

2010-11-18 Thread @rju
hi got it man. the problem here is my iText.jar i ve downloaded new one the now its working.. Thanks a lot from early reply thank u thanks alot -- View this message in context: http://old.nabble.com/result-type-Jasper--Struts-2--tp11004749p30244620.html Sent from the Struts - User mailing list

Jasper Relevancy

2010-11-18 Thread Frans Thamura
hi all what is the benefit using Jasper with S2, if we can run using JSP and run well i see that we must use List and throw to Jasper with S2, is there a better alternatif F

Re: Interceptor Stack config

2010-11-18 Thread li wei
Hi RogerV I don't think config-browser plugin tells you which stack are you using, it just show you all of actions in namespaces you have configured, of course, including default namespace (2010/11/18 18:18), RogerV wrote: Hi I'm setting up a new Struts 2 project - the first time I've started

Re: Jasper Relevancy

2010-11-18 Thread Dave Newton
If you want reports? On Thursday, November 18, 2010, Frans Thamura fr...@meruvian.org wrote: hi all what is the benefit using Jasper with S2, if we can run using JSP and run well i see that we must use List and throw to Jasper with S2, is there a better alternatif F

Re: OGNL map key reading

2010-11-18 Thread Li Ying
try: invoke the [get] method on map: s:property value=currentPageHotelList[#stat.index].get(#roomindex)/ or reference property on map: s:property value=currentPageHotelList[#stat.index].(#roomindex)/ or iterator on values of map: s:iterator value=currentPageHotelList[#stat.index].values

Re: struts2.1 validation problem! with fileUploadStack

2010-11-18 Thread Dave Newton
Because ofnyou define an interceptor (stack) for an action it will be the *only* interceptor (stack) for that action. So it doesn't work until you add the defaultStack because it doesn't have the defaultStack until you add it. Dave On Thursday, November 18, 2010, Mead Lai laiqi...@gmail.com

Re: Interceptor Stack config

2010-11-18 Thread RogerV
li wei-4 wrote: Hi RogerV I don't think config-browser plugin tells you which stack are you using, it just show you all of actions in namespaces you have configured, of course, including default namespace It lists the interceptors in the order that they are configured, so I would

Re: Interceptor Stack config

2010-11-18 Thread Li Ying
Why you define paramsPrepareParamsStack again? I believe it is already defined in the default configuration file, you can just use it. 2010/11/18 RogerV roger.var...@googlemail.com: Hi I'm setting up a new Struts 2 project - the first time I've started from scratch in ages. I think it

Re: Struts2, convention plugin, websphere 6.1

2010-11-18 Thread Li Ying
Everything submit from the client side, are passed as String. So you can't take object instance as your parameter. You need take the ids of these objects as parameter, and load object by the ids by you self. 2010/11/18 Harsh C hchau...@gmail.com: I think that is probably what it was.

Re: Jasper Relevancy

2010-11-18 Thread Frans Thamura
If? Don't get it Can share? /m/ -Original Message- From: Dave Newton davelnew...@gmail.com Date: Thu, 18 Nov 2010 07:00:57 To: Struts Users Mailing Listuser@struts.apache.org Reply-To: Struts Users Mailing List user@struts.apache.org Subject: Re: Jasper Relevancy If you want

Re: Interceptor Stack config

2010-11-18 Thread RogerV
Li Ying wrote: Why you define paramsPrepareParamsStack again? I believe it is already defined in the default configuration file, you can just use it. That's what I think I'm trying to do with the struts.xml ; struts constant name=struts.enable.DynamicMethodInvocation

Re: Jasper Relevancy

2010-11-18 Thread Dave Newton
People use JasperReports when they want reports. On Thu, Nov 18, 2010 at 7:25 AM, Frans Thamura fr...@meruvian.org wrote: If? Don't get it Can share? /m/ -Original Message- From: Dave Newton davelnew...@gmail.com Date: Thu, 18 Nov 2010 07:00:57 To: Struts Users Mailing

Re: Jasper Relevancy

2010-11-18 Thread Frans Thamura
Ya we want to make pdf as output But feel using struts2 more work than jsp May be anyone have a better solution /m/ -Original Message- From: Dave Newton davelnew...@gmail.com Date: Thu, 18 Nov 2010 07:38:42 To: Struts Users Mailing Listuser@struts.apache.org; fr...@meruvian.org

Re: Jasper Relevancy

2010-11-18 Thread Dave Newton
How is using S2 more work than JSP? You can't just use JSP, you still need a back end. And JR does things like pagination: try printing out a nicely-paginated report using JSP. Dave On Thu, Nov 18, 2010 at 7:37 AM, Frans Thamura fr...@meruvian.org wrote: Ya we want to make pdf as output But

Re: Interceptor Stack config

2010-11-18 Thread stanlick
You certainly have accomplished that with default-interceptor-ref name=paramsPrepareParamsStack/ however, Li is right; you did not need to redefine that stack, as it's in the default xml file in struts-core. Now then, you will only see this stack associated with actions in *this* package or

Re: Jasper Relevancy

2010-11-18 Thread Frans Thamura
We have both implementation I still work to make the json become jasper meta datasource, like ajax way which we want The jsp is more integrated. With ireport /m/ -Original Message- From: Dave Newton davelnew...@gmail.com Date: Thu, 18 Nov 2010 07:41:18 To: fr...@meruvian.org Cc:

Re: Jasper Relevancy

2010-11-18 Thread stanlick
So that's why nothing is really happening in my JSP? Can you tell us more about this back-end deal? :) On Thu, Nov 18, 2010 at 6:41 AM, Dave Newton davelnew...@gmail.com wrote: How is using S2 more work than JSP? You can't just use JSP, you still need a back end. And JR does things like

Re: Jasper Relevancy

2010-11-18 Thread Frans Thamura
We use hibernate and spring as ioc The jsp just plain jdbc and several list /m/ -Original Message- From: stanl...@gmail.com Date: Thu, 18 Nov 2010 06:46:46 To: Struts Users Mailing Listuser@struts.apache.org Reply-To: Struts Users Mailing List user@struts.apache.org Subject: Re: Jasper

RE: Filed Error message withput bullets.

2010-11-18 Thread Satheesh Kannan A B
Hi, Thanks for all. I created my own style and updated the list-style-type:none. Its working fine. Regards, Satheesh Kannan A B -Original Message- From: Chris Pratt [mailto:thechrispr...@gmail.com] Sent: Wednesday, November 17, 2010 11:00 PM To: Struts Users Mailing List Subject:

Re: Struts2, convention plugin, websphere 6.1

2010-11-18 Thread Aaron Brown
Gently bringing this thread back to the topic in the subject line... Does anyone have any ideas about why my WebSphere 6.1 server would be ignoring the convention plugin and not loading any of my struts2 annotations into the context? I did see some references in the websphere patch info to

Re: Filed Error message withput bullets.

2010-11-18 Thread Maurizio Cucchiara
Well done :) 2010/11/18 Satheesh Kannan A B satheesh.kan...@hcl.com Hi, Thanks for all. I created my own style and updated the list-style-type:none. Its working fine. Regards, Satheesh Kannan A B -Original Message- From: Chris Pratt [mailto:thechrispr...@gmail.com] Sent:

Re: Struts2, convention plugin, websphere 6.1

2010-11-18 Thread Dave Newton
I'd backtrack and deploy a simple app with only a single annotated action and the convention plugin and start from there; it's loading the plugin. I'd also check the configuration parameter reference:

Clear up concept of validation() call

2010-11-18 Thread Anjib Mulepati
Hi everyone I got confuse with the call of ActionForm in Struts 1.3.8 If I have Form as follow with validate() method public class MyTestForm extends org.apache.struts.action.ActionForm { String myTestString; public MyTestForm() { super(); } public String

Re: Clear up concept of validation() call

2010-11-18 Thread Paweł Wielgus
Hi Anjib, have You set validate=true in struts-config.xml for this action like below? action path=/path/to/action type=com.UploadAction name=myTestForm input=tile.definition validate=true Best greetings, Paweł Wielgus. 2010/11/18 Anjib Mulepati anji...@hotmail.com: Hi everyone I got

Re: Clear up concept of validation() call

2010-11-18 Thread Dave Newton
You'll also need the validation plugin [1], and you might want to read the validation docs as well [2]. Dave [1] http://struts.apache.org/1.3.10/userGuide/building_view.html#form_validation http://struts.apache.org/1.3.10/userGuide/building_view.html#form_validation [2]

Re: Clear up concept of validation() call

2010-11-18 Thread Anjib Mulepati
Thanks Pawel That was the problem. I have validate=false. don't know why I did that? :) And I guess default value is true for this right? Thanks again Anjib On 11/18/2010 11:02 AM, Paweł Wielgus wrote: Hi Anjib, have You set validate=true in struts-config.xml for this action like below?

Re: Clear up concept of validation() call

2010-11-18 Thread Anjib Mulepati
Sure Dave I will look into these docs. Thanks Anjib On 11/18/2010 11:12 AM, Dave Newton wrote: You'll also need the validation plugin [1], and you might want to read the validation docs as well [2]. Dave [1] http://struts.apache.org/1.3.10/userGuide/building_view.html#form_validation

Databinding a checkboxlist

2010-11-18 Thread Altenhof, David Aron
Trying to figure out a way to do the following without much luck. I have an enumeration with a list of menu options and corresponding labels such as: public enum Color { RED(Red), BLUE(Blue), GREEN(Green); private String myLabel; private

Re: struts2.1 validation problem! with fileUploadStack

2010-11-18 Thread Mead Lai
Thank you, Dave. Your explain is helpful for me to understand it. I want to validate the birthday in struts2 validation.xml, The range of date is between 1900-01-01 and current Date. How to get current date time in the struts2 validation.xml,? Thanks! field name=birth field-validator type=date