using an attribute inside a tile

2003-10-07 Thread Sonam Belbase
Hi, I have a layout contentFrameLayout.jsp: In my tiles-def.xml, I assign values to these attributes: In struts-config, my action forwards to the definition "content.default" on success. I am trying to use the attribute screenName i

Re: using an attribute inside a tile

2003-10-07 Thread Sonam Belbase
defined in tiles definitions are available only in the "tiles" scope. > Therefore, you must redefine the attribute into the request scope if you > want it available to your sub tiles. > > So, in contentFrameLayout.jsp you add the line: > > > And it should work for you. &

form properties and with collection

2003-10-13 Thread Sonam Belbase
Hi, What is the best way of setting a Java Collection which holds Java Objects as a property of the form, and retrieving the Object and it's properties on a JSP? I've tried it as such but have not been successful: In my action, I have created a list called "myList" which holds objects of type "

Re: form properties and with collection

2003-10-13 Thread Sonam Belbase
rwarding. > If you redirect (which I suspect your are doing) and the form is > in the request scope, then you will lose all data set in the form. > > robert > > > -Original Message- > > From: Sonam Belbase [mailto:[EMAIL PROTECTED] > > Sent: Monday, Octob

Re: form properties and with collection

2003-10-13 Thread Sonam Belbase
ward, it shouldn't. But if you redirect anywhere > in the chain, then that data is gone. > > Double check your attribute name spelling in your code and config file. > That's tripped me up before. > > robert > > > -Original Message- > > From: Sonam

Actions and

2003-10-14 Thread Sonam Belbase
Hi, I have an actionA whose success should display jspA using properties from formA. These properties were set in actionA. Once the user is done with jspA, they click on a submit button and it should go to actionB, which has it's own form bean formB and display jspB on success. jspA looks like:

completely dynamic forms and jsp?

2003-10-20 Thread Sonam Belbase
How would you do this using Struts? User goes to a page where they can add profiles to a repository. There are two types of profiles a user can add. But the user can add as many profiles of each type as they want on that page. Profile type A requires input from 3 text boxes, and profile type B ne

multiple instances of same form?

2003-10-20 Thread Sonam Belbase
Hi, Is it possible to have multiple instances of the same form on one JSP? If yes, how can you make sure that only one form gets submitted at a time? -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.

quick html:link question

2003-10-22 Thread Sonam Belbase
Hi, If I've got <% String choice = "hello"; %> Click here why does request_.getAttribute("choice"); in my action retrieve null? Is this the right way to retrieve values of params you pass with html:link to an action? Thanks, SB -- NOTICE: If received in error, please destroy and no

Re: Tiles and Frames

2003-10-22 Thread Sonam Belbase
Michael, Not sure if this works, but I thought I might suggest this: in your layout. Then in your definition or your jsp you can assign the path of the jsp with Hope it works.. SB Frers Michael wrote: > Hello > > did anyone ever tried to combine Frames and Tiles? > > i want to build a pag

Re: quick html:link question [solved]

2003-10-22 Thread Sonam Belbase
Thanks, that worked! SB "Ghanakota, Vishu" wrote: > Try request.getParameter() > > -Original Message- > From: Sonam Belbase [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 22, 2003 11:43 AM > To: Struts Users Mailing List > Subject: quick html:link q

Hi Ted, any more on ?

2003-10-23 Thread Sonam Belbase
Hi Ted, Has the you mention below been implemented already or is it in the works at all? Thanks, SB Ted Husted wrote: > Shishir K. Singh wrote: > > Is there a way that I can create a form dynamically based on some XML > > configurable file. The configurable file will say what kind of input

question about reset()

2003-10-27 Thread Sonam Belbase
I'm trying to understand ActionForms a bit better and here is my question: If the servlet controller automatically invokes the reset() method before passing the ActionForm bean to the Action implementation class instance, how can you use the form's properties' values in your action? Is this why i

Re: question about reset()

2003-10-27 Thread Sonam Belbase
OK thanks Brice and Manish, I was not able to retrieve the values of my form properties in my action and according to your explanations, I can rule out reset() as the source of the problem. Thanks. SB Manish Singla wrote: > Please see below .. > Sonam Belbase wrote: > > I

please help: ActionForms of same type but different name?

2003-10-27 Thread Sonam Belbase
Given the following code in my jsp: User Name: Password: element has the value "LoginForm_1" in the first iteratation, "LoginForm_2" in the second iteration, and so on. In struts-config: LoginForm extends ActionForm. I understand that the attributes "name" and "type" ha

Re: please help: ActionForms of same type but different name?

2003-10-27 Thread Sonam Belbase
the same name for all of them (well not html:form name in Struts > 1.1+ but rather use name in action definition). > Or If you explain your requirements a bit more we could come up with a > better solution/explanation. > -Tim > > -Original Message- > From: Sonam Belbase [

wildcard matching support

2003-10-28 Thread Sonam Belbase
Hi, I am looking to use Wildcard matching support for my action mappings. I am currently using Struts 1.1 . This feature does not seem to be supported in the build I have . If any one has used the WildCardMatching support in struts ,I would like to know the release build to use to pick up these

Re: please help: ActionForms of same type but different name?

2003-10-28 Thread Sonam Belbase
ulated ie. don't put n in end (duh) :) > > >value="${loopCnt}"/> > > > > > > > Now your action is pretty simple. > Based on the formIteration value you know which of th

Re: please help: ActionForms of same type but different name?

2003-10-28 Thread Sonam Belbase
s at the action associated with the submitted form, sees that it is loginActionA, looks for the associated form (which from the action-mapping is "LoginFormTypeA") and since it cannot find one, creates one. Thus form.get("userName") returns null. Hope this is not too confus

quick html:link question

2003-10-30 Thread Sonam Belbase
Does have to be within a section? Thanks, SB -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - To unsubscribe, e-mail: [EMAIL PRO

Quick form property question

2003-11-06 Thread Sonam Belbase
Hi, Inside a section I have some java code: <% String theTab = ""; %> how do I get theTab to have the value of a property on the form such as: Thanks, SB -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is pr

question

2003-11-17 Thread Sonam Belbase
Hi, If I have <% List myList = (List) someList; %> where someList is a list of objects whose name property I want to display in a dropdown, why doesn't the following work? Thanks, Sonam -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confiden

Re: question

2003-11-17 Thread Sonam Belbase
Thanks, Nick. That solved it. -SB Nick Heudecker wrote: > It doesn't work because you must put the variable into the page scope: > > <% > List myList = (List) someList; > pageContext.setAttribute("myList", myList); > %> > > > If I have > > > > <% > > List myList = (List) someList; > > %>

links without underline/border

2003-11-24 Thread Sonam Belbase
I'm trying to get the image be a link and not be underlined, but the following still renders an image with with a border. If anyone can tell me how I can get the link image to display just on it's own, I'd appreciate it. Thanks, SB -- NOTICE: If received in error, please destroy and not

struts validation and dispatch action

2003-12-15 Thread Sonam Belbase
Hi, I've noticed that since validation is defined in the action mapping, it will apply to all methods of a dispatch action. But what if only one method in the dispatch action requires field X to be populated/selected and another method doesn't care. Is there a way to apply struts validation to onl

Re: struts validation and dispatch action

2003-12-15 Thread Sonam Belbase
the action mappings look like? Thanks, SB Joe Germuska wrote: > At 4:56 PM -0500 12/15/03, Sonam Belbase wrote: > >Hi, > > > >I've noticed that since validation is defined in the action mapping, it > >will apply to all methods of > >a dispatch action. Bu