Re: Form data lost [S 1.3.8]

2012-07-31 Thread Anjib
r form returned from action execution all my form data are lost. How can I have form retain its data even after fail? I am using struts tag for form and session

Re: Form data lost [S 1.3.8]

2012-07-31 Thread Paul Benedict
code as well as > I have condition where if something goes wrong in execution of action it > will take the user back to the form. > My problem is when validation fail or form returned from action execution > all my form data are lost. How can I have form retain its data even after >

Re: Form data lost [S 1.3.8]

2012-07-31 Thread Anjib Mulepati
I mean when form data are invalid, user get the message on top of the form but all data in filed get lost. It shows blank form with error message. i want to show previously entered data so that user can correct only invalid field. On 7/31/2012 3:09 PM, Martin Gainty wrote: could you define

Form data lost [S 1.3.8]

2012-07-31 Thread Anjib Mulepati
Hi All, I am using large form to input data. I have some validation code as well as I have condition where if something goes wrong in execution of action it will take the user back to the form. My problem is when validation fail or form returned from action execution all my form data are lost

AW: File upload from JSP with "multipart/form-data" does not work on Weblogic v12c

2012-02-06 Thread Peter.Keller
ar 2012 13:47 An: user@struts.apache.org Betreff: AW: File upload from JSP with "multipart/form-data" does not work on Weblogic v12c I just tested the upload actions in the Struts 2 showcase and the findings are the same: the file upload is broken in Weblogic v12.1.1. Who will fix

AW: File upload from JSP with "multipart/form-data" does not work on Weblogic v12c

2012-02-01 Thread Peter.Keller
. Januar 2012 15:14 An: user@struts.apache.org Betreff: File upload from JSP with "multipart/form-data" does not work on Weblogic v12c Dear list File upload from JSP with "multipart/form-data" does not work on Weblogic v12c which supports Java Servlet specification v3.0. The

File upload from JSP with "multipart/form-data" does not work on Weblogic v12c

2012-01-31 Thread Peter.Keller
Dear list File upload from JSP with "multipart/form-data" does not work on Weblogic v12c which supports Java Servlet specification v3.0. The same code worked as expected for Weblogic v10.3.X which supports Java Servlet specification v2.4. The same code does NOT work with Struts

Re: Multipart/Form-Data with Struts 1

2010-10-05 Thread DavidZaz
2010 at 10:16 AM, DavidZaz wrote: > >> >> I have a legacy application using Struts 1.2.8 and I have the following >> HTML >> form: >> >> > enctype="multipart/form-data"> >> > styleId="tinymce"> >> >> >>

Re: Multipart/Form-Data with Struts 1

2010-10-05 Thread Dave Newton
If you're uploading a file, the form must be multipart. Which version of IE? Is it only under IE that it happens? Dave On Tue, Oct 5, 2010 at 10:16 AM, DavidZaz wrote: > > I have a legacy application using Struts 1.2.8 and I have the following > HTML > form: > > encty

Multipart/Form-Data with Struts 1

2010-10-05 Thread DavidZaz
and I posted on their forum. However, the problem goes away when I remove the enctype="multipart/form-data" from the html:form declaration. Does Struts 1 do anything unusual with the enctype multipart/form-data attribute? It does not seem that other tinyMCE editor users are experiencing

Re: Set JSP timeout in struts 1 app with multipart/form-data form

2010-10-04 Thread Maurizio Cucchiara
>> 2010/10/4 Oscar : >> > Hi to all, i have a question about a situation that i have in my >> > application. It's in Struts 1.1 . Basically, i have a multipart/form-data >> > form in the jsp that contains 2 elements: a html:file control and a >> > html:submit b

Re: Set JSP timeout in struts 1 app with multipart/form-data form

2010-10-04 Thread Oscar
m is related with your AS. > For instance, Tomcat have a disableUploadTimeout variable. > > > Maurizio Cucchiara > > > 2010/10/4 Oscar : > > Hi to all, i have a question about a situation that i have in my > > application. It's in Struts 1.1 . Basically, i ha

Re: Set JSP timeout in struts 1 app with multipart/form-data form

2010-10-04 Thread Maurizio Cucchiara
my > application. It's in Struts 1.1 . Basically, i have a multipart/form-data > form in the jsp that contains 2 elements: a html:file control and a > html:submit button . This form will be used to upload MS Access database > file up to 800mb to extract it's data and pass it to O

Set JSP timeout in struts 1 app with multipart/form-data form

2010-10-03 Thread Oscar
Hi to all, i have a question about a situation that i have in my application. It's in Struts 1.1 . Basically, i have a multipart/form-data form in the jsp that contains 2 elements: a html:file control and a html:submit button . This form will be used to upload MS Access database file up to

problem while reading multipart/form-data in struts

2009-12-15 Thread binash
We are using a validation framework to validate all input to our application. This is implemented with a filter. In order to handle multipart form data twice, we have created BufferedRequestWrapper class (as a sub class 'HttpServletRequestWrapper'). Now with this class I am able to g

RE: How to access the form data directly?

2009-11-15 Thread Neil Aggarwal
Juanjo: > Uuuu it works, but... I prefer don't use scriptlet of > Java... Is > there any way to use the tags like s:property or s:iterator? I understand it is not as clean as using struts tags, but I drop into using scriptlets when I can't figure out how to do it with the tags. If you c

Re: How to access the form data directly?

2009-11-15 Thread Juanjo C
The data that I want to show is the bean (the values of their fields) that I have declared in the ModelDriven... I think that this data are available in the jsp... Uff... It's difficult for me to express my question in English ... sorry. Thanks 2009/11/15 Musachy Barroso > where is the data t

Re: How to access the form data directly?

2009-11-15 Thread Juanjo C
Uuuu it works, but... I prefer don't use scriptlet of Java... Is there any way to use the tags like s:property or s:iterator? Thanks Neil. 2009/11/15 Neil Aggarwal > Juanjo: > > > but I don't know where are this data... In the ValueStack? > > I use this code in my JSP to retrieve values

Re: How to access the form data directly?

2009-11-14 Thread Musachy Barroso
where is the data that you want to show, in the action? musachy On Sat, Nov 14, 2009 at 6:55 PM, Juanjo C wrote: > Hi, > > I have an action class that implements the interfaces ModelDriven and > Preparable with a bean that has data. And I have too an JSP that shows, > through s:textfield, the da

RE: How to access the form data directly?

2009-11-14 Thread Neil Aggarwal
Juanjo: > but I don't know where are this data... In the ValueStack? I use this code in my JSP to retrieve values from the value stack: ActionContext.getContext().getValueStack().findValue("myValue"); I hope that helps, Neil -- Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net Cent

How to access the form data directly?

2009-11-14 Thread Juanjo C
Hi, I have an action class that implements the interfaces ModelDriven and Preparable with a bean that has data. And I have too an JSP that shows, through s:textfield, the data to the user. It works fine. But I need show in other way the data, i.e. with s:property or s:iterator... but I don't know

Re: Struts 1 form data change

2009-10-07 Thread Paweł Wielgus
Paul >>>>>>>> >>>>>>>> On Mon, Oct 5, 2009 at 9:15 PM, SanJ.SANJAY >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Thanks Paul,

Re: Struts 1 form data change

2009-10-06 Thread Paul Benedict
>>>>>>> >>>>>>>> Thanks Paul, >>>>>>>> >>>>>>>>                 I thought about that also but selecting a tab isn't >>>>>>>> always >>>>>>>> mean that I

Re: Struts 1 form data change

2009-10-06 Thread SanJ.SANJAY
gt;>>>>> always >>>>>>>> mean that I change the data inside that tab. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Paul Benedict-2 wrote: >>>>

Re: Struts 1 form data change

2009-10-06 Thread SanJ.SANJAY
;>>>>>> >>>>>>>> SanJ, >>>>>>>> >>>>>>>> Can you track which tab the user selected? Perhaps you can set a >>>>>>>> j

Re: Struts 1 form data change

2009-10-06 Thread Paul Benedict
variable when one is selected. The only down side here is >>>>>>> that you'll have to hardcode which fields belong to which tab. Once >>>>>>> you do that, you can do what you want. >>>>>>> >>>>>>

Re: Struts 1 form data change

2009-10-06 Thread SanJ.SANJAY
ich tab. Once >>>>>> you do that, you can do what you want. >>>>>> >>>>>> Paul >>>>>> >>>>>> On Mon, Oct 5, 2009 at 7:42 PM, SanJ.SANJAY >>>>>> wrote: >>>>>>> >>>

Re: Struts 1 form data change

2009-10-06 Thread Paweł Wielgus
te set of fields/ data in each tab. So suppose >>>>>> someone >>>>>> changes fields in Tab 2 only and save the JSP, I do not want to save >>>>>> the >>>>>> tab >>>>>> 1 fields also because those fields are

Re: Struts 1 form data change

2009-10-05 Thread Paul Benedict
. I have Adobe SPRY tabs in my JSP. >>>>> >>>>> There are two separate set of fields/ data in each tab. So suppose >>>>> someone >>>>> changes fields in Tab 2 only and save the JSP, I do not want to save >>>>> the >&g

Re: Struts 1 form data change

2009-10-05 Thread SanJ.SANJAY
t;> 1 fields also because those fields are not changed. >>>> >>>> I was wondering if there is any way I can distinguish that only TAB 2 >>>> fields >>>> are changed so that I can process only those fields in action instead >>>> of >>>

Re: Struts 1 form data change

2009-10-05 Thread Paul Benedict
gt;> >>> I was wondering if there is any way I can distinguish that only TAB 2 >>> fields >>> are changed so that I can process only those fields in action instead of >>> processing all the JSP form fields. >

Re: Struts 1 form data change

2009-10-05 Thread SanJ.SANJAY
ng if there is any way I can distinguish that only TAB 2 >> fields >> are changed so that I can process only those fields in action instead of >> processing all the JSP form fields. >> >> I would appreciate some inputs! >> >> >> -- >> Vie

Re: Struts 1 form data change

2009-10-05 Thread Paul Benedict
ed. > > I was wondering if there is any way I can distinguish that only TAB 2 fields > are changed so that I can process only those fields in action instead of > processing all the JSP form fields. > > I would appreciate some inputs! > > > -- > View this message in

Struts 1 form data change

2009-10-05 Thread SanJ.SANJAY
I can distinguish that only TAB 2 fields are changed so that I can process only those fields in action instead of processing all the JSP form fields. I would appreciate some inputs! -- View this message in context: http://www.nabble.com/Struts-1-form-data-change-tp25758644p25758644.html Sent

Re: IE ajax theme form data problem

2009-01-29 Thread Robert Dietrick
f="%{viewGamePrefsUrl}" theme="ajax" cssClass="tab"> >> >> >> In each of the tabbed divs, there is a form which uses the ajax theme >> and targets the div in which the for resides. E.g., >> >> >> >> ... &g

Re: IE ajax theme form data problem

2009-01-28 Thread Jeromy Evans
rgets the div in which the for resides. E.g., ... Under IE (6 & 7), when I modify the data in the form fields and submit the form, somehow the original form data (before my modifications) is being sent to the server. Has anyone seen this before? Than

IE ajax theme form data problem

2009-01-28 Thread Robert Dietrick
when I modify the data in the form fields and submit the form, somehow the original form data (before my modifications) is being sent to the server. Has anyone seen this before? Thanks. -rob - To unsubscribe, e-mail: user-unsu

Help in resetting multiple form data

2008-09-18 Thread Sulabha Walavalkar
Hi, I am using 4 forms in one jsp, the reason being few select UI components & search are common to other use cases. The problem I'm facing is with resetting the fields on successful completion of any transaction. One option is calling reset() method on all the forms in java script functi

Re: JAZN Exception when posting form with ecntype="multipart/form-data"

2008-07-01 Thread Dimitris Mouchritsas
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic"%> enctype="multipart/form-d

Re: JAZN Exception when posting form with ecntype="multipart/form-data"

2008-07-01 Thread Dimitris Mouchritsas
EB-INF/tlds/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic"%> enctype="multipart/form-d

JAZN Exception when posting form with ecntype="multipart/form-data"

2008-06-30 Thread Dimitris Mouchritsas
uot; prefix="html"%> <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic"%> enctype="multipart/form-data"> * Attachment: styleClass="w33" size="40" /

Re: Handling form data

2008-04-30 Thread Laurie Harper
status. I would like to make a validator that is smart enough to know when to validate fields and when not to based on the method being called but I cannot find a way to get what method on the action is being called. Is there a best practices on how to handle form data in an elegant manner? Is there

Re: Handling form data

2008-04-30 Thread Greg Lindholm
> if there is an error when calling postData() it needs to call execute > before > returning an input status. I would like to make a validator that is smart > enough to know when to validate fields and when not to based on the method > being called but I cannot find a way to get what

Handling form data

2008-04-29 Thread Brian Hawkins
annot find a way to get what method on the action is being called. Is there a best practices on how to handle form data in an elegant manner? Is there a way to know what method is being called? So many questions and so few answers :( thanks Brian

Re: Struts 1.3 : DynaValidatorActionForm missing input form data on errors display

2008-03-18 Thread Laurie Harper
eod wrote: Hi, I'm seeing input form data disappear if the validation fails & the page is re-displayed; have Googled around but found nothing specific to dyna forms, so I'm hoping someone has come across this & know what the issue is; I had tried setting the action's sco

Struts 1.3 : DynaValidatorActionForm missing input form data on errors display

2008-03-12 Thread eod
Hi, I'm seeing input form data disappear if the validation fails & the page is re-displayed; have Googled around but found nothing specific to dyna forms, so I'm hoping someone has come across this & know what the issue is; I had tried setting the action's scope to ses

Difficulty with submitting variable amouts of form data

2007-08-02 Thread Ken Bowen
Hi, [I'm using struts 1.2.7 (with EL from contrib) on Tomcat 5.5.9]. I'm attempting to submit variable amounts of form data in a table following the model of James Turner: http://www.developer.com/java/ejb/article.php/10931_3321521_1. The goal is to retrieve items (user-configur

Re: Submitting a variable amount of form data

2007-07-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Richard Sayre wrote: > I have a form that can have 1 to many 'Name' text fields. In struts > 2 how do I set up the action so it can automatically grab the values > that are in those fields? > > If I had 1 name field I would just put a name

Submitting a variable amount of form data

2007-07-29 Thread Richard Sayre
I have a form that can have 1 to many 'Name' text fields. In struts 2 how do I set up the action so it can automatically grab the values that are in those fields? If I had 1 name field I would just put a name variable in the Action Class and create a setter and getter for it. How do I do this w

Re: autocompleter y multipart/form-data

2007-06-08 Thread Musachy Barroso
You will have to take a look at Dojo's documentation. That form is submitted using dojo.io.bind, and I don't think it supports multiparts musachy On 6/8/07, Nicolás Pace <[EMAIL PROTECTED]> wrote: Hello When I setup my form with encoding=multiaprt/form-data, the autocom

autocompleter y multipart/form-data

2007-06-08 Thread Nicolás Pace
Hello When I setup my form with encoding=multiaprt/form-data, the autocompleter tag stops working. When i trace the problem, it seems that no parameters are sent. Any suggestion? Thanks Nickoar - To unsubscribe, e-mail

parameters interceptor and multipart/form-data

2007-06-04 Thread Joshua Szmajda
Hi all, Whenever I set the enctype on my form to multipart/form-data (in order to handle some file uploads), it sporadically will stop the parameters interceptor from receiving any data at all. When this happens, the log shows: 12:47:23,999 [http-8080-Processor24] DEBUG

Re: Form data to Vector

2007-04-16 Thread Lance
--- Original Message From: Lance <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, April 16, 2007 2:41:05 PM Subject: Re: Form data to Vector Ok, so your add button creates a new blank record on your page Your save button posts the form to some save action which validates / saves

Re: Form data to Vector

2007-04-16 Thread Balazs Michnay
ance <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, April 16, 2007 2:41:05 PM Subject: Re: Form data to Vector Ok, so your add button creates a new blank record on your page Your save button posts the form to some save action which validates / saves to the db Two option

Re: Form data to Vector

2007-04-16 Thread Lance
D]> To: Struts Users Mailing List Sent: Monday, April 16, 2007 2:15:06 PM Subject: Re: Form data to Vector Ok, im not sure how exactly you are using it but this is how I tend to do it. In your load() action, you hit the db and generate some object for each row and put them into your vector.

Re: Form data to Vector

2007-04-16 Thread Balazs Michnay
ginal Message From: Lance <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, April 16, 2007 2:15:06 PM Subject: Re: Form data to Vector Ok, im not sure how exactly you are using it but this is how I tend to do it. In your load() action, you hit the db and generate some

Re: Form data to Vector

2007-04-16 Thread Lance
ay, April 16, 2007 12:12:00 PM Subject: Re: Form data to Vector Lance wrote: Sorry, it helps if i read your question fully. The way to do this is to name your html form elements using in the struts (BeanUtils) conventions If you have a form element named "myVector[3]" then strut

Re: Form data to Vector

2007-04-16 Thread Balazs Michnay
do this exactly? Thanks, MB - Original Message From: Lance <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Monday, April 16, 2007 12:12:00 PM Subject: Re: Form data to Vector Lance wrote: > Sorry, it helps if i read your question fully. > > The way to do this is t

Re: Form data to Vector

2007-04-16 Thread Lance
rrayList) property in my form bean, how do I put some of my form data into my bean property. Do I need to modify the setters/getters? There must be a way to do this... And yes, you're right, one the data are in the Vector, I can use to display them. Thanks for your help, Regards, MB --

Re: Form data to Vector

2007-04-16 Thread Lance
rm bean, how do I put some of my form data into my bean property. Do I need to modify the setters/getters? There must be a way to do this... And yes, you're right, one the data are in the Vector, I can use to display them. Thanks for your help, Regards, MB - Original Message

Re: Form data to Vector

2007-04-16 Thread Balazs Michnay
Thanks for the reply. Yes, I know how to use the to display the elements of a Vector (or ArrayList), I just don't see how to put these values into the Vector. I mean if I have a Vector (or an ArrayList) property in my form bean, how do I put some of my form data into my bean property.

Re: Form data to Vector

2007-04-13 Thread Martin Gainty
t;Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, April 13, 2007 4:09 AM Subject: Form data to Vector Hi, I have a form with two submit buttons. One should add the content of a text field to a Vector (which is in the form bean?), and the other one should point to another

Form data to Vector

2007-04-13 Thread Balazs Michnay
Hi, I have a form with two submit buttons. One should add the content of a text field to a Vector (which is in the form bean?), and the other one should point to another page that has access to the Vector values. I'd like to know how to add form data to a Vector. Any help would be apprec

RE: Empty request parameters with enctype set to "multipart/form-data"

2007-02-15 Thread Hartrich, James CTR USTRANSCOM J6
ipart/form-data" Thanks a lot. This definitly helped. Just pasted in the following code into web.xml and the error disappeared: struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp struts-cleanup /* Strange that it needs this, but good to know that there is a fix for thi

Re: Empty request parameters with enctype set to "multipart/form-data"

2007-02-15 Thread Karsten Voges
Thanks a lot. This definitly helped. Just pasted in the following code into web.xml and the error disappeared: struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp struts-cleanup /* Strange that it needs this, but good to know that there is a fix for this. Cheers, Karsten. And

Re: Empty request parameters with enctype set to "multipart/form-data"

2007-02-15 Thread Andrew Stepanenko
on are populated. But to upload files I have to set the enctype to "multipart/form-data" :( I found the following questions with the same problem, but no solution so far: http://www.junlu.com/msg/309344.html http://www.archivum.info/user@struts.apache.org/2006-12/msg00622.html I have not spe

Empty request parameters with enctype set to "multipart/form-data"

2007-02-15 Thread Karsten Voges
without a problem. All request parameters are set (checked via ServletActionContext.getRequest().getParameterNames()), all fields in the action are populated. But to upload files I have to set the enctype to "multipart/form-data" :( I found the following questions with the same problem,

Re: [s2] Autopopupation of fields fails with "enctype="multipart/form-data" in form

2007-02-04 Thread zafer Mohamed
Thanks Dariusz, Adding the filter fixed the issue. Z - Original Message From: Dariusz Wojtas <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Sunday, February 4, 2007 1:20:02 PM Subject: Re: [s2] Autopopupation of fields fails with "enctype="multipart/form-d

Re: [s2] Autopopupation of fields fails with "enctype="multipart/form-data" in form

2007-02-04 Thread Dariusz Wojtas
On 2/4/07, zafer Mohamed <[EMAIL PROTECTED]> wrote: I have a form with the enctype set to "enctype="multipart/form-data" as I am uploading a file, the form also contains some other fields. On submission the autopopulation of other fields fails, but it works correctly if

[s2] Autopopupation of fields fails with "enctype="multipart/form-data" in form

2007-02-04 Thread zafer Mohamed
I have a form with the enctype set to "enctype="multipart/form-data" as I am uploading a file, the form also contains some other fields. On submission the autopopulation of other fields fails, but it works correctly if I remove the enctype="multipart/form-data".

Re: Make Struts set form data onto the action in same order as the form's fields

2007-01-26 Thread Célio Cidral Junior
Hi Chris, 2007/1/25, Christopher Schultz <[EMAIL PROTECTED]>: I agree with Dave: you're trying to do too much in your forms. I disagree. There are two options that I consider acceptable for me. One of them is to write getters and setters for each form's field (just like a form bean). The other

Re: Make Struts set form data onto the action in same order as the form's fields

2007-01-25 Thread Christopher Schultz
. You should try to stick to a form bean that does nothing other than shuttle data to and from the form. Your action should be invoking database fetches and things of that nature, copying the form data from the form bean to your DAOs, etc. I think you're doing too much at once, and paying the

Re: Make Struts set form data onto the action in same order as the form's fields

2007-01-25 Thread Tom Schneider
I think your best bet would be to break up the parameter setting into 2 parts. (A variation on the paramsPrepareParamsStack) The first part would set all parameters needed to load the data from the data. Then in the prepare, you would have the id's needed to load the data from the database. The

Re: Make Struts set form data onto the action in same order as the form's fields

2007-01-25 Thread Dale Newfield
Célio Cidral Junior wrote: Well, having Struts passing parameters in the order defined by the html form would solve my problem. :-) While setting parameters in a request struts has no idea what order they were ordered in the originally generated form--remember that a single action may be cal

Re: Make Struts set form data onto the action in same order as the form's fields

2007-01-25 Thread Célio Cidral Junior
2007/1/25, Tom Schneider <[EMAIL PROTECTED]>: Unfortunately I don't think that's possible. The parameters get put into a map structure, so the original parameter order is lost by the time it gets to the servlet API. We've run into several instances where something will work on one app server, b

Re: Make Struts set form data onto the action in same order as the form's fields

2007-01-25 Thread Tom Schneider
Unfortunately I don't think that's possible. The parameters get put into a map structure, so the original parameter order is lost by the time it gets to the servlet API. We've run into several instances where something will work on one app server, but break on another because we had duplicate pa

Re: Make Struts set form data onto the action in same order as the form's fields

2007-01-25 Thread Célio Cidral Junior
2007/1/25, Tom Schneider <[EMAIL PROTECTED]>: This is an issue with the typical edit/save scenario. The problem we are discussing is that the domain model is needed in some form before the parameter can be repopulated from the form save. The technique you are using is to reread the data from th

Re: Make Struts set form data onto the action in same order as the form's fields

2007-01-25 Thread Tom Schneider
This is an issue with the typical edit/save scenario. The problem we are discussing is that the domain model is needed in some form before the parameter can be repopulated from the form save. The technique you are using is to reread the data from the database before the parameters are set. An a

Re: Make Struts set form data onto the action in same order as the form's fields

2007-01-25 Thread Célio Cidral Junior
2007/1/25, Dale Newfield <[EMAIL PROTECTED]>: Célio Cidral Junior wrote: > Implementing Preparable does not seem to solve the problem because the > parameters are set before the prepare() method is invoked. Which is needed in order to know which object to retrieve from the DB. I think you have

Re: Make Struts set form data onto the action in same order as the form's fields

2007-01-25 Thread Dale Newfield
Célio Cidral Junior wrote: Implementing Preparable does not seem to solve the problem because the parameters are set before the prepare() method is invoked. Which is needed in order to know which object to retrieve from the DB. This model usually includes including the parameters interceptor tw

Re: Make Struts set form data onto the action in same order as the form's fields

2007-01-25 Thread Célio Cidral Junior
2007/1/25, Dave Newton <[EMAIL PROTECTED]>: From my point of view it seems like your implementation is broken: if you need to create a Customer from an ID passed via a form or URL then you either need to implement Preparable or do the DAO operations in the (in your case) input or save methods.

RE: Make Struts set form data onto the action in same order as the form's fields

2007-01-25 Thread Dave Newton
From: Célio Cidral Junior > public Customer getCustomer() { > if (customer == null) > customer = id != 0 ? dao.get(id) : new Customer(); > return customer; > } > [...] > The way I built both the action and the view prevents me from writi

Make Struts set form data onto the action in same order as the form's fields

2007-01-25 Thread Célio Cidral Junior
Struts don't set the form data onto the Action in the same order in which the fields appear in the form. For instance, suppose you have a form like this: And its corresponding Action, which is something like: public class CustomerAction ex

enctype="multipart/form-data" gives null values for other ActionForm properties

2006-11-23 Thread Morten Andersen
When I'm uploading a form I set the enctype to multipart/form-data in the jsp file. In the action receiving the form I want to use the other properties from the form, but these are not set. Example: ActionForm has the properties: - name (String) edited in a actionFormImpl.getName(),

Re: enctype="multipart/form-data" gives null values for ActionForm properties

2006-11-23 Thread Morten Andersen
-data. When that is set like that the autopopulate thing doesn't work. How can I make sure that the properties are autopopulated even though I use enctype="multipart/form-data". Thanks Morten Andersen www.blob

Re: enctype="multipart/form-data" gives null values for ActionForm properties

2006-11-23 Thread Mitchell James
when submit is called. -- James Mitchell 678.910.8017 On Nov 23, 2006, at 5:29 AM, Morten Andersen wrote: I want to upload a file as a part of a form. This requires that the enctype of the form is set to: multipart/form-data. When that is set like that the autopopulate thing doesn't

enctype="multipart/form-data" gives null values for ActionForm properties

2006-11-23 Thread Morten Andersen
I want to upload a file as a part of a form. This requires that the enctype of the form is set to: multipart/form-data. When that is set like that the autopopulate thing doesn't work. How can I make sure that the properties are autopopulated even though I use enctype="multipart

Saving form data

2006-08-01 Thread Joel Alejandro Espinosa Carra
Hi all I think this is a common issue, I want to know how to save the form data in persistent storage using serialization. I have been made this in my 2-tier java apps without struts but I suppose there is another way to do it using struts to achieve that. Kind regards. p.s. sorry for my

Re: multipart/form-data and character encoding

2006-05-30 Thread Martin Gainty
destroy the original message without making a copy. Thank you. - Original Message - From: "Antonis Lebesis" <[EMAIL PROTECTED]> To: "Martin Gainty" <[EMAIL PROTECTED]> Cc: "Struts Users Mailing List" Sent: Monday, May 29, 2006 8:14 PM Subject: Re:

Re: multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
rtin Gainty" <[EMAIL PROTECTED]> Sent: Monday, May 29, 2006 7:26 PM Subject: Re: multipart/form-data and character encoding > Hello Martin, > I tried your suggestion but there is a difference in my case: The > enctype in my form's declaration is "multipart/form-da

Re: multipart/form-data and character encoding

2006-05-29 Thread Martin Gainty
; "Martin Gainty" <[EMAIL PROTECTED]> Sent: Monday, May 29, 2006 7:26 PM Subject: Re: multipart/form-data and character encoding Hello Martin, I tried your suggestion but there is a difference in my case: The enctype in my form's declaration is "multipart/form-data&q

Re: multipart/form-data and character encoding

2006-05-29 Thread Miguel Galves
gt; > > Set form to use correct form encoding > > > > > > Instruct web container to use selected charset when creating request (in > > server.xml) > > > > > > HTH, > > Martin -- > > - Original Message - > > From: "An

Re: multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
> - Original Message ----- > From: "Antonis Lebesis" <[EMAIL PROTECTED]> > To: > Sent: Monday, May 29, 2006 2:07 PM > Subject: multipart/form-data and character encoding > > > Hi, > I 've searched the archives but haven't found any solutio

Re: multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
Hello Martin, I tried your suggestion but there is a difference in my case: The enctype in my form's declaration is "multipart/form-data" (I have to support file upload). If I leave it that way, I get the same results (no greek characters). If I change it to "multipart/fo

Re: multipart/form-data and character encoding

2006-05-29 Thread Miguel Galves
#x27;ve found it is caused by the fact that in the form declaration I have added enctype="multipart/form-data". Has anyone solved this problem? Thanks, Antonis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: multipart/form-data and character encoding

2006-05-29 Thread Martin Gainty
oding Instruct web container to use selected charset when creating request (in server.xml) HTH, Martin -- - Original Message - From: "Antonis Lebesis" <[EMAIL PROTECTED]> To: Sent: Monday, May 29, 2006 2:07 PM Subject: multipart/form-data and character encoding Hi, I

multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
reset(), I have added the following line: request.setCharacterEncoding("ISO-8859-7"); In forms that don't have a input, the character set is correct. The problem occurs only in this form and from what I 've found it is caused by the fact that in the form declaration I have

RE: How to retain form data when disabling input in html:text

2006-02-21 Thread Wang, Hansen
retain form data when disabling input in html:text Thanks Craig: I worked for what I wanted to achieve. Only with read-only property setting, it does not grey out input text field. I have to find out what to set so that it changes appearance when read-only property is set

Re: How to retain form data when disabling input in html:text

2006-02-21 Thread Michael Jouravlev
On 2/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have > I populate html:text with data from DB. > I want to disable input for this property, but > when I get form data back in Action form bean does not have data for this > property "bucketName" > >

Re: How to retain form data when disabling input in html:text

2006-02-21 Thread digant . k . joshi
nahan" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 02/21/2006 05:14 PM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" cc: Subject:Re: How to retain form data when disabling input in html:text O

  1   2   >