Application setup using Ant

2006-10-13 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. target name=classpath path pathelement

Re: Application setup using Ant

2006-10-13 Thread Manfred Wolff
You can specify e.g. a lib directory with a classpath id. path id=xdoclet.class.path fileset dir=./lib include name=**/*.jar/ /fileset /path In other sections you can reference this id. taskdef name=ejbdoclet classpathref=xdoclet.class.path

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

2006-10-13 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? definition

Re: Application setup using Ant

2006-10-13 Thread Medicherla Lakshmi
Thank you very much. Its working now, but can u tel me one thing wht is classname u gave in the taskdef. one more doubt, am writing the task for running the databasescript file using the classname and url. am trying to get these using a properties file, so that i do not hardcode those

Form name

2006-10-13 Thread Marcello Savino
Using Struts the tag html:form action=myAction is rendered in this way form name=myActionForm method=post action=/Base/myAction The problem is that in my application the rendered XML file MUST be a valide xhtml1.0 strict file and the DTD strict does not allow the attribute name for the tag form.

Re: Form name

2006-10-13 Thread Mikolaj Rydzewski
Marcello Savino wrote: Using Struts the tag html:form action=myAction is rendered in this way form name=myActionForm method=post action=/Base/myAction The problem is that in my application the rendered XML file MUST be a valide xhtml1.0 strict file and the DTD strict does not allow the attribute

R: Form name

2006-10-13 Thread Marcello Savino
Yes it works but the problem is that the rendered file is not a valid xhtml1.0 strict file, cause the atribute name. I need a workaround to avoid the attribute name to appears in the rendered file. Ciao, MArcello -Messaggio originale- Da: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED]

Re: R: Form name

2006-10-13 Thread Mikolaj Rydzewski
Marcello Savino wrote: Yes it works but the problem is that the rendered file is not a valid xhtml1.0 strict file, cause the atribute name. I need a workaround to avoid the attribute name to appears in the rendered file. I use struts 1.2.7. Sample JSP: html:xhtml / html:form

R: R: Form name

2006-10-13 Thread Marcello Savino
Thanks, let me try . URRAH it works ! No more name attributes Thanks a lot Ciao, Marcello -Messaggio originale- Da: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Inviato: venerdì 13 ottobre 2006 10.05 A: Struts Users Mailing List Oggetto: Re: R: Form name Marcello Savino wrote:

html:submit with a javascript variable on the onclick attribute

2006-10-13 Thread JCO
Hello, I'm trying to pass a variable to a javascript function within a onclick attribute of html:submit tag, but it doesn't resolve the value of the varieble. This is the code I'm using: %String ent = (String)request.getAttribute(entidad); % html:submit property=op

[help] couldn't upload file with utf-8 name :(

2006-10-13 Thread Pham Anh Tuan
Hi all, I got a problem when I use File Upload to upload 1 file with utf-8 name, ex: あのひと.jpg :( who has experience in this problem, plz help me :| thanks in advance, bowlkhin - To unsubscribe, e-mail: [EMAIL PROTECTED]

[Struts2] manual Token management : always possible?

2006-10-13 Thread Sébastien LABEY
Hi, Is it always possible with Struts2 to manage the Token manually with saveToken(), resetToken().. ? I'm trying to upgrade from Struts1.2.8 to Struts2.0, and I would like not to modify all the existing (and working) code... I've seen there is a TokenTag to put a token (into request I suppose)

[OT] RE: Application setup using Ant

2006-10-13 Thread Dave Newton
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED] Can u tell me how to get the classname and other details of sql task from a properties file. property file=build/hibernate_objects/local.properties / You may want to consider reading the Ant documentation rather than posting to the Struts

Re: Adding dynamic elements to form?

2006-10-13 Thread Mallik
HI friend i am very new to struts, can you please send some example or artical on it ur's Mallik Sandeep Gupta wrote: 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

Re: [OT] RE: Application setup using Ant

2006-10-13 Thread Medicherla Lakshmi
Thank you. I could work it out. Dave Newton [EMAIL PROTECTED] wrote: From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED] Can u tell me how to get the classname and other details of task from a properties file. You may want to consider reading the Ant documentation rather than posting to

percentage formating in bean write

2006-10-13 Thread Theodor Grip
hi, I want to display a number as a percentage: that is, the number is e.g. 0.78781, and I want to display it as 78.78%. So I am using bean:write name=bean property=verfuegbarkeit formatKey=prozent/, and in my applicationResource.properties I have prozent=%. The problem is that it displays

Struts2 - FATAL ERROR while running mvn install

2006-10-13 Thread Arevalo, Cesar \(GE Comm Fin, non-ge\)
Hi All, Had been working fine with Struts2 repo a couple of days ago, however I had a problem with my tortoise client and had to start over again. So I went and downloaded the Struts2 repo again into my machine. However when running the mvn install over my struts2 folder I got the following:

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

2006-10-13 Thread Bill Milbratz
Hi Antonio, Thanks for responding. Short answer: no. But the question is: what do you want it for? Yes. I should have clarified. Basically we want to leverage tiles to create a 'poor man's portal' (i.e. something simple w/o going full-blown jsr 168). We envisioned the following. The

Re: Nested forms.

2006-10-13 Thread Puneet Lakhina
On 10/13/06, Peter L. Berghold [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi folks, I have a real newbie question here. I've looked at various on line tutorials on this subject and for whatever reason I can't seem to wrap my head around this. My questions are two

global-exceptions does Not handle exceptions in JSP file?

2006-10-13 Thread Mississippi John Hurt
I know setting this will handle exceptions from struts actions, but say an action forwards to a jsp, then in the jsp file you get an exception. How can you catch those exceptions? I need to use the web.xml exception handling instead of the struts global-exceptions tag right? Yes, No? Thanks.

Re: iterating of collection of HashMapsusing logic:iterate

2006-10-13 Thread Puneet Lakhina
On 10/13/06, Vinod Kumar [EMAIL PROTECTED] wrote: 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);

RE: iterating of collection of HashMapsusing logic:iterate

2006-10-13 Thread Bruno Melloni
I think you need nested:iterate instead of logic:iterate in the inner tag. But please correct me if I'm wrong. -Original Message- From: Puneet Lakhina [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 1:58 PM To: Struts Users Mailing List Subject: Re: iterating of collection of

copy from one DynaActionForm to another?

2006-10-13 Thread Brian Long
Hi folks. I've got a DynaActionForm that I use for query, and another that I use for update - and they share some data elements. I'd like to copy data from my query form to my update form, but I don't see a way to explicitly get a form by name. The Query Form is Session scoped, so it should be

Re: Nested forms.

2006-10-13 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Puneet Lakhina wrote: This is where you could use indexed or mapped properties. http://struts.apache.org/1.x/struts-taglib/indexedprops.html And as for generating this form.. Dont think you need full fledged AJAX.. DHTML javscript to generate

Static objects in Struts Application ..

2006-10-13 Thread souravm
Hi, If there are two different Struts applications deployed on the same Tomacat instance, what happens to the static objects within the Struts framework? My guess is Struts maintains different Static objects for each application in a hash map. Can anyone confirm ? Regards, Sourav

Re: iterating of collection of HashMapsusing logic:iterate

2006-10-13 Thread Vinod Kumar
Thanks Puneet. I will try your solution as well. vinod --- Puneet Lakhina [EMAIL PROTECTED] wrote: On 10/13/06, Vinod Kumar [EMAIL PROTECTED] wrote: 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

Re: Nested forms.

2006-10-13 Thread Puneet Lakhina
On 10/14/06, Peter L. Berghold [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Puneet Lakhina wrote: This is where you could use indexed or mapped properties. http://struts.apache.org/1.x/struts-taglib/indexedprops.html And as for generating this form.. Dont think

Re: Static objects in Struts Application ..

2006-10-13 Thread Chris Pratt
Each Web Application within the container is loaded within it's own Context (and ClassLoader) which effectively keeps the static's separate. (*Chris*) On 10/13/06, souravm [EMAIL PROTECTED] wrote: Hi, If there are two different Struts applications deployed on the same Tomacat instance, what

Multiple file upload

2006-10-13 Thread Walter do Valle
Hello all I'm triying to develop a multi file upload (undefined number of files) using Struts and FileUpload. Because I don't know what how much files will be uploaded, I need to use same field name in my page and create new fields dinamically. My first ideia was to create an indexed property

date comparision using validwhen

2006-10-13 Thread fea jabi
can we use validwhen to do date comparision? we are using date pattern MM-dd-. the data type in form bean property is String. Thanks. _ Share your special moments by uploading 500 photos per month to Windows Live Spaces

Re: copy from one DynaActionForm to another?

2006-10-13 Thread Nuwan Chandrasoma
you can get it from session just use the below code. DynaActionForm myForm = (DynaActionForm )session.getAttribute(name_of_the_form_in_struts_config); i think u can copy this bean using BeanUtils class in commons util package.., see the API.. Hope this would help U. Thanks, Nuwan -