Re: Using struts-config to configure properties in action form

2004-03-22 Thread Kumar M
up to my form yet. -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 6:28 PM To: Struts Users Mailing List Subject: Re: Using struts-config to configure properties in action form is not a sub-tag of , is though. If you're not using dynamic form

RE: Using struts-config to configure properties in action form

2004-03-22 Thread Chan, Jim
ailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 6:28 PM To: Struts Users Mailing List Subject: Re: Using struts-config to configure properties in action form is not a sub-tag of , is though. If you're not using dynamic form bean, you don't need to define the properties in the t

Re: Using struts-config to configure properties in action form

2004-03-22 Thread Saul Q Yuan
ing struts-config to configure properties in action form I am trying to configure properties in my ActionForm using the struts-config file as follows. public Class MyForm extends ActionForm { private String foo; public void setFoo(String foo) { this.foo = foo; }

Using struts-config to configure properties in action form

2004-03-22 Thread Chan, Jim
I am trying to configure properties in my ActionForm using the struts-config file as follows. public Class MyForm extends ActionForm { private String foo; public void setFoo(String foo) { this.foo = foo; } public String get

RE: people using action form field

2004-03-09 Thread Andrew Hill
TED] Sent: Wednesday, 10 March 2004 03:35 To: Struts Users Mailing List Subject: RE: people using action form field > From: Julio Cesar De Salvo [mailto:[EMAIL PROTECTED] > I know this is a javascript question but is related with struts. > If you use a field called "action" in

RE: people using action form field

2004-03-09 Thread Julio Cesar De Salvo
l- De: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Enviado el: Martes, 09 de Marzo de 2004 05:20 p.m. Para: 'Struts Users Mailing List' Asunto: RE: people using action form field > Ok, let me show what I'm trying to do, imagine that this is > the HTML code rendered by str

RE: people using action form field

2004-03-09 Thread Slattery, Tim - BLS
> Ok, let me show what I'm trying to do, imagine that this is > the HTML code rendered by struts: > > > > Now, when I try to change the value of > ..action="/getElements.do".. using javascript , > document.elementForm.action = '/newGetElements.do', this > refers to the field that h

RE: people using action form field

2004-03-09 Thread Julio Cesar De Salvo
that has the Create value instead of the action element in the form tag (). Hope this helps, and thanks again -Mensaje original- De: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Enviado el: Martes, 09 de Marzo de 2004 04:45 p.m. Para: 'Struts Users Mailing List' Asunto: RE: p

RE: people using action form field

2004-03-09 Thread Slattery, Tim - BLS
Julio, are you talking about something like: In that case, you can assign an "id" attribute to the input field the same way you assigned one to the form field, and address it in the same manner. Or you can use the name field: Document.getElementsByName("action")[0].value="whatever"; Note that

Re: people using action form field

2004-03-09 Thread Daniel Henrique Alves Lima
document.forms[0].action='somethig.do' works to me... to change a field with name "action", i guess you must do something like document.forms[0].action.value Slattery, Tim - BLS wrote: If you use a field called "action" in the form, how can you change the form action with javascript. When I tr

RE: people using action form field

2004-03-09 Thread Slattery, Tim - BLS
> Ok, Tim. But when I try the change the value of the action, > as you said, > document.getElementById("formname").action="newaction.do"; > it refers to the action "field" and not the action element in > the form tag. Suddenly I have the feeling that I don't know what you're talking about. W

RE: people using action form field

2004-03-09 Thread Julio Cesar De Salvo
- BLS [mailto:[EMAIL PROTECTED] Enviado el: Martes, 09 de Marzo de 2004 04:23 p.m. Para: 'Struts Users Mailing List' Asunto: RE: people using action form field > But I cannot set the id element in the tag. Yes you can. The Struts "styleId" attribute of translates in HTM

RE: people using action form field

2004-03-09 Thread Wendy Smoak
> From: Julio Cesar De Salvo [mailto:[EMAIL PROTECTED] > I know this is a javascript question but is related with struts. > If you use a field called "action" in the form, how can you change the > form action with javascript. > When I try to set the document.form.action it tries to set the field >

RE: people using action form field

2004-03-09 Thread Slattery, Tim - BLS
> But I cannot set the id element in the tag. Yes you can. The Struts "styleId" attribute of translates in HTML to the "id" attribute of . -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

RE: people using action form field

2004-03-09 Thread Julio Cesar De Salvo
But I cannot set the id element in the tag. Thanks -Mensaje original- De: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Enviado el: Martes, 09 de Marzo de 2004 04:07 p.m. Para: 'Struts Users Mailing List' Asunto: RE: people using action form field > If you use a field c

RE: people using action form field

2004-03-09 Thread Slattery, Tim - BLS
> If you use a field called "action" in the form, how can you > change the form action with javascript. When I try to set the > document.form.action it tries to set the field instead of the > action for the form. Is there any other way to change the > action for the form? Give the form an "id"

people using action form field

2004-03-09 Thread Julio Cesar De Salvo
I know this is a javascript question but is related with struts. If you use a field called "action" in the form, how can you change the form action with javascript. When I try to set the document.form.action it tries to set the field instead of the action for the form. Is there any other way to c

Re: Action form

2004-02-25 Thread Niall Pemberton
I wrote these http://www.niallp.pwp.blueyonder.co.uk Niall - Original Message - From: "Pradeep, PK" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 25, 2004 7:22 AM Su

RE: Action form

2004-02-24 Thread Pradeep, PK
separate physical class file or equivalent config in the struts-config file?? Warm Regards, Pradeep Kumar -Original Message- From: Guido García Bernardo [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 9:28 PM To: Struts Users Mailing List Subject: Re: Action form I think you are

Re: Action form

2004-02-24 Thread Guido García Bernardo
I think you are searching for DynaActionForm. Take a look at http://www.reumann.net/do/struts/lesson3/step4 I personally don't like them because of debug difficulties. Regards, Guido. Pradeep, PK wrote: Is it mandatory to create ActionForm class for each JSP if we want to send the form data to

Action form

2004-02-24 Thread Pradeep, PK
Is it mandatory to create ActionForm class for each JSP if we want to send the form data to action class? Does it not make the ActionForm class dependent on the UI and liable to change as an when modifications is done in JSP page? Is there a way of dynamically creating the ActionForm class insta

Re: how to submit action form while invoking a popup

2003-12-30 Thread Domingo A. Rodriguez S.
escribió: > Hi, > > i am using window.open(url,"childwin",features) to open pop up screen > where > the url= contextRoot + '/someAction.do?'. I also want to submit the > action form of my parent screen so that i can use it in the action class > method correspond

Re: how to submit action form while invoking a popup

2003-12-30 Thread Paul-J Woodward
l.co.in> cc: Subject: how to submit action form while invoking a popup

how to submit action form while invoking a popup

2003-12-30 Thread Nisith Dash
Hi,   i am using  window.open(url,"childwin",features) to open  pop up screen where the url= "" + '/someAction.do?'. I also want to submit the action form of my parent screen so that i can use it in the action class method corresponding to my action mapping s

Re: Validate method in action form

2003-12-18 Thread Ted Husted
, Ted. vasudevrao gupta wrote: I have a single action form bean for multiple JSP pages. Validation of fields for JSP1 is different from validation of fields in JSP2. How should I write the validate() method in the form so that depending on the action, appropriate validation of fields is done. Re

Validate method in action form

2003-12-18 Thread vasudevrao gupta
I have a single action form bean for multiple JSP pages. Validation of fields for JSP1 is different from validation of fields in JSP2. How should I write the validate() method in the form so that depending on the action, appropriate validation of fields is done. Regards Vasudevraogupta

Help on setting multiple values in Action form from client side

2003-12-17 Thread vasudevrao gupta
Hi , I have a screen with number of records and each record has an associated check-box. User clicks on single/multiple checkboxes to select the records and clicks on delete button(same as in Yahoo mail). I have an associated action form to this screen with one of the attributes of String

Re: ACtion Form within an ACtion

2003-11-25 Thread Ted Husted
he JSP from the Action1 itself. Is this something possible Thanks Gary - Original Message - From: "Hunziker Dennis" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, November 25, 2003 5:23 PM Subject: RE: ACtion Fo

Re: ACtion Form within an ACtion

2003-11-25 Thread Gurpreet Dhanoa
this something possible Thanks Gary - Original Message - From: "Hunziker Dennis" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, November 25, 2003 5:23 PM Subject: RE: ACtion Form within an ACtion > Hi >

RE: ACtion Form within an ACtion

2003-11-25 Thread Hunziker Dennis
ruts Users Mailing List Subject: ACtion Form within an ACtion HI All Can anybody link me to the track of calling one Action within another Action. I have one Action File in which I want to call one more ACtion File and then I want to forward to the JSP Can anybody Help T

ACtion Form within an ACtion

2003-11-25 Thread Gurpreet Dhanoa
HI All Can anybody link me to the track of calling one Action within another Action. I have one Action File in which I want to call one more ACtion File and then I want to forward to the JSP Can anybody Help Thanks gary

RE: One Action and Action form for multiple JSP's

2003-11-20 Thread Daniel Joshua
November, 2003 8:21 PM To: [EMAIL PROTECTED] Subject: One Action and Action form for multiple JSP's Hello I am new to struts , can it be possible that there will be only one Action and ActionForm for multiple Jsp's if possible then link to the example will be very helpful.. R

RE: Map Backed Action Form

2003-11-20 Thread Yee, Richard K,,DMDCWEST
, 2003 4:17 AM To: Struts Users Mailing List Subject: RE: Map Backed Action Form Hi Can anyone help me to implement MAP BACKED ACTION FORM??? In this forum, I see 100 of mails but wht I am try to get help on is not there..And NO ONE IS HERE TO HELP ME OUT?? AM I ASKING SOME irrelevant info here

RE: One Action and Action form for multiple JSP's

2003-11-20 Thread Agashivala, Vishal
Action and Action form for multiple JSP's Hello I am new to struts , can it be possible that there will be only one Action and ActionForm for multiple Jsp's if possible then link to the example will be very helpful.. Regards -sp __ Do you Yahoo!? F

One Action and Action form for multiple JSP's

2003-11-20 Thread sanjay paithankar
Hello I am new to struts , can it be possible that there will be only one Action and ActionForm for multiple Jsp's if possible then link to the example will be very helpful.. Regards -sp __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.

RE: Map Backed Action Form

2003-11-20 Thread Agashivala, Vishal
20, 2003 4:27 PM To: Struts Users Mailing List Subject: Re: Map Backed Action Form In fact the link I have sent you tells you, what you should add in the property attribute : try now. Ovidiu - Original Message - From: "Agashivala, Vishal" <[EMAIL PROTECTED]> T

Re: Map Backed Action Form

2003-11-20 Thread Ovidiu EFTIMIE
er 20, 2003 11:55 AM Subject: RE: Map Backed Action Form > As you have suggested I have updated my jsp as shown below- > BUT NOW it gives me error "No getter method for property username of bean > org.apache.struts.taglib.html.BEAN".. i think it tries to find the > getUsernam

RE: Map Backed Action Form

2003-11-20 Thread Agashivala, Vishal
ge- From: Ovidiu EFTIMIE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 3:46 PM To: Struts Users Mailing List Subject: Re: Map Backed Action Form The jsp you're using for this example should contain the struts taglibs and should look like this Login Password:

Re: Map Backed Action Form

2003-11-20 Thread Ovidiu EFTIMIE
Sent: Thursday, November 20, 2003 11:14 AM Subject: RE: Map Backed Action Form > See basically currently I am just testing so I know what key/value are there > in that HASHMAP. So i am just directly querring the username and password > but it did not show up the value which i v inse

RE: Map Backed Action Form

2003-11-20 Thread Agashivala, Vishal
rs Mailing List Subject: Re: Map Backed Action Form In your Action, CommonEventHandler , you'll decide, based on tha value of a certain field, which should be present in all your jsp and let's call it op, what you should do . So for example in your CommonEventHandler you'll ha

Re: Map Backed Action Form

2003-11-20 Thread Ovidiu EFTIMIE
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 20, 2003 10:09 AM Subject: RE: Map Backed Action Form > Hi > I have checked the URL which you have suggested but there I did not find the > example of accessing a field value of form in

RE: Map Backed Action Form

2003-11-20 Thread Agashivala, Vishal
-5691 3870 -Original Message- From: Ovidiu EFTIMIE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 2:18 PM To: Struts Users Mailing List Subject: Re: Map Backed Action Form Look here http://puneetdelhi.tripod.com/ Designing Screens For Variable Number Of Fields

Re: Map Backed Action Form

2003-11-20 Thread Ovidiu EFTIMIE
Look here http://puneetdelhi.tripod.com/ Designing Screens For Variable Number Of Fields - Original Message - From: "Agashivala, Vishal" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 20, 2003 7:17 AM Sub

RE: Map Backed Action Form

2003-11-19 Thread Agashivala, Vishal
tion { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { System.out.println("reached here"); if (form == null) { System.out.prin

Re: Map Backed Action Form

2003-11-19 Thread Rick Reumann
Agashivala, Vishal wrote: Hi Can anyone help me to implement MAP BACKED ACTION FORM??? In this forum, I see 100 of mails but wht I am try to get help on is not there..And NO ONE IS HERE TO HELP ME OUT?? AM I ASKING SOME irrelevant info here?? If so atleast write to me so that i can think of

RE: Map Backed Action Form

2003-11-19 Thread Paul McCulloch
Start here: http://www.catb.org/~esr/faqs/smart-questions.html Paul -Original Message- From: Agashivala, Vishal [mailto:[EMAIL PROTECTED] Sent: 19 November 2003 12:17 To: Struts Users Mailing List Subject: RE: Map Backed Action Form Hi Can anyone help me to implement MAP BACKED

RE: Map Backed Action Form

2003-11-19 Thread Agashivala, Vishal
Hi Can anyone help me to implement MAP BACKED ACTION FORM??? In this forum, I see 100 of mails but wht I am try to get help on is not there..And NO ONE IS HERE TO HELP ME OUT?? AM I ASKING SOME irrelevant info here?? If so atleast write to me so that i can think of other way to work around

Map Backed Action Form

2003-11-19 Thread Agashivala, Vishal
can you pls reply how do i implemt the Map Backed ActionForm since its not working at my end...if possible can u send snippet of struts-config.xml and uractionform.java file for refrence Regards, Vishal Agashivala - To unsubscrib

RE: [Poll] Action Form data types

2003-10-14 Thread Trieu, Danny
lto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 1:37 AM To: Struts Users Mailing List Subject: RE: [Poll] Action Form data types #1 -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: 13 October 2003 20:37 To: [EMAIL PROTECTED] Cc: Green, Matt Subject: [Poll] Action

RE: [Poll] Action Form data types

2003-10-14 Thread Edgar P Dollin
None of the above. I use java data types but use getters and setters in the ActionForm to perform the casting and any other manipulations necessary. Edgar > > Mainguy, Mike wrote: > > Here's my weekly(ish) question: > > For the purposes of this discussion, ActionForms also mean > > DynaActionF

RE: [Poll] Action Form data types

2003-10-14 Thread Daniel Haynes
#1 -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: 13 October 2003 20:37 To: [EMAIL PROTECTED] Cc: Green, Matt Subject: [Poll] Action Form data types Here's my weekly(ish) question: For the purposes of this discussion, ActionForms also mean DynaActionForms an

RE: [Poll] Action Form data types

2003-10-13 Thread Andrew Hill
#1. Strings, strings and more strings for me please! (yes even for checkboxes) -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 October 2003 03:37 To: [EMAIL PROTECTED] Cc: Green, Matt Subject: [Poll] Action Form data types Here's my weekl

Re: [Poll] Action Form data types

2003-10-13 Thread Sgarlata Matt
#2, and sometimes #1 - Original Message - From: "Mainguy, Mike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Green, Matt" <[EMAIL PROTECTED]> Sent: Monday, October 13, 2003 3:37 PM Subject: [Poll] Action Form data types > Here's my we

RE: [Poll] Action Form data types

2003-10-13 Thread Jerry Jalenak
Cc: Green, Matt > Subject: [Poll] Action Form data types > > > Here's my weekly(ish) question: > For the purposes of this discussion, ActionForms also mean > DynaActionForms > and the like... > Where does everyone cast their (String) request parameters to > the 'p

Re: [Poll] Action Form data types

2003-10-13 Thread Adam Hardy
#2 On 10/13/2003 09:37 PM Mainguy, Mike wrote: Here's my weekly(ish) question: For the purposes of this discussion, ActionForms also mean DynaActionForms and the like... Where does everyone cast their (String) request parameters to the 'proper' datatype? #1 My ActionForms only have Strings, I man

Re: [Poll] Action Form data types

2003-10-13 Thread Koni Roth
#3 Mainguy, Mike wrote: Here's my weekly(ish) question: For the purposes of this discussion, ActionForms also mean DynaActionForms and the like... Where does everyone cast their (String) request parameters to the 'proper' datatype? #1 My ActionForms only have Strings, I manually cast stuff somewh

RE: [Poll] Action Form data types

2003-10-13 Thread Wendy Smoak
Mike wrote: > Where does everyone cast their (String) request parameters to the 'proper' datatype? #2a My ActionForms only have Strings [and Booleans], I let (BeanUtils, JDBC,...) cast stuff for me somewhere else. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IR

[Poll] Action Form data types

2003-10-13 Thread Mainguy, Mike
Here's my weekly(ish) question: For the purposes of this discussion, ActionForms also mean DynaActionForms and the like... Where does everyone cast their (String) request parameters to the 'proper' datatype? #1 My ActionForms only have Strings, I manually cast stuff somewhere else. #2 My ActionF

Map Backed Action Form

2003-10-13 Thread Yolk Man
I have set up a map backed action form with the following getter and setter methods: public void setValue(String psKey, Object psValue) { mhFieldValues.put(psKey, psValue); } public Object getValue(String psKey) { return mhFieldValues.get(psKey); } On my JSP page, I have a

action form submission

2003-10-05 Thread Nisith Dash
Hi ,   can anybody tell me how i can use a _javascript_ in my JSP page to open a new pop up window and at the same time submit my parent action form to this new popup window.As such I am not able to reference this action form within the action class defined for the pop up window.       Any

Re: how to submit a action form using a javascript(pop-up).

2003-09-26 Thread Jan Van Stalle
to submit your form using javascript, do something like document.forms[0].submit(); Jan "Nisith Dash" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi all, I have a problem and need you help for resolution.I have a JSP struts page with an action form wit

how to submit a action form using a javascript(pop-up).

2003-09-26 Thread Nisith Dash
Hi all,   I have a problem and need you help for resolution.I have a JSP struts page with an action form with typically save,delete buttons.One of the fields in this form is a search criteria field with a Go button which should basically display the results in a new pop up window.I have

RE: Action Form Design Question

2003-09-22 Thread Susan Bradeen
gt; and as we discussed before, we allow Struts to do it is allowed to > manage the action form life cycle. > > So, the bottom line is that somewhere you have to prepare PageB > for display. Should you do it in ProcessPageAction or should you > place the data in request scope and

Re: Action/Form Design Q

2003-09-22 Thread Adam Hardy
What you can do is make your action forward a redirect in the mapping, so that the browser is told to make a new request to that mapping. Then you can specify the form in your new mapping and struts takes care of it all. You just have to watch out for request parameters - that info will get lo

Re: Action Form Design Question

2003-09-22 Thread Michael Thompson
s input form in execute. Now ActionA needs to forward to jspB which expectes an ActionFormB, what is the cleanest way to handle this in struts(see code below). Do struts users run across this case often or do I need to rethink my Action/Form design? --m Robert Taylor wrote: This was discuss

Action/Form Design Q

2003-09-21 Thread Michael Thompson
I've hit a stumbling block and I'm not quite sure how to work around it. I've written struts apps in the past and I've taken the approach of putting everything in the ActionForm so that the jsp has a one stop shop for all it's display needs. So where I've hit an issue is when say I have jsp A

RE: Action Form Design Question

2003-09-21 Thread Robert Taylor
ed for PageB in ProcessPageAction. Yes, there is some loose coupling but the cohesion is tighter within actions and as we discussed before, we allow Struts to do it is allowed to manage the action form life cycle. So, the bottom line is that somewhere you have to prepare PageB for display. Should you do it in Pr

Re: Action Form Design Question

2003-09-21 Thread Michael Thompson
-Original Message- From: Michael Thompson [mailto:[EMAIL PROTECTED] Sent: Saturday, September 20, 2003 11:09 AM To: Struts Users Mailing List Subject: Re: Action Form Design Question // /

RE: Action Form Design Question

2003-09-21 Thread Robert Taylor
st scope temporarily. What I would stress is let Struts do its job where possible - like creating action forms. robert > -Original Message- > From: Michael Thompson [mailto:[EMAIL PROTECTED] > Sent: Saturday, September 20, 2003 11:09 AM > To: Struts Users Mailing List &

Re: Action Form Design Question

2003-09-20 Thread Michael Thompson
ActionA recieves an ActionFormA as its input form in execute. Now ActionA needs to forward to jspB which expectes an ActionFormB, what is the cleanest way to handle this in struts(see code below). Do struts users run across this case often or do I need to rethink my Action/Form design? --m

RE: Action Form Design Question

2003-09-20 Thread Robert Taylor
; To: struts-user > Subject: Action Form Design Question > > > I've hit a stumbling block and I'm not quite sure how to work around > it. I've written struts apps in the past and I've taken the approach of > putting everything in the ActionForm so that the jsp

RE: Action Form Design Question

2003-09-19 Thread Ray Madigan
My Opinion! :-) -Original Message- From: K.C. Baltz [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 5:16 PM To: Struts Users Mailing List Subject: Re: Action Form Design Question Personally, I've tried to stay away from putting data in the ActionForm that isn't relat

Re: Action Form Design Question

2003-09-19 Thread K.C. Baltz
Personally, I've tried to stay away from putting data in the ActionForm that isn't related to an actual form submission value. So if I have a drop down with a list of countries for the user to choose, the list of countries goes into the request attributes and the single choosen country value g

RE: Map backed action form

2003-09-19 Thread Ray Madigan
You have not allocated the Properties instance that you will use. private Map properties = new Properties ( ); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 7:00 AM To: Struts Users Mailing List Subject: Map backed action form

Action Form Design Question

2003-09-19 Thread Michael Thompson
I've hit a stumbling block and I'm not quite sure how to work around it. I've written struts apps in the past and I've taken the approach of putting everything in the ActionForm so that the jsp has a one stop shop for all it's display needs. So where I've hit an issue is when say I have jsp A

Map backed action form

2003-09-15 Thread denis
Hello, I have a problem with my map backed form. When I try to validate the form, when I try to retrieve value it throws a null pointer exception, as if the map was null. I am successful going through my jsp and populating the bean, so i am not sure what is going on. What might be the proble

Re: Repost: Validations in Action Form

2003-09-01 Thread Joe @ Team345
ate validators specified this will return an invalid date ActionError to the calling page. You may know of some special case where an exception would still be thrown - I haven't seen this though on any of the projects I've done. Joe deepaksawdekar wrote: Hi, What about the

RE: Repost: Validations in Action Form

2003-09-01 Thread deepaksawdekar
Hi, What about the setter methods of the action form. They may throw some IllegalArgumentException when you are trying to set some of wrong arguments in the form. How will you take care it. Deepak. -Original Message- From: Joe @ Team345 [mailto:[EMAIL PROTECTED] Sent: Saturday, August

Re: Repost: Validations in Action Form

2003-08-30 Thread Joe @ Team345
uld niggle the purists. Adam On 08/29/2003 01:18 PM sriram wrote: Can some please validate this? My application uses Struts Action Form. I am also using Value Objects. I am not doing validations using validations.xml and validator-rules.xml. I'm performing simple validations on server sid

RE: Validations in Action Form

2003-08-29 Thread Yansheng Lin
are trying to validate. And so it's up to the business object to handle this. -Original Message- From: sriram [mailto:[EMAIL PROTECTED] Sent: August 28, 2003 10:06 PM To: 'Struts Users Mailing List' Subject: Validations in Action Form My application uses Struts Action For

RE: Repost: Validations in Action Form

2003-08-29 Thread sriram
Adam, Thanks for the information. Sriram -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 5:18 PM To: Struts Users Mailing List Subject: Re: Repost: Validations in Action Form Hi Siriam, there are no struts framework rules. There is the MVC

Re: Repost: Validations in Action Form

2003-08-29 Thread Adam Hardy
send the value objects I presume) where you can call View-layer validation. Not that you would, but it would niggle the purists. Adam On 08/29/2003 01:18 PM sriram wrote: Can some please validate this? My application uses Struts Action Form. I am also using Value Objects. I am not doing validations

Repost: Validations in Action Form

2003-08-29 Thread sriram
Can some please validate this? My application uses Struts Action Form. I am also using Value Objects. I am not doing validations using validations.xml and validator-rules.xml. I'm performing simple validations on server side as follows: Can some one please check the below code and tell

Validations in Action Form

2003-08-29 Thread sriram
My application uses Struts Action Form. I am also using Value Objects. I am not doing validations using validations.xml and validator-rules.xml. I'm performing simple validations on server side as follows: Can some one please check the below code and tell me if what I am doing is correct

How to validate page 1 in page 2 action/form (multi-page form)

2003-08-14 Thread David Thielen
Hi; When the user clicks submit on page 2 of a form, I need to check page 1 also because they may have gotten to page 2 with a bookmark. My page 1 validation is with the page 1 form validate. page 2 has a different form. Should I: 1.. Look for the page 1 form attached to the session and if it

Re: How to validate page 1 in page 2 action/form (multi-page form)

2003-08-14 Thread Adam Hardy
I would say your issue is in the flow of control area, rather than the validation area, therefore I would choose 1 or some other mechanism that does the same job. Plus it would be easier and more intuitive than 2. Adam David Thielen wrote: Hi; When the user clicks submit on page 2 of a form,

RE: reset() in my action form is not working

2003-07-30 Thread victor gusz
ROTECTED] > Sent: Wednesday, July 30, 2003 3:32 PM > To: [EMAIL PROTECTED] > Subject: reset() in my action form is not working > > > Hi, > > I define a reset function and seset every form > variables to null, since I want to reset all inputs > to > null after I h

Re: reset() in my action form is not working

2003-07-30 Thread victor gusz
Thanks, its working now. --- Michael Ruppin <[EMAIL PROTECTED]> wrote: > That's not what the ActionForm.reset() method is > for. > It's called prior to population of your ActionForm > from the request, to set values for things which may > not be in the request [but should be], like > unchecked >

RE: reset() in my action form is not working

2003-07-30 Thread Amit Kirdatt
Have you tried request.setAttribute(mapping.getAttribute(), new SampleForm()); ? Although I do agree with Michael. -Original Message- From: victor gusz [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 3:32 PM To: [EMAIL PROTECTED] Subject: reset() in my action form is not working

Re: reset() in my action form is not working

2003-07-30 Thread Michael Ruppin
That's not what the ActionForm.reset() method is for. It's called prior to population of your ActionForm from the request, to set values for things which may not be in the request [but should be], like unchecked checkboxes. What you need is some ActionForm.setEmpty() method to call before forward

reset() in my action form is not working

2003-07-30 Thread victor gusz
Hi, I define a reset function and seset every form variables to null, since I want to reset all inputs to null after I hit submit button. I also put the following line before I return ActionForward in my action class: request.setAttribute(mapping.getAttribute(), sampleForm); But its not working,

RE: problem submitting mulitple row fields in one action form

2003-07-29 Thread Wendy Smoak
Faisal wrote: > Does anyone know how to get all of the data entered in the fields > passed to the action class. The number of rows returned depends > upon what is in the database so is not pre defined. If you read up on indexed properties, possibly the nested taglib, and use a String[] property i

problem submitting mulitple row fields in one action form

2003-07-29 Thread Faisal Shoukat
Hello, Does anyone know how to submit multiple fields in one form. Let me explain. I have a search jsp which returns for example 3 rows. In each of the rows there are 3 amendable columns x, y and z. which are stored as The user has the option of amending all the fields thus if 3 rows were re

SET ACTION FORM ATTRIBUTE IN JSP

2003-07-01 Thread Anurag Garg
Hello All, In my JSP I want to set the values of some of the attributes in action form on the basis of some condition. I am checking that condition using the logic:equal tag. For e.g . Now in my logic:equal tag I want to set the value of property

Re: How to access methods define in Action Form

2003-06-07 Thread Mark Lowe
If you've mapped you form bean to an associated action then the form will be in an available scope in your jsp page.. You dont need the useBean tag. You just need to make sure you've a form bean (dyna or otherwise) an action servlet, and that they be mapped in stuts-config.xml. cheers mark On

RE: Action Form: HashMap

2003-06-06 Thread Craig R. McClanahan
On Fri, 6 Jun 2003, Ray Madigan wrote: > > I am using frames so i can't look at the source. > For Netscape, IE, and Mozilla, right click inside the frame ... you'll be amazed at what you can actually do :-). Craig - To unsubs

RE: Action Form: HashMap

2003-06-06 Thread Ray Madigan
7; Subject: RE: Action Form: HashMap Well I am glad it works now... and all I can say is that SPACE problems are truly invisible sometimes :) -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 6:49 PM To: Struts Users Mailing List Subject: RE: A

RE: Action Form: HashMap

2003-06-06 Thread Erez Efrati
Well I am glad it works now... and all I can say is that SPACE problems are truly invisible sometimes :) -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 6:49 PM To: Struts Users Mailing List Subject: RE: Action Form: HashMap I am using frames

RE: Action Form: HashMap

2003-06-06 Thread Ray Madigan
EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:31 AM To: 'Struts Users Mailing List' Subject: RE: Action Form: HashMap I mean the HTML view source after the page has been generated. I am working with the Mapped Properties methods and it works fine so hang on there, it will

RE: Action Form: HashMap

2003-06-06 Thread Erez Efrati
: 'Struts Users Mailing List' Subject: RE: Action Form: HashMap Try looking at the source of the generate page. See that all looks correct. I am also not sure if leading spaces between the name of the property name 'stringMapped' and the () chars are legal... -- Erez -Origin

  1   2   3   >