Re: [POLL] What do you use action forms for?

2005-05-12 Thread rmanchu
indeed. i was giving a simple example. it can well be an data insert form (where validation is required) - with some appropriate message/result returned with it. it is quite easy to use the same actionform for input/output riyaz Allistair Crossley wrote: well for a search form, it's not like you

Re: The field name in jsp

2005-05-12 Thread rmanchu
ormPropertyConfigs(); > for (int i = 0; i < formProps.length; i++) { > // get property > FormPropertyConfig prop = formProps[i]; > System.out.println(prop.getName()); > } > > > - Original Message - > From: "rmanchu" <[EMAIL PROTECTED]

Re: [POLL] What do you use action forms for?

2005-05-12 Thread rmanchu
pretty much what is on the input form. :) eg: a search form would return the same search form with the set parameters. the result i pass as a Collection in Request imho, in a lot of the cases (mostly simple) it is just not worth the effort to do a separation of input and output ActionForm 's ri

quick Digester help

2005-05-11 Thread rmanchu
got 3 classes, one for each XML node type. at the end, is a custom HashMap(parent-form.name, List-of(child-form)). in this setup the parent-form bean becomes obsolete although this setup works fine. i would like to remove use of the parent-form class altogether. what i don

Re: [POLL] What do you use action forms for?

2005-05-11 Thread rmanchu
#4 Michael Jouravlev wrote: Turns out, that my way of using action forms differs from many other Struts users' habits. So, I am wondering how do you use action forms. I could not find the same poll in mailing list archives, so I am starting this one. You can answer here in the thread, or in the pol

multiple forms from 1 action

2005-05-10 Thread rmanchu
i have the following case: click link "search" => action => output.jsp output.jsp has 2 forms, both forms use a hidden variable "table" link "search" passes parameter "table". action creates "search form" and "table" is correctly set by struts. now in output.jsp i have a tag that creates a "recen

Re: [OT] Help !! Too many select-box in one page

2005-05-10 Thread rmanchu
es html ... > > Cliff > > - Original Message - > From: "rmanchu" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Tuesday, May 10, 2005 5:27 PM > Subject: Re: [OT] Help !! Too many select-box in one page > > >

Re: [OT] Help !! Too many select-box in one page

2005-05-10 Thread rmanchu
how r u rendering you select boxes? ie, database call for each render? riyaz Cliff Lam wrote: > Hi, > > My page has too many select-box in one page. The .html has 17XXX lines. > > This make the page load for a long time to appear =( > > Anyone face this problem too?? > > Please give me some

Re: The field name in jsp

2005-05-10 Thread rmanchu
did u try with ur forms? i think it should work. also, if you're jsp is not backed by an action then, u'll need to create a form, which u can easily by using a RequestUtils.createActionForm method riyaz Cliff Lam wrote: > Thx a lot. > > This is a good method but I'm not using DynaActionForms =

Re: action to action

2005-05-09 Thread rmanchu
eral times. Then you tired, and you click Back, and you return from this form immediately, because it was stored in browser session history only once. On 5/8/05, rmanchu <[EMAIL PROTECTED]> wrote: hi. thanx to all who wrote back. after having read the replies and links provided i'm going to u

Re: action to action

2005-05-08 Thread rmanchu
hi. thanx to all who wrote back. after having read the replies and links provided i'm going to use the Redirect-after-Post method in my app. i would have to craft a dynamic Forward with the right params which i think for my needs is a much shorter/easier route. thanx to all. now i have a differ

Re: The field name in jsp

2005-05-08 Thread rmanchu
have used the following extensively with DynaActionForms. i would think that this would work with any extension of ActionForms. The form fields are represented by FormPropertyConfig objects contained within the FormBeanConfig objects. you could place the following code in you JSP and see what happe

Re: action to action

2005-05-08 Thread rmanchu
thanx michael. have one question though in the example above, the redirect would produce a new request object right? which means i'll lost some vars that i already have from my "action1" which r required in "action2" i'm thinking i shud redirect with the three parameters that i need - ie

action to action

2005-05-08 Thread rmanchu
i have to following scenario. interface1 =>action1 => action2 => interface2 is calling another action from an action discouraged in struts? what's the best solution for this? 1.2.4 to 1.3-dev thanx riyaz - To unsubscribe, e-mail: [

Re: Action's set-property Tag

2005-05-06 Thread rmanchu
set-property is available when u extend ActionConfig and include your getter/setter methods. [for 1.2.x branch ] if you're using 1.3.x-dev you can use to set arbitrary properties without extending the config class. Only available for ActionConfig as of now. hopefully all config's would get this

Re: 1.3 and chains

2005-05-04 Thread rmanchu
hi. i compiled with ant, no problems. ps: do u have build_tests.xml? did not get it in my download, so cannot run junit tests. riyaz Michael Jouravlev wrote: I checked out 1.3 from svn, compiled it and tried to run. Apparently, -

Re: Actions with wildcards

2005-04-30 Thread rmanchu
Joe Germuska wrote: You'll see that it goes through all of its configs before returning, which means that the last match should win. It's not explicitly documented as such in the JavaDoc. Hope that helps. Joe thanx joe. ok i guess that means and intelligent ordering of the actions should get

Actions with wildcards

2005-04-29 Thread rmanchu
hi guys is there an order in which actions are associated with? action1 ... path="/action/*/delete" action2 ... path="/action/*/*" if they were in that order, is it guaranteed that action1 will be evaluated first and then action2? thanx riyaz --

Re: AW: ActionForm key in request/session

2005-04-29 Thread rmanchu
in request/session? what about when using modules? is the prefix appended somewhere? thanx Leon Rosenberg wrote: How about the name? anyone know what is the key under which the actionform is stored within a request? - To unsu

ActionForm key in request/session

2005-04-29 Thread rmanchu
anyone know what is the key under which the actionform is stored within a request? riyaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

validator - date validation

2005-04-29 Thread rmanchu
hi guys in validator, date validation is based on locale. i want to fix it to SQL type dates only; -mm-dd is there a way to do this? or do i write the rule? riyaz. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

tiles - mapping.getInput()

2005-04-29 Thread rmanchu
hi menuAction and formAction are tiles definitions i've defined. both works fine - i can see from the first action mapping what i want to do here is that, if form validation fails, it should forward to the tiles definition formAction. (though not shown

Re: multipart-formdata

2005-04-28 Thread rmanchu
Dakota Jack wrote: you cannot use the ActionForm. From your question I assume you are using the ActionForm and wondering what in the heck happened to your multipart request? no. i just wanted to know if i do request.getParameter("paramname") within an Action for an ActionForm submitted as multipa

multipart-formdata

2005-04-28 Thread rmanchu
hi guys, long day today so am not thinking clearly :( if a multipart-formdata form was submitted, would a request.getParameter("paramname") return the correct values in an Action? the wrapper takes care of this right? )|( riyaz -

Re: Action <==> Tile

2005-04-27 Thread rmanchu
hi [EMAIL PROTECTED] wrote: In struts-config.xml change the element this way: this worked. struts-config comments: so i don't know y i have to explicitly declare it. using: strts 1.3-dev tiles 1.3-dev thanx a bunch riyaz -

Re: Action <==> Tile

2005-04-26 Thread rmanchu
Dave Newton wrote: In the struts configuration file. Instead of using a path to the JSP you use the name of the tile. You must also be using the Tiles plugin, as detailed in: i had defined it as that. and the error i get is below. menuAction is the name of tile definition Error :: Path menuActi

Action <==> Tile

2005-04-26 Thread rmanchu
this is probably very simple but someone please tell me. i've got the tile-defs set up - [name="classicLayout", page="/mypage.jsp"]. i've got the jsps set up. my problem is getting from the action to the tile-def page. currently my myAction extends struts.Action where's the connection ??? thanx

Tiles Usage

2005-04-26 Thread rmanchu
hi tiles newbie. am trying to incorporate Tiles to my existing struts project. can someone please explain to me how the following is supposed to work? 1) have a page with classic 4 tile layout (header, menu, body, footer) 2) on selecting a menuitem, the body and menu tiles change. if i submit to a