RE: How can I transfer a file to a struts based web application f rom a java application

2006-06-22 Thread Shoukat, Faisal
U could try sending it as an attachment in a SOPA message -Original Message- From: Steve Bosman [mailto:[EMAIL PROTECTED] Sent: 22 June 2006 11:27 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: How can I transfer a file to a struts based web application from a java applicat

RE: Bean Information not Displaying on Failed Validation

2006-06-20 Thread Shoukat, Faisal
Is your form in the session scope in the struts-config.xml? -Original Message- From: Wiles, Cory [mailto:[EMAIL PROTECTED] Sent: 20 June 2006 03:54 To: user@struts.apache.org Subject: Bean Information not Displaying on Failed Validation I have a form that a user fills out, selects from a

RE: evaluating list backed action form value in javascript

2006-06-14 Thread Shoukat, Faisal
t the problem I started with which is how to pass the value of the element to the JS function. Is there anyway I can pass as a parameter to a function into the of struts without using the -Original Message- From: Shoukat, Faisal Sent: 14 June 2006 11:51 To: 'Struts Users Mailing

evaluating list backed action form value in javascript

2006-06-14 Thread Shoukat, Faisal
Hi, I am using a list backed action form and need some advice on how to get the value from the html:text box so I can do some logic with it in a javascript function. In my case I have the following: " size="20" onblur="<%=jsFunction%>"/> My jsFunction is as follows: javascript:calculate('<%=

check invalid date with validator framework

2006-06-09 Thread Shoukat, Faisal
Hi Is there a way to check if the date is a valid date in the validator framework. If I enter a invalid date such as 67/06/2006 it returns me the error message Created Date is not a valid date format (dd/mm/). Which is the error.date in my message resources. However I want to not check the

RE: Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Shoukat, Faisal
perty attribute supports expressions, you could set the value of the into a page scoped variable then write it into the property attribute using an expression. For example, using c:set from JSTL: -Original Message- From: Shoukat, Faisal [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 06, 2006 8:

RE: Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Shoukat, Faisal
Hi, Can anyone advise on how to call a jsp tag as a parameter to another jsp tag: For example: (this is completely hypothetical but matches my case) Now in the property element I Want to call another tag which is already written which returns me the string required for example So it would lo

Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Shoukat, Faisal
Hi, Can anyone advise on how to call a jsp tag as a parameter to another jsp tag: For example: (this is completely hypothetical but matches my case) Now in the property element I Want to call another tag which is already written which returns me the string required for example So it would lo

RE: dispatch action error

2006-06-02 Thread Shoukat, Faisal
[Submit] -Adam -----Original Message- From: Shoukat, Faisal [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 5:35 AM To: Struts Users Mailing List Subject: dispatch action error Hi Guys, I am after some advice with the following: I am submitting a form which has t

dispatch action error

2006-06-02 Thread Shoukat, Faisal
Hi Guys, I am after some advice with the following: I am submitting a form which has the value as selected in a drop down. From my struts config.xml it forwards to the correct dispatch action class method. And does the processing within that method. However just before returning to the ne

RE: displaying document in pop up window

2006-05-12 Thread Shoukat, Faisal
))); ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512); int imageByte; while((imageByte = in.read()) != -1) { byteStream.write(imageByte); } in.close(); byteStream.writeTo(response.getOutputStream()); %> Shoukat, Faisal wrote: > Hi All,

displaying document in pop up window

2006-05-12 Thread Shoukat, Faisal
Hi All, I am wanting to know how to display an uploaded document from clicking on a link on my JSP. I have managed to save the document into the database, and I can load the document from the database. When I click to open the document I have to save it to my file system first then open it. Has

RE: how to deal with request attributes and validation?

2006-05-12 Thread Shoukat, Faisal
R u using the validator framework -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of dario Sent: 12 May 2006 09:36 To: user@struts.apache.org Subject: how to deal with request attributes and validation? hello everybody, I'd like to know how do you deal with situations

RE: Problems fetching struts-config DTD

2006-05-11 Thread Shoukat, Faisal
U could use a classpath entity resolver and put the dtd in a jar on the path -Original Message- From: A. Alonso Dominguez [mailto:[EMAIL PROTECTED] Sent: 11 May 2006 11:25 To: Struts Users Mailing List Subject: Re: Problems fetching struts-config DTD Take a look to the possible configura

RE: [OT] calling js function with list backed form value

2006-05-04 Thread Shoukat, Faisal
Try replacing the code javascript:calculate('<%="benefits[" + index.intValue() + "].value"%>',...with javascript:calculate('<%= benefits[index.intValue()].value%>',... (removing the string concatenation) Hope this will help Cheers,

RE: [OT] calling js function with list backed form value

2006-05-04 Thread Shoukat, Faisal
which the event occured. Note: I have never used and don't know much about it. My thoughts. Thanks, Vijay Venkataraman Shoukat, Faisal wrote: >Hi, > >I have a list backed action form and want to call a javascript function with >one of the parameters to the function being a valu

???en_GB. in errors

2006-05-04 Thread Shoukat, Faisal
Hi, I throw a application exception back to the web layer and catch it in my action class. I then create a errors object with the exception as follows: errors.add("errors", new ActionMessage(e.getCause().getMessage())); saveErrors(request, errors); When it displays the error on the jsp it displ

calling js function with list backed form value

2006-05-04 Thread Shoukat, Faisal
Hi, I have a list backed action form and want to call a javascript function with one of the parameters to the function being a value from the list backed action form. My js function is as such: javascript:calculate('<%="benefits[" + index.intValue() + "].value"%>', '',

RE: creating dynamic forms with struts

2006-05-02 Thread Shoukat, Faisal
U want to use Map or List backed action forms Look it up on the web in the struts doc for an example -Original Message- From: Silvija Cardzic-Mrsa [mailto:[EMAIL PROTECTED] Sent: 02 May 2006 09:33 To: user@struts.apache.org Subject: creating dynamic forms with struts Hi, is it possible

writing struts tags within other struts tags

2006-04-26 Thread Shoukat, Faisal
Hi, I am wanting to know how to include the tag within a tag inside a javascript function For example: The following loads the JSP page: " value="" size="20" onblur="javascript:calculate(<%="benefits["+index.intValue()+"].value"%>, , , , )"/> However the following when

RE: referencing variable in onclick event of html:link tag

2006-04-18 Thread Shoukat, Faisal
try removing the double quotes from the expression [<%=count%>]. bye "Shoukat, Faisal" <[EMAIL PROTECTED]> wrote: Can anyone help with explaining to me how to get a scriptlet into a html:linl tag in the onclick event. For example: I have two forms of t

referencing variable in onclick event of html:link tag

2006-04-18 Thread Shoukat, Faisal
Can anyone help with explaining to me how to get a scriptlet into a html:linl tag in the onclick event. For example: I have two forms of the same name in my jsp page. The way I am submitting the forms is to call the onclick event within the html:link tag as follows: [Sub mit] However w

RE: html:option on a nested collection

2006-03-23 Thread Shoukat, Faisal
15:35 To: Struts Users Mailing List Subject: Re: html:option on a nested collection Try using: If act is the third element in the list apps. On 3/23/06, Shoukat, Faisal <[EMAIL PROTECTED]> wrote: > > When I do the below in the form it submits > {exampleFormBean.apps.actions.act}

RE: html:option on a nested collection

2006-03-23 Thread Shoukat, Faisal
logic iterate tag : mailto:[EMAIL PROTECTED] Sent: 23 March 2006 15:35 To: Struts Users Mailing List Subject: Re: html:option on a nested collection Try using: If act is the third element in the list apps. On 3/23/06, Shoukat, Faisal <[EMAIL PROTECTED]> wrote: > > When I do the bel

RE: html:option on a nested collection

2006-03-23 Thread Shoukat, Faisal
- From: Vinit Sharma [mailto:[EMAIL PROTECTED] Sent: 23 March 2006 15:01 To: Struts Users Mailing List Subject: Re: html:option on a nested collection You can use EL extention of html tag and use something like this: Assuming getters are defined for all properties. Regds, On 3/23/06, Shoukat

html:option on a nested collection

2006-03-23 Thread Shoukat, Faisal
Hi Guys, I have a formBean which has a collection of objects within it called Apps. Each App object has several fields with one of these fields being a collection or list of Strings. ExampleFormBean properties are String Name String Class String Student List apps Each app object