RE: JSP read value from ActionForm

2013-07-13 Thread Martin Gainty
> Date: Thu, 4 Jul 2013 15:41:16 -0400 > From: em...@encs.concordia.ca > To: user@struts.apache.org > Subject: JSP read value from ActionForm > > Hello, > > May I know how to read a parameter value in JSP page for the following > situation please? > > (1

JSP read value from ActionForm

2013-07-04 Thread Emi Lu
Hello, May I know how to read a parameter value in JSP page for the following situation please? (1) Struts2Action.java ... String list_size = list.size(); ... getter/setter for list_size (2) result.jsp /> Is there a simple way to assign Struts2Action.list_size to s:select.size filed in the

Re: Mapping a dynamic html form with ActionForm

2010-07-03 Thread Paweł Wielgus
t;     ... >>>     >>>           >>>           >>>     >>> >>> >>> then setting this xml string to ResponseActionForm - which have only one >>> string property. >>> >>> >>> Is it possible ? How to

Re: Mapping a dynamic html form with ActionForm

2010-07-02 Thread Jawahar Nayak
; >> then setting this xml string to ResponseActionForm - which have only one >> string property. >> >> >> Is it possible ? How to do that ? >> >> >> -- >> View this message in context: >> http://old.nabble.com/Mapping-a-dynamic-html-form-wi

Re: Mapping a dynamic html form with ActionForm

2010-07-01 Thread Paweł Wielgus
w to do that ? > > > -- > View this message in context: > http://old.nabble.com/Mapping-a-dynamic-html-form-with-ActionForm-tp29045058p29045132.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > -

Re: Mapping a dynamic html form with ActionForm

2010-07-01 Thread Jawahar Nayak
ng to ResponseActionForm - which have only one string property. Is it possible ? How to do that ? -- View this message in context: http://old.nabble.com/Mapping-a-dynamic-html-form-with-ActionForm-tp29045058p29045132.html Sent from the Struts - User mailing list archive at Nabbl

Mapping a dynamic html form with ActionForm

2010-07-01 Thread Jawahar Nayak
ActionForm. But the fields in ActionForm need to be defined in advance, we we want to show on html form. - I want to know, what structure should I follow to design and implement my application with such requirement. Can I make use of tag and ActionForm OR I should not use them completely. Thanks

Re: Can a collection property have its changes saved back to the ActionForm?

2010-03-22 Thread Andrew Sharpe
Apologies all, I am editing my solution below for clarity and accuracy: - Original Message From: Andrew Sharpe To: Struts Users Mailing List Sent: Mon, March 22, 2010 8:44:42 AM Subject: Re: Can a collection property have its changes saved back to the ActionForm? Thanks Adam. I

Re: Can a collection property have its changes saved back to the ActionForm?

2010-03-22 Thread Andrew Sharpe
ions[i].selected = true; } } ACTIONFORM private String[] addresses; public String[] getAddresses() { return addresses; } public void setAddresses(String[] value) { addresses = value; } private final List oldAddresses = new ArrayList(); public List getOldAddresses() { return

RE: Can a collection property have its changes saved back to the ActionForm?

2010-03-18 Thread adam pinder
o save multiple selected options, then you can omit the javascript part which would be better. > Date: Wed, 17 Mar 2010 17:23:45 -0700 > From: andrewrwsha...@yahoo.com > Subject: Re: Can a collection property have its changes saved back to the

Re: Can a collection property have its changes saved back to the ActionForm?

2010-03-17 Thread Andrew Sharpe
ideas I'm open to hearing them, but this seems to do the trick. Andrew - Original Message From: Andrew Sharpe To: user@struts.apache.org Sent: Mon, March 15, 2010 6:03:30 PM Subject: Can a collection property have its changes saved back to the ActionForm? Hello all, I have a Lis

Can a collection property have its changes saved back to the ActionForm?

2010-03-15 Thread Andrew Sharpe
Hello all, I have a List collection that I am displaying in an and it is working great. The problem is that my jsp page makes changes to that control via javascript (adds new options, removes, etc). I would like these changes to be saved back to the ActionForm, preferrably to the same

Losing ActionForm Data on submit

2009-12-03 Thread davargas123
So, I have an issue where when I submit a form, instead of the corresponding ActionForm being populated with the correct field data, it remains unpopulated for a reason unknown to me. Here is the form on my JSP page(js functions provided for clarity, very simple): function encryptSSN

Re: ActionForm is been called once only

2009-08-30 Thread Paweł Wielgus
;>> Or maybe You have some king of logic inside form's reset method. >>>> One another thing is action beeing defined twice with two different >>>> forms? >>>> >>>> Other than that i don't know, >>>> reset works always for me. >>

Re: ActionForm is been called once only

2009-08-29 Thread sharadsingh
re You dealing with redirect in this case? >>> Or maybe You have some king of logic inside form's reset method. >>> One another thing is action beeing defined twice with two different >>> forms? >>> >>> Other than that i don't know, >>>

Re: ActionForm is been called once only

2009-08-29 Thread Paweł Wielgus
me. >> >> Best greeitings, >> Paweł Wielgus. >> >> 2009/8/28 sharadsingh : >>> >>> well i applied break points on both "actionform" and "action" of the form >>> and >>> did both refresh and brand new request. It is

Re: ActionForm is been called once only

2009-08-28 Thread sharadsingh
ow, > reset works always for me. > > Best greeitings, > Paweł Wielgus. > > 2009/8/28 sharadsingh : >> >> well i applied break points on both "actionform" and "action" of the form >> and >> did both refresh and brand new request. It is been

Re: ActionForm is been called once only

2009-08-28 Thread musomesa
In the time between the first time you go to the page and the second time where in your application is the data supposed to be? Chris -Original Message- From: Paweł Wielgus To: Struts Users Mailing List Sent: Fri, Aug 28, 2009 5:34 am Subject: Re: ActionForm is been

Re: ActionForm is been called once only

2009-08-28 Thread Paweł Wielgus
s always for me. Best greeitings, Paweł Wielgus. 2009/8/28 sharadsingh : > > well i applied break points on both "actionform" and "action" of the form and > did both refresh and brand new request. It is been caught in both the times > with the break point in the act

Re: ActionForm is been called once only

2009-08-28 Thread sharadsingh
well i applied break points on both "actionform" and "action" of the form and did both refresh and brand new request. It is been caught in both the times with the break point in the action but not in the actionform Paweł Wielgus wrote: > > Hi, > what do You mean b

Re: ActionForm is been called once only

2009-08-28 Thread Paweł Wielgus
l. Please suggest me on this.., > -- > View this message in context: > http://www.nabble.com/ActionForm-is-been-called-once-only-tp25186640p25186640.html > Sent from the Struts - User mailing list archive at Nabble.com. > > >

ActionForm is been called once only

2009-08-28 Thread sharadsingh
method wont be called at all. Please suggest me on this.., -- View this message in context: http://www.nabble.com/ActionForm-is-been-called-once-only-tp25186640p25186640.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Access ActionForm methods/varaibles in JSP

2009-03-05 Thread Emi Lu
I suggest that you not embed Java code in JSPs in scriptlets like this. It's better to use Struts tags instead. Are you looking at using Struts 1 or Struts 2? Struts1 for now. Do you have a simple code. I am not sure I quite understand how you propose to use java code in JSP? Thanks, -- Lu

Re: Access ActionForm methods/varaibles in JSP

2009-03-05 Thread Jim Kiley
I suggest that you not embed Java code in JSPs in scriptlets like this. It's better to use Struts tags instead. Are you looking at using Struts 1 or Struts 2? jk On Thu, Mar 5, 2009 at 3:22 PM, Emi Lu wrote: > Good morning, > > In JSP file, may I know how to get action bean please? > > > <%

Access ActionForm methods/varaibles in JSP

2009-03-05 Thread Emi Lu
Good morning, In JSP file, may I know how to get action bean please? <% if(f1.getCode().equals('abc')) { %> ... ... <% } %> In JSP, I'd like to know how to call "methods, fields" in action form bean? Thanks a lot! -- Lu Ying ---

[SOLVED] Re: DynaValidatorForm arrives as null (that of passed by ActionForm) in execute

2009-02-24 Thread sledge
blic ActionForward execute(ActionMapping mapping, ActionForm form, > HttpServletRequest request, HttpServletResponse > response) > throws Exception { > > // form arrives as null > DynaValidatorForm myForm = (Dyn

DynaValidatorForm arrives as null (that of passed by ActionForm) in execute

2009-02-23 Thread sledge
Struts 1.1; There's something I think I am doing not right.. Here is the code: action .java: public class EditColActionInit extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletRes

DynaValidatorForm is null (from ActionForm in execute)

2009-02-20 Thread sledge
Here is the code: action .java: public class EditColActionInit extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // form

Re: Action and ActionForm newbie questions

2008-09-29 Thread UseTheFork
Hi Dave, I am sorry if this question goes out of the range. Thanks for your answer !!! J. -- View this message in context: http://www.nabble.com/Action-and-ActionForm-newbie-questions-tp19692405p19721298.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Action and ActionForm newbie questions

2008-09-26 Thread Dave Newton
--- On Fri, 9/26/08, UseTheFork <[EMAIL PROTECTED]> wrote: > What is the proper way? There is no single "proper way". It depends on your environment, your application, and so on. In general your actions should be wrappers around calls to services, no matter how they're implemented. These quest

Re: Action and ActionForm newbie questions

2008-09-26 Thread UseTheFork
Hi Laurie and Dave, I am reading contradictory information from different sources on the Internet and I am getting confused. i) Assuming that I am writing a JSP page to register a new user using a form: I should implement an ActionForm to retrieve the data entered by the user, correct? I

Re: Action and ActionForm newbie questions

2008-09-26 Thread Dave Newton
e between the View (JSP > for example) and > the Model part (Hibernate for example) in MVC. Typically, > they should not > implement business logic, but call EJBs instead. > > ii) When the struts controller calls execute(...) on the > Action class, an > ActionForm class may be

Re: Action and ActionForm newbie questions

2008-09-26 Thread Laurie Harper
. Typically, they should not implement business logic, but call EJBs instead. Call EJBs?? An ActionForm is the data transfer object between the action and the view template (JSP usually). Business logic belongs in the action, or a service API the action interacts with. Talking to EJBs is firmly in

Action and ActionForm newbie questions

2008-09-26 Thread UseTheFork
not implement business logic, but call EJBs instead. ii) When the struts controller calls execute(...) on the Action class, an ActionForm class may be passed as a parameter (if such has been implemented and if struts has been configured properly). iii) An ActionForm contains the data entered by

Generate a ActionForm for a dynamically generated list of Properties

2008-07-22 Thread Ransika de Silva
these selected answers for each question when the user hits the submit button. The normal scenario for html:form is to have the properties hardcoded with names which are there in the ActionForm corresponding to that Action. But the problem here is, I can't specify the properties for the Actio

RE: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-15 Thread Chandramouli P
Its working now. Thank you very much for the replies. The problem was that the naming convention (it was like sStreet, sCity and the getter/setters were getStreet, getCity etc.)of my attributes and I did not initialize the inside bean in the ActionForm. Thanks & Regards, Chandra.

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Lukasz Lenart
> From day one, as far as I know. What? 4 years of blindness? What a mess, I have to go back to basis, bheee. :P Kind regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Laurie Harper
Lukasz Lenart wrote: For the record, Struts 1 definitely supports dot-notation access to sub-fields. That's not the problem here. Upsss... ;-) Could you clarify my doubts, from which version? From day one, as far as I know. L. ---

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Lukasz Lenart
> For the record, Struts 1 definitely supports dot-notation access to > sub-fields. That's not the problem here. Upsss... ;-) Could you clarify my doubts, from which version? Regards -- Lukasz http://www.lenart.org.pl/ - To un

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Laurie Harper
one to see the problem. L. Chandramouli P wrote: Hi, I have the below scenario: I have a java bean as below: public class Address { private String city; private String state; and public getters/setters for the above attributes; } and I have the ActionForm as below: impo

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Laurie Harper
Lukasz Lenart wrote: We are using Struts 1.2.9 and writing the JSP page as below: As I remember, Struts 1 don't support such evaluation, you can use For the record, Struts 1 definitely supports dot-notation access to sub-fields. That's not the problem here. L.

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Laurie Harper
someone to see the problem. L. Chandramouli P wrote: Hi, I have the below scenario: I have a java bean as below: public class Address { private String city; private String state; and public getters/setters for the above attributes; } and I have the ActionForm as below

RE: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Chandramouli P
Hi, Thanks for getting back to me. All I was trying to do is getting the inside bean's values along with the ActionForm, so that I can handle those in my Action class. Please suggest a best way to achieve that. Thanks & Regards, Chandra. > Date: Thu, 3 Jul 2008 08:05:08

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-02 Thread Lukasz Lenart
Hi > We are using Struts 1.2.9 and writing the JSP page as below: > > > > > > > As I remember, Struts 1 don't support such evaluation, you can use Nested Tags [1] , example are here [2] [1] http://struts.apache.org/1.2.9/userGuide/struts-nested.html [2] http://www.mail-

Problem from defining JavaBean as an attribute inside ActionForm

2008-07-02 Thread Chandramouli P
Hi, I have the below scenario: I have a java bean as below: public class Address { private String city; private String state; and public getters/setters for the above attributes; } and I have the ActionForm as below: import Address; public class EmpForm extends

Re: How to get dynamic number of arguments into ActionForm

2008-05-05 Thread maestro
I accomplished this without using the DynaActionForm. Its somewhat a crude way but it works. When stuck with constraints what is one to do? Here is an example, in the JSP I have coded the form element: Once rendered in the HTML: In the form bean: private List beneficiaries = new ArrayList();

Re: How to get dynamic number of arguments into ActionForm

2008-05-05 Thread venkat reddy
If i use the above form the choices that are entered by user are recived in the ActionForm as follows: MultipleFormAction.java --- execute() === DynaActionForm dynaForm = (DynaActionForm)form; String[] choices = (String[]) dynaFo

Re: How to get dynamic number of arguments into ActionForm

2008-05-04 Thread Martin Gainty
s/Autocompleter.html - Original Message - From: "Mead Lai" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Sunday, May 04, 2008 8:43 PM Subject: Re: How to get dynamic number of arguments into ActionForm List type On Sun, May 4, 2008 at 7:51 PM, venkat reddy

Re: How to get dynamic number of arguments into ActionForm

2008-05-04 Thread Mead Lai
g > choice1:String > choice2:String > . > . > . > Add another option > > As you can see here, the number of choices are dynamic and i want to add a > link to give the administrator another choice field. > > Now, how can i get these dynamic fields into my Acti

How to get dynamic number of arguments into ActionForm

2008-05-04 Thread venkat reddy
add a link to give the administrator another choice field. Now, how can i get these dynamic fields into my ActionForm and what type of object should i declare in tag. explain in detail plz

Re: Struts 1 vs Struts 2 actionform execution and Struts2 POJO example

2008-03-20 Thread bugs_
gs_ <[EMAIL PROTECTED]> wrote: >> Can me anybody give a simple example: How to use an POJO object in Struts >> 2 >> (instead of ActionForm)? > > http://struts.apache.org/2.x/docs/hello-world.html > > See t

Re: Struts 1 vs Struts 2 actionform execution and Struts2 POJO example

2008-03-19 Thread Dave Newton
--- bugs_ <[EMAIL PROTECTED]> wrote: > Can me anybody give a simple example: How to use an POJO object in Struts 2 > (instead of ActionForm)? http://struts.apache.org/2.x/docs/hello-world.html See the form creation/using the form

Struts 1 vs Struts 2 actionform execution and Struts2 POJO example

2008-03-19 Thread bugs_
example: How to use an POJO object in Struts 2 (instead of ActionForm)? -- View this message in context: http://www.nabble.com/Struts-1-vs-Struts-2-actionform-execution-and-Struts2-POJO-example-tp16143242p16143242.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Struts1.1 - Value of ActionForm in second Action that is chained

2008-02-22 Thread Laurie Harper
mule_user wrote: This is the scenario using Struts 1.1: User Interface -> MyAction1 (input is Form1)-> MyAction 2 (input is Form2) ->User Interface MyAction1 and MyAction2 are Action classes. MyAction1 and MyAction1 are configured in struts-config.xmxl. MyAction1 takes Form1 as input. MyActi

Struts1.1 - Value of ActionForm in second Action that is chained

2008-02-20 Thread mule_user
ent class, then what value will Form2 have? 4. If Form1 and Form2 are of the same class, then what value will Form2 have? 5. Is it a good idea to do Action chaining? Servlet chaining was never recommended. -- View this message in context: http://www.nabble.com/Struts1.1---Value-of-ActionForm-

Re: how to make ActionForm in session scope in Struts2

2007-10-14 Thread Jose4u
e.g. country? Is there any way to achieve this task? thanks in advance Joseph nuwan chandrasoma-2 wrote: > > Hi, > > what you mean by ActionForm? in struts2 there is no such as ActionForm, > you can access the session from your action class and add any object to > the se

Re: how to make ActionForm in session scope in Struts2

2007-10-11 Thread Nuwan Chandrasoma
Hi, what you mean by ActionForm? in struts2 there is no such as ActionForm, you can access the session from your action class and add any object to the session as an attribute. http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html http://struts.apache.org/2.x/docs/how

how to make ActionForm in session scope

2007-10-10 Thread Jose4u
hi All how to make Action Form and a form in session scope in strut 2 help needed. Thanks in advance Joseph -- View this message in context: http://www.nabble.com/how-to-make-ActionForm-in-session-scope-tf4604877.html#a13148752 Sent from the Struts - User mailing list archive at Nabble.com

Re: Session scoped ActionForm causing strange behaviour

2007-10-04 Thread Ramita Gambhir
; call >> reset(), can it help? > > > Probably, but you have to override it to clear your properties in your > ActionForm class. > > Antonio > > -- View this message in context: http://www.nabble.com/Session-scoped-ActionForm-causin

Re: Session scoped ActionForm causing strange behaviour

2007-10-03 Thread Antonio Petrelli
lp? Probably, but you have to override it to clear your properties in your ActionForm class. Antonio

Re: Session scoped ActionForm causing strange behaviour

2007-10-03 Thread Ramita Gambhir
I call reset(), can it help? Thanks, Ramita Antonio Petrelli-3 wrote: > > 2007/10/3, Ramita Gambhir <[EMAIL PROTECTED]>: >> >> I integrated Struts with Ajax using DWR. For that I had to put the >> ActionForm in session scope. > > > > Why do you

Re: Session scoped ActionForm causing strange behaviour

2007-10-03 Thread Antonio Petrelli
2007/10/3, Ramita Gambhir <[EMAIL PROTECTED]>: > > I integrated Struts with Ajax using DWR. For that I had to put the > ActionForm in session scope. Why do you need to put it into session? Now I am facing a strange problem. > > When I change some values in the form, they

Session scoped ActionForm causing strange behaviour

2007-10-03 Thread Ramita Gambhir
Hi all, I integrated Struts with Ajax using DWR. For that I had to put the ActionForm in session scope. Now I am facing a strange problem. When I change some values in the form, they are saved(marshalled) properly at the backend(an XML file). But in the JSP, it shows old values only. I suspect

Re: Reload a page after ActionForm

2007-09-19 Thread Paul Benedict
You can set redirect=true on the action mapping. On 9/19/07, Diego Ezquerro <[EMAIL PROTECTED]> wrote: > > Hi to everybody. > > I have a JSP that has a Tree that is modified by a submit button that > sends data to an ActionForm. > Inside this ActionForm class, the tree is

Reload a page after ActionForm

2007-09-19 Thread Diego Ezquerro
Hi to everybody. I have a JSP that has a Tree that is modified by a submit button that sends data to an ActionForm. Inside this ActionForm class, the tree is modified but only if the page is reloaded the tree is visually modified. How can I reload the page after de mapping.findForward sentence

Re: How to access the ActionForm in a JSP?

2007-09-04 Thread Dave Newton
urrent action is pushed on the OGNL stack. If a property is exposed by the action it can be accessed via an tag. If you're using S2 it would probably be better not to refer to "ActionForm"s as that has specific S1 meaning. I've paten

Re: How to access the ActionForm in a JSP?

2007-09-04 Thread Frank W. Zammetti
can retrieve the object with: MyActionForm form = (MyActionForm)request.getAttribute("helloworld"); ?? -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 04, 2007 8:31 AM To: Struts Users Mailing List Subject: Re: How to access the ActionF

RE: How to access the ActionForm in a JSP?

2007-09-04 Thread REMIJAN, MICHAEL J [AG/1000]
CTED] Sent: Tuesday, September 04, 2007 8:31 AM To: Struts Users Mailing List Subject: Re: How to access the ActionForm in a JSP? You can find the form as a request attribute with the same name you used in your config file, so: MyActionForm form = (MyActionForm)request.getAttribute("myFormN

Re: How to access the ActionForm in a JSP?

2007-09-04 Thread Frank W. Zammetti
You can find the form as a request attribute with the same name you used in your config file, so: MyActionForm form = (MyActionForm)request.getAttribute("myFormName"); Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammet

How to access the ActionForm in a JSP?

2007-09-04 Thread REMIJAN, MICHAEL J [AG/1000]
Newbie question here. Suppose I have action, "helloworld.action" which I use to grab a bunch of data I wish to display on a JSP page. My question is how do get a reference to that action object in the JSP page? The tutorials on the Struts2 website showed examples using tags, but I don't need t

Re: Accessing ActionForm from JSP

2007-08-08 Thread Oleg Konovalov
How can I do that from the Scriplet ? TIA, Oleg. On 8/2/07, Aram Mkhitaryan <[EMAIL PROTECTED]> wrote: > > Try this > > ${actionFormName.propertyName} > > Best, > Aram > > Aram Mkhitaryan > > 52, 25 Lvovyan, Yerevan 375000, Armenia > > Mobile: +374 91 518456 >

Re: Accessing ActionForm from JSP

2007-08-02 Thread Yoge
pageContext.findAttribute() will return the ActionForm instance . On 8/2/07, Oleg Konovalov <[EMAIL PROTECTED]> wrote: > > Hi, > > How can I access an ActionForm from my JSP in Struts 1.2-1.3 ? > > Thank you, > Oleg. > -- Yoge, AdventNet, Inc. 925-965-6528 [EMAIL PROTECTED] site24x7.com

Re: Accessing ActionForm from JSP

2007-08-01 Thread Aram Mkhitaryan
Try this ${actionFormName.propertyName} Best, Aram Aram Mkhitaryan 52, 25 Lvovyan, Yerevan 375000, Armenia Mobile: +374 91 518456 E-mail: [EMAIL PROTECTED]

Accessing ActionForm from JSP

2007-08-01 Thread Oleg Konovalov
Hi, How can I access an ActionForm from my JSP in Struts 1.2-1.3 ? Thank you, Oleg.

Re: Prepopulate ActionForm bean with STruts

2007-05-29 Thread Laurie Harper
Peter Valencic wrote: Hello to all... I'am working on a large project for car assicuration. My question is if it's possible to prepopulate a form for example.. On page A user must enter policy number... then in actionForm bean i get datas from DB and depends on datas I must prepopul

Prepopulate ActionForm bean with STruts

2007-05-29 Thread Peter Valencic
Hello to all... I'am working on a large project for car assicuration. My question is if it's possible to prepopulate a form for example.. On page A user must enter policy number... then in actionForm bean i get datas from DB and depends on datas I must prepopulate a form B Anyone

prepopulating a form (how to prepopulate ActionForm before it is called)

2007-05-23 Thread Peter Valencic
Hello to all. I would like to populate a ActionForm bean .. for example I have 2 pages page A.jsp and page B.jsp on page A I have ActionForm and on page B I have ActionForm bean.. Is there a possibility to prepopulate ActionForm for page B from page A? example *public* ActionForward

ActionForm

2007-05-01 Thread Ashuin Sharma Chamorro
From: Ashuin Sharma Chamorro Sent: Tuesday, May 01, 2007 5:12 PM To: 'Struts Users Mailing List' Subject: ActionForm In which scope does the ActionForm lives??? In request or session?? Or what?? If in the Action Class I set some values t

Re: ActionForm

2007-05-01 Thread Paul Benedict
session is thrown out, etc. Paul On 5/1/07, Ashuin Sharma Chamorro <[EMAIL PROTECTED]> wrote: In which scope does the ActionForm lives??? In request or session?? Or what?? If in the Action Class I set some values to the form, do I have to add the form back to the request or what do I h

ActionForm

2007-05-01 Thread Ashuin Sharma Chamorro
In which scope does the ActionForm lives??? In request or session?? Or what?? If in the Action Class I set some values to the form, do I have to add the form back to the request or what do I have to do so the success page will see the modified form??? Is it this scope ??(JSP

RE: Using ActionForm in struts2

2007-03-30 Thread Felipe Rodrigues
PM > To: Struts Users Mailing List > Subject: Re: Using ActionForm in struts2 > > --- Syed Ibrahim <[EMAIL PROTECTED]> wrote: >> Instead of writing the getter and setters in Action >> I would prefer then to be written separately as the >> same bean can be used el

RE: Using ActionForm in struts2

2007-03-30 Thread Syed Ibrahim
Thanks a Lot! -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 2:36 PM To: Struts Users Mailing List Subject: Re: Using ActionForm in struts2 --- Syed Ibrahim <[EMAIL PROTECTED]> wrote: > Instead of writing the getter and setters in A

Re: Using ActionForm in struts2

2007-03-30 Thread Dave Newton
--- Syed Ibrahim <[EMAIL PROTECTED]> wrote: > Instead of writing the getter and setters in Action > I would prefer then to be written separately as the > same bean can be used elsewhere in models or > DAO transfer objects. > > How to achieve that in Struts 2 ? Write your POJO, expose it in you

Using ActionForm in struts2

2007-03-29 Thread Syed Ibrahim
Hi, I want to use Simple ActionForms or POJO in Struts 2. Instead of writing the getter and setters in Action I would prefer then to be written separately as the same bean can be used elsewhere in models or DAO transfer objects. How to achieve that in Struts 2 ? Thanks in advance Ibrahim

Re: Struts Question - multiple instances of an actionForm

2007-03-13 Thread Dave Newton
--- xyz <[EMAIL PROTECTED]> wrote: > Any hints/ideas on achieving this? Have you considered using indexed properties? d. TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.c

Struts Question - multiple instances of an actionForm

2007-03-13 Thread xyz
bble.com/Struts-Question---multiple-instances-of-an-actionForm-tf3396668.html#a9456868 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2 - session scope ActionForm

2007-03-07 Thread Alex Wibowo
Thanks Don, that is exactly what I need. On 3/8/07, Don Brown <[EMAIL PROTECTED]> wrote: If you really want to have a JavaBean serve as a session-scoped ActionForm, use this interceptor: http://struts.apache.org/2.x/docs/scoped-model-driven-interceptor.html It allows you to have a

Re: Struts 2 - session scope ActionForm

2007-03-07 Thread Don Brown
If you really want to have a JavaBean serve as a session-scoped ActionForm, use this interceptor: http://struts.apache.org/2.x/docs/scoped-model-driven-interceptor.html It allows you to have a single JavaBean as the Action's model (ActionForm) and will manage storing and retrieving it to

Re: Struts 2 - session scope ActionForm

2007-03-07 Thread Laurie Harper
Alex Wibowo wrote: Hi all... I am still in the process of learning Struts 2. As I understand it, there is no way in Struts 2 to do something like session scope ActionForm in Struts 1. The only solution I can find is to use "ConversationScopeInterceptor" written here: https://issues.

Struts 2 - session scope ActionForm

2007-03-06 Thread Alex Wibowo
Hi all... I am still in the process of learning Struts 2. As I understand it, there is no way in Struts 2 to do something like session scope ActionForm in Struts 1. The only solution I can find is to use "ConversationScopeInterceptor" written here: https://issues.apache.org/struts/brow

Re: ActionForm is null

2007-02-25 Thread Paul Benedict
Assuming Struts 1.x, Action Forms are null when the "name" attribute, which specifies the form, is omitted. Forms are optional for actions. Paul Dave Newton wrote: I'm glad you fixed your problem. --- Monkeyden <[EMAIL PROTECTED]> wrote: If I knew exactly what to tell you, I would likely kno

Re: ActionForm is null

2007-02-25 Thread Dave Newton
I'm glad you fixed your problem. --- Monkeyden <[EMAIL PROTECTED]> wrote: > If I knew exactly what to tell you, I would likely > know enough to fix it. Most people seem to find that posting relevent portions of the config file(s) in question and isolated code chunks to be a reasonable place to st

Re: ActionForm is null

2007-02-25 Thread Monkeyden
If I knew exactly what to tell you, I would likely know enough to fix it. Turns out I did. The root cause of the problem, and the solution, had nothing todo with Struts. On 2/25/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Monkeyden <[EMAIL PROTECTED]> wrote: > Im using Struts 1.2.9 on Tomca

Re: ActionForm is null

2007-02-25 Thread Dave Newton
--- Monkeyden <[EMAIL PROTECTED]> wrote: > Im using Struts 1.2.9 on Tomcat 4.1.31. Somehow, my > form is null within my Action. That's not much to go on. d. Need Mail bonding? Go to the Yahoo! Mail Q&A f

ActionForm is null

2007-02-25 Thread Monkeyden
Im using Struts 1.2.9 on Tomcat 4.1.31. Somehow, my form is null within my Action. It's even null at the level FormBeanConfig.formBeanClass() is called. The type, returned by FormBeanConfig.getType(), returns the correct String, but the call to classLoader.loadClass(getType()) fails to load the

Re: Action and ActionForm in popup window

2007-02-08 Thread Joe Germuska
g code snippet: Form: Action: - Original Message - From: Joe Germuska To: Struts Users Mailing List Sent: Thursday, February 08, 2007 11:00 AM Subject: Re: Action and ActionForm in popup window There needs to be an element in your struts-config.xml etc. Whenever you use an tag,

Re: Action and ActionForm in popup window

2007-02-08 Thread Yariel Ramos Moreno
al Message - From: Joe Germuska To: Struts Users Mailing List Sent: Thursday, February 08, 2007 11:00 AM Subject: Re: Action and ActionForm in popup window There needs to be an element in your struts-config.xml etc. Whenever you use an tag, Struts must be able to find (i

Re: Action and ActionForm in popup window

2007-02-08 Thread Joe Germuska
There needs to be an element in your struts-config.xml etc. Whenever you use an tag, Struts must be able to find (in struts-config.xml) the action you specify in the action attribute, and that action must have a "name" attribute which points to an ActionForm configuration. The form

Action and ActionForm in popup window

2007-02-08 Thread Yariel Ramos Moreno
Hi all: >From a page in my struts application, I need to open a popup window with some >fields to pick up some values. I created an ActionForm with the filed's >properties and an Action asociated to it. The problem is that when I try to >open the popup the following exception

Re: strange behaviour or working as intended with ActionForm and namespaces?

2007-01-29 Thread Dirk Hesse
re. It seems as if the actionForm form is holding each propertyfield as long as i stay on the same request. That's true. If you submit a request parameter like "name" and then process the request using SaveDetailAction (which uses DetailForm), then your DetailForm for

  1   2   3   4   5   6   7   8   9   10   >