Re: Problem with Select tag during migration
2008/11/22 nikunj <[EMAIL PROTECTED]>: > But Struts2 doesn't support separate List data type for label and value. > Example: > > > listValue="value" > > listKey="key"> > > Data type of comboLabelValue is List, Which add object having key/value > property. But instead of using list you can use Map with key / value par, and put some KeyObject as a key and then ValueObject as your value, in such way you will have Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: About incresing file upload size in Struts 2
2008/11/22 Hardik Shah <[EMAIL PROTECTED]>: > can anybody give me detailed configuration to increase size of file upload in > struts 2.0.11.2 Take a look on that http://struts.apache.org/2.x/docs/how-do-we-upload-files.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
bean population problem in struts
Hello. I have a problem and have been trying to figure out for several days now. I have the following bean structure Customer Address CreditCard The problem is when the same page must be displayed again with the old data, due to validation errors from the user. The values of the properties of the Customer bean are repopulated correctly. The problem comes with the Address and CreditCard beans, which properties values are initialized for no apparent reason. These objects do not have null values. Instead [EMAIL PROTECTED] But if I try to get the address.getStreetName(), the value is blank, though a value was introduced. I store and retrieve my form bean from the session scope. And the struts automatic validation is set to false in the struts-config.xml, as I’m doing it manually. Can somebody help me telling me what I’m doing wrong? Thanks a lot in advance! -- View this message in context: http://www.nabble.com/bean-population-problem-in-struts-tp20648297p20648297.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bean population problem in struts
--- On Sun, 11/23/08, andyandy wrote: > I have the following bean structure > Customer > Address > CreditCard > The problem is when the same page must be displayed again > with the old data, due to validation errors from the user. > The values of the properties of the Customer bean are repopulated > correctly. The problem comes with the Address and CreditCard beans, > which properties values are initialized for no apparent reason. These > objects do not have null values. Instead > [EMAIL PROTECTED] > But if I try to get the address.getStreetName(), the value > is blank, though a value was introduced. > > I store and retrieve my form bean from the session scope. > And the struts automatic validation is set to false in the > struts-config.xml, as I’m doing it manually. > > Can somebody help me telling me what I’m doing wrong? Without further information it's impossible to help; including details like the actual configuration, form bean code, and so on is kinda helpful. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[HELP]: struts tag and OGNL
Hi, everyone. I have something wrong about the usage of struts tag and OGNL. Here is my problem: I want to generate the following html with tag: I use the tag like following: But it generate the below html: Is there anyone who can give some help,thanks a lot:handshake: -- View this message in context: http://www.nabble.com/-HELP-%3A-struts-tag-and-OGNL-tp20653798p20653798.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with Select tag during migration
Thanks Lukasz for your reply; But I have so many listBeans created for older Version of struts. And they are containing two lists instead of one map. Hance, it is not convenient to upgrade all beans to have map instead of two lists. I wanted to know any available option to use two lists (one for key and another for value) instead of using MAP. - Rajil -Original Message- From: Lukasz Lenart [mailto:[EMAIL PROTECTED] Sent: Sunday, November 23, 2008 3:02 PM To: Struts Users Mailing List Subject: Re: Problem with Select tag during migration 2008/11/22 nikunj <[EMAIL PROTECTED]>: > But Struts2 doesn't support separate List data type for label and value. > Example: > > > listValue="value" > > listKey="key"> > > Data type of comboLabelValue is List, Which add object having key/value > property. But instead of using list you can use Map with key / value par, and put some KeyObject as a key and then ValueObject as your value, in such way you will have Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 3632 (20081121) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: S2 custom tag - Passing custom tag attribute into action class
Hi, I think you have it backwards, or I don't understand what you are trying to > do. Depending on the value given for an attribute (say length) of my custom tag, I need to populate that many number of options in the select box (my custom tag will have one select box and few other controls). > Request->Struts2 Filter(etc,etc)->Action->View(ftl,jsp...)->Tags > If you need to call an action from the view, then you can use the "action" > tag. Ok, I'll check whether I can get attribute value if I use from ftl. ManiKanta
Re: [HELP]: struts tag and OGNL
try this ManiKanta
Re: Problem with Select tag during migration
2008/11/24 Rajil <[EMAIL PROTECTED]>: > I wanted to know any available option to use two lists (one for key and > another for value) instead of using MAP. Write your own tag for that, it will be more convenient. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with Select tag during migration
Ha. Ha. Ha. That means struts2 doesn't provide facility or say backward compatibility available in struts1?? Anyway, Thanks for your reply. -Original Message- From: Lukasz Lenart [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2008 1:12 PM To: Struts Users Mailing List Subject: Re: Problem with Select tag during migration 2008/11/24 Rajil <[EMAIL PROTECTED]>: > I wanted to know any available option to use two lists (one for key and > another for value) instead of using MAP. Write your own tag for that, it will be more convenient. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 3633 (20081124) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]