Re: Setting object from param tag fails in Struts 2.2.1

2010-11-15 Thread Maurizio Cucchiara
What does your collection contain at runtime? 2010/11/15 Raj Nagappan r...@velocitylabs.com Hi, we recently upgraded from Struts 2.0.14 to 2.2.1 and I notice that the following JSP code to inject an object property from one action into another action has stopped working: s:if

Validation xml for Radio button

2010-11-15 Thread Prabhubalaji Ragavan
Hi I am using a radio option in my code. when i try to validate that thru the validator.xml, the validation is not happening. this is my jsp content. s:radio label=Answer name=yourAnswer list=#{'1':'Yes','2':'No'} / this is my validator.xml content field name=yourAnswer field-validator

Alternative UrlRenderer bean

2010-11-15 Thread GF
Hello everyone. i want to use a custom UrlRenderer bean. reading Struts2 source code i found that is used to render the URLs generated by s:url .. If in my struts.xml I insert: bean type=org.apache.struts2.components.UrlRenderer name=mystruts class=org.apache.struts2.components.MyUrlRenderer/

Re: Alternative UrlRenderer bean

2010-11-15 Thread Nils-Helge Garli Hegvik
You can take a look at how the portlet plugin does this (which was actually why the UrlRenderer bean was created in the first place). In addition to defining the bean, you need to tell Struts to use your renderer: The portlet plugin does it like this: bean

Re: result type Jasper [Struts 2]

2010-11-15 Thread Dave Newton
On Mon, Nov 15, 2010 at 2:40 AM, @rju nagarjunabatt...@gmail.com wrote: Guys am also getting problem using jasper reports with struts 2.. please help me ASAP... same tutorial i too followed ... How can anybody help if we have no idea what problem you're having? Dave

Re: Setting object from param tag fails in Struts 2.2.1

2010-11-15 Thread Li Ying
[Ljava.lang.String; means a String array. Looks like you are trying to copy a List from one action to another. By somehow, struts2 is looking for a set method which take a String array as it's parameter. 2010/11/15 Raj Nagappan r...@velocitylabs.com: Hi, we recently upgraded from Struts

Re: result type Jasper [Struts 2]

2010-11-15 Thread Brian Thompson
On Mon, Nov 15, 2010 at 7:08 AM, Dave Newton davelnew...@gmail.com wrote: On Mon, Nov 15, 2010 at 2:40 AM, @rju nagarjunabatt...@gmail.com wrote: Guys am also getting problem using jasper reports with struts 2.. please help me ASAP... same tutorial i too followed ... How can anybody

Putting an Image (in Bytes) on the session

2010-11-15 Thread Greg Akins
This seems like maybe I'm approaching it wrong.. but wondering if it's possible. I'm wondering if I can put an image, in the form of a byte array, or stream, that I can read with either a struts tag, jstl, or el Thinking in my action session.put(image, image.getBytes()); and in the .jsp

Re: Putting an Image (in Bytes) on the session

2010-11-15 Thread Maurizio Cucchiara
You're right, it smells like a wrong approach :). Storing image's bytes is a space consuming practice. Anyway, Could you explain what do you need? 2010/11/15 Greg Akins angryg...@gmail.com This seems like maybe I'm approaching it wrong.. but wondering if it's possible. I'm wondering if I

Re: Putting an Image (in Bytes) on the session

2010-11-15 Thread Jesse Hill
Also, is there a particular reason why the data needs to go in the session instead of just adding a getImage() method to your action that will return the data that you need? -Jesse | | From: | |

Re: Putting an Image (in Bytes) on the session

2010-11-15 Thread Greg Akins
On Mon, Nov 15, 2010 at 12:49 PM, Jesse Hill jesse_h...@us.ibm.com wrote: Also, is there a particular reason why the data needs to go in the session instead of just adding a getImage() method to your action that will return the data that you need? You're right. I don't need it in the

Re: result type Jasper [Struts 2]

2010-11-15 Thread @rju
ok boss let me shou you my files -struts.xml ?xml version=1.0 encoding=UTF-8 ? /jasper/Report.jasper myList PDF

Re: result type Jasper [Struts 2]

2010-11-15 Thread Dave Newton
I can't actually see anything, but do you have an action configured for the report? On Mon, Nov 15, 2010 at 11:34 PM, @rju nagarjunabatt...@gmail.com wrote: ok boss let me shou you my files -struts.xml ?xml version=1.0 encoding=UTF-8 ?