Re: insertion problem view

2006-09-12 Thread pramod
Hai, Here You can use Synchronizer - Token Design Pattern. Thanks & Regards Pramod. - Original Message - From: "Gomathi" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, September 13, 2006 10:03 AM Subject: insertion problem view hai, i am inserting new row

RE: Submitting forms with javascript in struts

2006-09-12 Thread Raghuveer
for "document.formname.value" to be worked you need to use mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 4:50 PM To: user@struts.apache.org Subject: Submitting forms with javascript in struts Hello, I do have a problem, because I don't know how to submit a form with javascript in s

RE: Validation and Form Collections

2006-09-12 Thread Raghuveer
put the actionform scope in session in your mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 4:44 PM To: user@struts.apache.org Subject: Validation and Form Collections Hello Everyone, I have a question regarding validation. I have JSP that uses the Html:Options tag to populate a DDLB

RE: insertion problem view

2006-09-12 Thread David Friedman
Try struts tokens. -Original Message- From: Gomathi [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 12:33 AM To: Struts Users Mailing List Subject: insertion problem view hai, i am inserting new row into database using struts?Its perfectly inserted. Suppose i am right c

insertion problem view

2006-09-12 Thread Gomathi
hai, i am inserting new row into database using struts?Its perfectly inserted. Suppose i am right click the mouse then press refresh again row inserted once again(same value). How to solve this probleem. thanks and advance gomes

RE: tag library

2006-09-12 Thread David Friedman
David, struts-form.tld was deprecated before Struts v1.0 and the current version is 1.2.9. That suggests the documentation you are following is frightfully old (like 2001, 2002 old). If that is the case, keep in mind any references to perform() were replaced by execute() in actions. That was a

calling method of a bean from JSP

2006-09-12 Thread Lixin Chu
Hi, would like to check if there is existing tag available to allow method invocation from JSP directly, something similar to this : "Call JavaBean methods from JSP 2.0 pages " http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-calltag.html thanks lx

Re: FormFile arrays

2006-09-12 Thread Jeremiah Johnson
David Grundberg wrote: You are right about the jakarta commons fileupload and struts, you can't use commons fileupload in an action, because struts have already taken care of the multi-part parsing. You do have the option to make a servlet and commons fileupload, where you will have total contr

Re: DynaValidatorForm

2006-09-12 Thread David Durham
leo mj wrote: mallik, use java.lang.Integer for integer and java.util.GregorianCalendar for Time. Yeah, but you don't really want to do that, either. You're best bet is to use String types for form-bean values, and convert to a different type while handing off to a model layer. Reasoning

Re: FormFile arrays

2006-09-12 Thread Laurie Harper
Jeremiah Johnson wrote: I would like to upload multiple files on a single web page by having multiple elements. The exact number of these are different depending on the user who is using the application. So I want to store this in an array (FormFile[]) in order to have N number of files uploa

Re: Validation and Form Collections

2006-09-12 Thread Laurie Harper
John De Lello wrote: I have JSP that uses the Html:Options tag to populate a DDLB. The action Populate a what? :-) class creates the collection and puts it in the Form. All works fine until the form validation fails. When I come back from the form validation, I am getting a "Bean define canno

Re: how to dynamically internationalize login page

2006-09-12 Thread Laurie Harper
leo mj wrote: hi all, I think some fellow member has asked the same question.But I didn't find any reply for the old thread. So i have a scenario I have a login page with 1.Username 2.Password 3.Language Based on the language selected I have to reload the page. I have used interna

tag library

2006-09-12 Thread David Fonseca Sánchez
Hello I'm new in struts, and in a example, the jsp is the next: <%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %> UserName: enter password: re-enter password: but I don't find the archive struts-form.tld. I have + struts-be

Re: Globalizing some general validations in validation frame work?

2006-09-12 Thread Laurie Harper
Mallik wrote: HI friends i would like to say thanks to every one on this forum for your support the problem is.. i have some forms, each from has some common fields like id, name, etc i would like to specify the validations only once in validator.xml for all forms ( globalizing them for all form

Re: FormFile arrays

2006-09-12 Thread David Grundberg
You are right about the jakarta commons fileupload and struts, you can't use commons fileupload in an action, because struts have already taken care of the multi-part parsing. You do have the option to make a servlet and commons fileupload, where you will have total control of the form data. I'

Re: Session scope ActionMessages

2006-09-12 Thread Laurie Harper
OK, I understand what you're doing now. It sounds like you have a couple of options. You could override processCachedMessages() as you suggest, which may be the easiest solution. Alternatively, since you need custom message setup logic, perhaps it would make sense to provide a reciprocal messag

Re: Issue with MappingDispatchAction

2006-09-12 Thread Adam J Samere
What does the html:form for the DownloadSearch look like? It will be easier to see what is going on if you post the code. Adam Ruepen wrote: Thanks for the prompt reply. In regards to the javascript option, I've actually created 2 forms, so that now the action is set to "DownloadSearch" for

FormFile arrays

2006-09-12 Thread Jeremiah Johnson
I would like to upload multiple files on a single web page by having multiple elements. The exact number of these are different depending on the user who is using the application. So I want to store this in an array (FormFile[]) in order to have N number of files uploaded. When I try to use t

Re: Issue with MappingDispatchAction

2006-09-12 Thread Ruepen
Thanks for the prompt reply. In regards to the javascript option, I've actually created 2 forms, so that now the action is set to "DownloadSearch" for the "Download" button and with that I've created a respective Action and ActionForm. Which is mapped in the struts-config.xml file. But when I

Re: LookupDispatchAction call - onchange of an input field

2006-09-12 Thread Puneet Lakhina
On 9/12/06, fea jabi <[EMAIL PROTECTED]> wrote: Have a html:text . onchange of the value entered in this field, have to submit the form. Using LookupDispatchAction.

RE: Issue with MappingDispatchAction

2006-09-12 Thread Samere, Adam J
You could set the action of the single form using javascript in the onclick event of the download button. LookupDispatchAction may be better suited for what you are trying to do. Adam -Original Message- From: Ruepen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 2:44 PM To:

Re: Struts Model Layer in the MVC framework

2006-09-12 Thread Larry Meadors
On 9/12/06, Ray Madigan <[EMAIL PROTECTED]> wrote: Is there an alternative to Spring Integration. I have a project that I need to get a prototype out to the client FAST and I simply want to implement a Model layer with connection pooling. I have gone to the Spring Framework site and I don't hav

Issue with MappingDispatchAction

2006-09-12 Thread Ruepen
Hello, I am encountering some issues with using the MappingDispatchAction. The situation is that we (developers) are using a base class that extends MappingDispatchAction. Now I have a jsp page that has 2 buttons in it, one is "Search" and the other is "Download". Now the form action for the

validate an html:multibox and show messages in the own page

2006-09-12 Thread Heidy Gutiérrez Guzmán
Hi I'm using the struts tags. I need validate the total of "checked" that have been selected. I can do that with java script code, but i need put a var in the session scope with the purpose of show the error message later, and that, i can not do that with the java script code. If anybody could

Re: Struts Model Layer in the MVC framework

2006-09-12 Thread Laurie Harper
Antonio Petrelli wrote: Ray Madigan ha scritto: I have a project that I need to get a prototype out to the client FAST and I simply want to implement a Model layer with connection pooling. I have gone to the Spring Framework site and I don't have the time to come up to speed on how to make th

RE: [struts 1.2.4] Problem with DispatchAction

2006-09-12 Thread Asthana, Rahul
FYI setting validate="true" makes the whole thing work somehow. -Original Message- From: Asthana, Rahul [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 11:47 AM To: user@struts.apache.org Subject: [struts 1.2.4] Problem with DispatchAction Hi All, Action which is deri

RE: Each tiles:insert invokes ServletFilter

2006-09-12 Thread Bhay Zone
>>I suggest that you try sending a page with dummy data to a browser I sent a large page (about 7MB of html) to the browser and it was pretty fast. There is no problem with the browser rendering the data. My current page html is around 2.7MB. >>Are all your filter-mappings really needed

RE: default error page with tiles? (repost)

2006-09-12 Thread Darren Hall
Thanks all for the responses. I got it working now =} -Original Message- From: Strachan, Paul [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:01 AM To: Struts Users Mailing List Subject: RE: default error page with tiles? (repost) add something like this to your struts con

Re: Struts Model Layer in the MVC framework

2006-09-12 Thread Larry Meadors
On 9/12/06, Givler, Eric <[EMAIL PROTECTED]> wrote: Can you provide the connection pool from your Container's defined data-source and then use iBATIS for persistence? Yes, create the DataSource using JNDI, then see page 14 of this document: http://people.apache.org/dist/ibatis/ibatis.java/docs

Re: Struts Model Layer in the MVC framework

2006-09-12 Thread Antonio Petrelli
Ray Madigan ha scritto: I have a project that I need to get a prototype out to the client FAST and I simply want to implement a Model layer with connection pooling. I have gone to the Spring Framework site and I don't have the time to come up to speed on how to make this useful. Any alternative

RE: Struts Model Layer in the MVC framework

2006-09-12 Thread Givler, Eric
Can you provide the connection pool from your Container's defined data-source and then use iBATIS for persistence? http://ibatis.apache.org. There's a 9 page Java tutorial at: http://people.apache.org/dist/ibatis/ibatis.java/docs/iBATIS-SqlMaps-2-Tutorial_en.pdf, and the total docs are less

Struts Model Layer in the MVC framework

2006-09-12 Thread Ray Madigan
Is there an alternative to Spring Integration. I have a project that I need to get a prototype out to the client FAST and I simply want to implement a Model layer with connection pooling. I have gone to the Spring Framework site and I don't have the time to come up to speed on how to make this us

[struts 1.2.4] Problem with DispatchAction

2006-09-12 Thread Asthana, Rahul
Hi All, Action which is derived from org.apache.struts.actions.DispatchAction was working fine with this entry,with the appropriate method being called. Please note that as yet I had not made any entry for the form bean in struts-config.xml.

RE: Submitting forms with javascript in struts

2006-09-12 Thread Ray Madigan
I'm confused here. Is it your intent to pass a variable 'what' from your form to the action? I think the problem is that you need to assign the value what to a hidden element then in your java script assign the value to the value of the hidden element document.form.cpKey.value = what; then i

LookupDispatchAction call - onchange of an input field

2006-09-12 Thread fea jabi
Have a html:text . onchange of the value entered in this field, have to submit the form. Using LookupDispatchAction.

RE: Jasper Reports

2006-09-12 Thread Sahil Gupta
Thanks a lot for the information. Will try and get back to u for further assistance Regards, Sahil Gupta Extn : 339 Mobile: 91 9899468288 Email : [EMAIL PROTECTED] ** NetEdge Computing Global Solutions Private Limited. A-14, Sec

Re: Submitting forms with javascript in struts [*]

2006-09-12 Thread Puneet Lakhina
On 9/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: On 9/12/06, puneet.lakhina wrote: >>On 9/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> On 9/12/06, puneet.lakhina wrote: >> > >> On 9/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote: > >>> > >>> > >>> Hello, > >>> > >>> I

Re: Submitting forms with javascript in struts [*]

2006-09-12 Thread Andreas . Hartmann
On 9/12/06, puneet.lakhina wrote: >>On 9/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> On 9/12/06, puneet.lakhina wrote: >> > >> On 9/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >>> > >>> > >>> Hello, > >>> > >>> I do have a problem, because I don't know how to submit a form

Re: Jasper Reports

2006-09-12 Thread Martin Gainty
IDE's are ok for building initial reports but since you cannot use IDE's in a production environment you'll need to automate this because of that limitation Export your build.xml and or pom and verify that works in fully automated staged environment (i.e. ant or maven script) If you need any help

Re: Re: Submitting forms with javascript in struts [*]

2006-09-12 Thread Puneet Lakhina
On 9/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: On 9/12/06, puneet.lakhina wrote: > On 9/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> >> Hello, >> >> I do have a problem, because I don't know how to submit a form with >> javascript >> in struts. >> >> Normally, I'm submit

RE: Jasper Reports

2006-09-12 Thread chris . mccauley
JasperAssistant's support is questionable at this point, iReports has become part of the JAsperSoft bundle and in my humble opinion is a better IDE. Additionally, there is a "How To" booklet available for JasperReports on their website...its pretty comprehensive, now, scoot

Antwort: Re: Submitting forms with javascript in struts [*]

2006-09-12 Thread Andreas . Hartmann
On 9/12/06, puneet.lakhina wrote: > On 9/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> >> Hello, >> >> I do have a problem, because I don't know how to submit a form with >> javascript >> in struts. >> >> Normally, I'm submitting forms like this: >> >> >> >> >> >> I'm receiving the

Re: Submitting forms with javascript in struts

2006-09-12 Thread Puneet Lakhina
On 9/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello, I do have a problem, because I don't know how to submit a form with javascript in struts. Normally, I'm submitting forms like this: I'm receiving the value with the getter-method getMyvalue() of the appropriate ActionForm.

Submitting forms with javascript in struts

2006-09-12 Thread Andreas . Hartmann
Hello, I do have a problem, because I don't know how to submit a form with javascript in struts. Normally, I'm submitting forms like this: I'm receiving the value with the getter-method getMyvalue() of the appropriate ActionForm. This time, I want to submit the form with a Some text d

Validation and Form Collections

2006-09-12 Thread John De Lello
Hello Everyone, I have a question regarding validation. I have JSP that uses the Html:Options tag to populate a DDLB. The action class creates the collection and puts it in the Form. All works fine until the form validation fails. When I come back from the form validation, I am getting a "Bean de

how to dynamically internationalize login page

2006-09-12 Thread leo mj
hi all, I think some fellow member has asked the same question.But I didn't find any reply for the old thread. So i have a scenario I have a login page with 1.Username 2.Password 3.Language Based on the language selected I have to reload the page. I have used internationalization tec

Setup of software....!

2006-09-12 Thread Sahil Gupta
Hi, How do u deploy ur product or software at the client side? We use JBoss server and whenever we need to deploy the product what we do is that we have the full Jboss unzipped there and then the server and ear and war is placed there and all that stuff... There is no proper setup. Do u use a pro

Globalizing some general validations in validation frame work?

2006-09-12 Thread Mallik
HI friends i would like to say thanks to every one on this forum for your support the problem is.. i have some forms, each from has some common fields like id, name, etc i would like to specify the validations only once in validator.xml for all forms ( globalizing them for all forms) if possible,

RE: Hi Need help .. on javascript & validation framework when used together

2006-09-12 Thread Strachan, Paul
would something like this work? function validateRadio() { if ( self.document.mystrutsform.myradio.value = "a good value" ) { return true; } else { alert('Error with radio'); return false; // should prevent submit } } Also validate on the server side if the javascript coul

RE: FW: focus on first error

2006-09-12 Thread Strachan, Paul
Hi, Thanks for your feedback, but according to the struts source code below it seems the items are sorted in their initial order. I tested the code (in its scriptlet format) and it seemed to be working OK, that is the order as defined in the validations.xml Can you please show me where the probl

Re: Hi Need help .. on javascript & validation framework when used together

2006-09-12 Thread nuwan chandrasoma
try to call your javascirpt method before the validate method. for example you can call many javascript methods by sperateing them with a semicolan (;) On 9/12/06, Sheetal Gupta <[EMAIL PROTECTED]> wrote: On form submit, already validate method is called.. "David Pinho (Hexadecimal)" <[EMAIL

RE: Hi Need help .. on javascript & validation framework when used together

2006-09-12 Thread Sheetal Gupta
On form submit, already validate method is called.. "David Pinho (Hexadecimal)" <[EMAIL PROTECTED]> 09/12/2006 12:13 AM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject RE: Hi Need help .. on javascript & validation framework when used together

RE: Jasper Reports

2006-09-12 Thread Marco Mistroni
Hello, If you are looking for a plugin for eclipse, You might want to have a look at jasperassistant http://www.jasperassistant.com/installation.html hth marco -Original Message- From: Sahil Gupta [mailto:[EMAIL PROTECTED] Sent: 12 September 2006 09:19 To: 'Struts Users Mailin

RE: Jasper Reports

2006-09-12 Thread Sahil Gupta
Hi, Yeah thanks for the URL but I thought may be some of us are using Jasper Reports on eclipse and would be able to help me. Anyways thanks Regards, Sahil Gupta -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 1:33 PM To: 'Struts

[OT] Re: Jasper Reports

2006-09-12 Thread Antonio Petrelli
Sahil Gupta ha scritto: Hi, I have to start working on Jasper Reports now and I will be doing this from scratch. So can you please guide me. Also if there is some tutorial or a PDF available with u do let me know. Another thing I have to add the plug-in to my eclipse. If u have any information

RE: Jasper Reports

2006-09-12 Thread Marco Mistroni
Hi, Beside the fact that this has nothing to do with struts, You may find something here i believe this has all you need http://jasperforge.org/sf/projects/jasperreports hth marco -Original Message- From: Sahil Gupta [mailto:[EMAIL PROTECTED] Sent: 12 September 2006 09:09 To:

Jasper Reports

2006-09-12 Thread Sahil Gupta
Hi, I have to start working on Jasper Reports now and I will be doing this from scratch. So can you please guide me. Also if there is some tutorial or a PDF available with u do let me know. Another thing I have to add the plug-in to my eclipse. If u have any information regarding to this please l

Re: FW: focus on first error

2006-09-12 Thread Angelo zerr
Hello, I was need to manage focus on the first field with error. With your solution, the problem is errors collection is sorted, so your focus will not go to the first field with error in your JSP. So I extends doErrorExist of TextTag to manage it, like this : protected boolean doErrorsExist() th

Re: getDataSource, DAO pattern, and Struts

2006-09-12 Thread Angelo zerr
Hello Darren, I'm aggree with Larry. If you want you can see Architecture shema with Service/DAO pattern in my open source project Gestcv at http://gestcv.sourceforge.net/fr/architecture.html (sorry it's in frensh). You can download the application WEB to see how I use Spring with Struts. Regards

Re: default error page with tiles? (repost)

2006-09-12 Thread Antonio Petrelli
Strachan, Paul ha scritto: add something like this to your struts config... Cool! Why don't you add this code to the wiki? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: default error page with tiles? (repost)

2006-09-12 Thread Strachan, Paul
add something like this to your struts config... public class GlobalExceptionHandler extends ExceptionHandler { /* * Static Logger */ private static LogsLogger = LogFactory.getLog(GlobalExceptionHandler.class); public ActionForward execute(Exception e