[tiles] Re: tile problem: how to find the "put" tag name attribute from called jsp/servlet

2006-10-12 Thread Antonio Petrelli
[EMAIL PROTECTED] ha scritto: Hi, This is a tiles "how can I do this" question. Can a jsp/servlet called via the tiles 'put' tag know it's "region" name? For example, can the 'getcontent' servlet (below) know get the 'name' attribute of the 'put' tag, is "center section"? Shor

Re: Application setup using Ant

2006-10-12 Thread Manfred Wolff
You can specify e.g. a lib directory with a classpath id. In other sections you can reference this id. Manfred Struts goes mobile: http://www.strutsme.org. Now 1.0Beta3 available. Medicherla Lakshmi wrote: > Hi All, > > Can anyone tell me how to includ

Application setup using Ant

2006-10-12 Thread Medicherla Lakshmi
Hi All, Can anyone tell me how to include classpath in build.xml file. Actually i want to run database script file using build.xml file for which i need to set the classpath with .jar file of the particular database java connector. where dbconnectorname i

Re: Re: [Struts 2] s:url method attribute being ignored

2006-10-12 Thread Ted Husted
If you are using the "dynamic invocation syntax" or wildcards, then you could try -T. On 10/10/06, Garner Shawn <[EMAIL PROTECTED]> wrote: Details is being rendered as: Details Thanks Shawn -- Forwarded me

Re: [Struts2] generating ActionErrors in the Action?

2006-10-12 Thread Ted Husted
There's a separate tag: -- HTH, Ted. * http://www.husted.com/struts/ On 10/11/06, Sébastien LABEY <[EMAIL PROTECTED]> wrote: Thanks Dave for your answer. I have just one more question : I'm not sure about the methods in ActionSupport : addFieldError(), addActionError() and addActionMessage().

Re: [Struts2] "scope" attribute for Action configuration in struts.xml file

2006-10-12 Thread Ted Husted
A simple way to do this is to define a Spring bean and then expose that as an Action property. Struts will automatically inject the Spring bean into the Action if the Action property name matches the Spring Bean ID. * http://jroller.com/page/TedHusted?entry=struts_2_spring_love_fest As others ha

RE: iterating of collection of HashMapsusing logic:iterate

2006-10-12 Thread Vinod Kumar
Thanks Pradyumna !! I am able to make it work as suggested by you. Thanks Vinod --- "Pradyumna kumar, Jena (J.)" <[EMAIL PROTECTED]> wrote: > try somethin like this > > > > <% > > Map cuurentMap=((Map.Entry > )currentEntry).getvalue(); > > PageContext.setAttribute("cuurentMap",cuure

RE: iterating of collection of HashMapsusing logic:iterate

2006-10-12 Thread Pradyumna kumar, Jena \(J.\)
or in the inner iterate have both name set to entry and property to value From: Vinod Kumar [mailto:[EMAIL PROTECTED] Sent: Fri 10/13/2006 6:29 AM To: user@struts.apache.org Subject: iterating of collection of HashMapsusing logic:iterate Hi All, I have hashmap

RE: iterating of collection of HashMapsusing logic:iterate

2006-10-12 Thread Pradyumna kumar, Jena \(J.\)
try somethin like this <% Map cuurentMap=((Map.Entry )currentEntry).getvalue(); PageContext.setAttribute("cuurentMap",cuurentMap); %> // here u need to process the entries From: Vinod Kumar [mailto:[EMAIL PROTECTED] Sent: Fri 10/13/2006 6:29

iterating of collection of HashMapsusing logic:iterate

2006-10-12 Thread Vinod Kumar
Hi All, I have hashmap with key/value but the value in this hashmap is another hashmap. How can I iterate over all the values using logic:iterate. HashMap h1 = new HashMap(); String id=1; HashMap h2 = new HashMap(); h2.put(id,"123"); h2.put("key1","456"); h2.put("key2","789"); then I make entry

help: Forms with a varying number of field groups

2006-10-12 Thread tomnguyen
Hi, I have a form that has a varying number of field groups. For example, for a certain type of customer, you can have an Address Group, Shipping Group, Customs Group. For another type of customer, you dont have the Shipping Group, but may have a few other groups. Up to now, there are 30 different

tile problem: how to find the "put" tag name attribute from called jsp/servlet

2006-10-12 Thread [EMAIL PROTECTED]
Hi, This is a tiles "how can I do this" question. Can a jsp/servlet called via the tiles 'put' tag know it's "region" name? For example, can the 'getcontent' servlet (below) know get the 'name' attribute of the 'put' tag, is "center section"? I know that we can define tiles via

Re: [Struts2] reading the ResultConfig parameters...

2006-10-12 Thread Sébastien LABEY
OK I'm a little surprised because so many parameters are defined with constants, but I will do it with "location". Thanks On 10/11/06, Don Brown <[EMAIL PROTECTED]> wrote: I don't believe there is a constant for the "location" string; just use "location" :) Don On 10/11/06, Sébastien LABEY <[

Re: Adding dynamic elements to form?

2006-10-12 Thread Sandeep Gupta
create a main form VO which will hold an array of child form VO. the child form VO will map to the row elements pass this main form VO to struts and in the action class iterate over this array to get all row elements hope this helps. - Sandeep On 10/12/06, Mallik <[EMAIL PROTECTED]> wrote: H

RE: How to pass data from one Action class to another Action class?

2006-10-12 Thread Bruno Melloni
It's been a long time since I did this, so I hope that I won't make a fool of myself by remembering incorrectly. I believe something like request.setAttribute(...)or even session.setAttribute(...) allows you to pass data around. I'm probably missing some pieces, but this should get you starte

Adding dynamic elements to form?

2006-10-12 Thread Mallik
Hi friends i have a situation where i should go for dynamic form elements. that is i have aproblem like this: i will give statically one row to enter the details, if he needs more rows he will click on button then we should provide one more row.how can we do it in struts,help me please form l

RE: [Struts2] Canonical application-based, role-based authentication.

2006-10-12 Thread Dave Newton
From: Don Brown [mailto:[EMAIL PROTECTED] > Haha, one new library at a time, eh? Like pulling teeth, but twice as bloody. Ticketed. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

RE: [Struts2] Tiles: TLD location.

2006-10-12 Thread Dave Newton
From: Don Brown [mailto:[EMAIL PROTECTED] > Hm..when extracting tiles into a plugin, we could have misplaced the > TLD. Add a JIRA ticket for the issue so we don't forget it. Done. (For future reference, what component should I have ticketed this under? I wasn't sure so I put "unknown," sorry!)

Re: Indexed Properties in Struts

2006-10-12 Thread Aftab Vhora
Hi Yadav, have a look at below link u'll find something of ur intrest ... http://www.developer.com/java/ejb/article.php/2233591 http://www.developer.com/java/ejb/article.php/10931_3321521_1 Thanks & Regards, Aftab Vhora Barun Kumar Yadav wrote: Hi I'm using Indexed Properties with Struts

Indexed Properties in Struts

2006-10-12 Thread Barun Kumar Yadav
Hi I'm using Indexed Properties with Struts and am attempting to over-ride the getter method of a List while trying to retrieve data. I have an example where I use the tag to retrieve contents of a List And this code effectively calls the Getter function shown below public Object getStringI

Re: Tiles: attribute values within nested JSP's!

2006-10-12 Thread Antonio Petrelli
Andrew Martin ha scritto: ... So in JSP subcontent3.jsp I use the You have to put in page3.jsp! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tiles: attribute values within nested JSP's!

2006-10-12 Thread Andrew Martin
Is it also possible to define basic String attributes in this intermediate definition (or subpage3.overview definition) which can be read within subcontent3.jsp using the same approach? For example, something like this So in JSP subcontent3.jsp I use the