using an attribute inside a tile

2003-10-07 Thread Sonam Belbase
Hi, I have a layout contentFrameLayout.jsp: html head/head body tiles:useAttribute name=screenName scope=request/ tiles:insert attribute=header / tiles:insert attribute=body / tiles:insert attribute=footer / /body /html In my tiles-def.xml, I assign values to these attributes:

Re: using an attribute inside a tile

2003-10-07 Thread Sonam Belbase
add the line: bean:define id=screenName name=screenName toScope=request / And it should work for you. Sonam Belbase wrote: Hi, I have a layout contentFrameLayout.jsp: html head/head body tiles:useAttribute name=screenName scope=request/ tiles:insert attribute=header

form properties and html:options 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 html:options with collection

2003-10-13 Thread Sonam Belbase
in the form. robert -Original Message- From: Sonam Belbase [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 12:49 PM To: Struts Users Mailing List Subject: form properties and html:options with collection Hi, What is the best way of setting a Java Collection which

Re: form properties and html:options with collection

2003-10-13 Thread Sonam Belbase
: If you continue to forward, 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 Belbase [mailto:[EMAIL

Actions and html:form

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

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

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; % bean:define id=nameOfButton value=%=choice% / html:link action=dcIndicator target=templateFrame paramId=choice paramName=nameOfButton Click here /html:link why does request_.getAttribute(choice); in my action retrieve null? Is this

Re: Tiles and Frames

2003-10-22 Thread Sonam Belbase
Michael, Not sure if this works, but I thought I might suggest this: frame src=tiles:getAsString name='left'/ name=menu in your layout. Then in your definition or your jsp you can assign the path of the jsp with put name=left value=/path/to/your/jspfile.jsp / Hope it works.. SB Frers

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 question Hi, If I've got % String

Hi Ted, any more on html:control?

2003-10-23 Thread Sonam Belbase
Hi Ted, Has the html:control 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

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

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'm trying to understand

please help: ActionForms of same type but different name?

2003-10-27 Thread Sonam Belbase
Given the following code in my jsp: logic:iterate id=element name=dynamicFormList type=java.lang.String html:form action=/login name=%=element% type=com.oreilly.struts.storefront.security.LoginForm User Name: html:text property=userName size=20 maxlength=50/ Password: html:text

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

2003-10-27 Thread Sonam Belbase
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 [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 6:16 PM

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
. Based on the formIteration value you know which of the n forms was used to login. Hope that helps. -Tim -Original Message- From: Sonam Belbase [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 6:37 PM To: Struts Users Mailing List Subject: Re: please help: ActionForms

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

2003-10-28 Thread Sonam Belbase
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 confusing! : ) SB Sonam Belbase wrote: Tim, We do have the same form and the same action and more specifically, we

quick html:link question

2003-10-30 Thread Sonam Belbase
Does html:link have to be within a html:form/html:form 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

Quick form property question

2003-11-06 Thread Sonam Belbase
Hi, Inside a html:form/html:form 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: html:hidden property=currentTab / Thanks, SB -- NOTICE: If received in error, please destroy and notify sender. Sender does not

bean:define 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? bean:define id=availableNames name=myList type=java.util.List / html:options collection=availableNames

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. html:link href=javascript:setSaveUrl('save'); style={text-decoration: none;} img src=../../images/save_journal.gif/ /html:link If anyone can tell me how I can get the

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

Re: struts validation and dispatch action

2003-12-15 Thread Sonam Belbase
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. But what if only one method in the dispatch action requires field X