RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
:59 Para: Sreenivasa Chadalavada; Struts Users Mailing List Asunto: Re: Handling Date objects in ActionForm gracefully You deal with the conversion else where but not in the form bean, you can argue about it or just believe me. The action form sits between the view and the action, the date

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread anuj . upadhyay
:53:31 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc:(bcc: Anuj Upadhyay/Jeppesen/TMC) Subject: RE: Handling Date objects in ActionForm gracefully +1 -Original Message- From: Mark Lowe [mailto:[EMAIL

Re: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Mark Lowe
and year. Not sure if this works but I think the idea is valid (corrections welcome). public class SomeForm extends ActionForm { private Calendar aDate = Calender.instance(); public String getDay() { int d = aDate.get(Calendar. DAY_OF_MONTH); return

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Joe Hertz
Since I just wrestled greatly with this particular beast, my $.02 follows. Subclass whatever flavor of ActionForm you use, and give it a method with a footprint like- java.util.Date StringToDate(String) { } This way you can do something like this in your action: public ActionForward execute

How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
Hi, Suppose I've got a web based form that posts data to an action, and I have that action protected by container form based authorization - how does the ActionForm data get through. I have a situation like this, and my ActionForm is empty after I've been through the form-based login page. One

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
[mailto:[EMAIL PROTECTED] Enviado el: viernes, 26 de marzo de 2004 10:24 Para: Struts Users Mailing List Asunto: Re: Handling Date objects in ActionForm gracefully I think the way of going about converting is pretty open, either have some conversion utils between the web tier and the model. I tend

Re: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Mark Lowe
, 26 de marzo de 2004 10:24 Para: Struts Users Mailing List Asunto: Re: Handling Date objects in ActionForm gracefully I think the way of going about converting is pretty open, either have some conversion utils between the web tier and the model. I tend to do it in the action and then when things get

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
, 26 de marzo de 2004 11:05 Para: Struts Users Mailing List Asunto: Re: Handling Date objects in ActionForm gracefully Freddy. No, you misunderstood if you thought I was responding with any hostility whatsoever. There is a general problem where input would be better validated in the web tier so

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
Message- From: Martin Alley [mailto:[EMAIL PROTECTED] Sent: 26 March 2004 09:41 To: [EMAIL PROTECTED] Subject: How does ActionForm data pass through container called form based login page? Hi, Suppose I've got a web based form that posts data to an action, and I have that action protected

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Joe Germuska
an ActionForm based on the submission, so I don't think that making them session scoped is likely to help. This probably doesn't constitute a solution, but perhaps extending the session timeout would help a bit. Perhaps you could come up with some kind of javascript hack which calls a URL against

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
elegant solution - after this technology's been around for a while! Thanks Martin -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 26 March 2004 14:21 To: Struts Users Mailing List Subject: RE: How does ActionForm data pass through container called form based login page

RE: How does ActionForm data pass through container called form b ased login page?

2004-03-26 Thread Pady Srinivasan
} } Thanks -- pady [EMAIL PROTECTED] -Original Message- From: Martin Alley [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 8:59 AM To: 'Struts Users Mailing List' Subject: RE: How does ActionForm data pass through container called form based login page? Well I've just

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Joe Germuska
I might be able to put some general code in the login form (as a jsp) that puts all form data present in the previous page into the login form so it could be passed on, but that will still leave the problem of the method becomes GET instead of POST. I'm really hoping there's a more elegant

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
Subject: RE: How does ActionForm data pass through container called form based login page? This is the only solution I can think of: public class RedirectServletRequest extends HttpServletRequest { public RedirectServletRequest(HttpServletRequest req) { this.request = req

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
I think I need to do some simple test cases - with and without struts. Martin -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 26 March 2004 15:20 To: Struts Users Mailing List Subject: RE: How does ActionForm data pass through container called form based login page

RE: How does ActionForm data pass through container called form b ased login page?

2004-03-26 Thread Pady Srinivasan
); Chain.doFilter(newreq, response); } } Thanks -- pady [EMAIL PROTECTED] -Original Message- From: Martin Alley [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 10:35 AM To: 'Struts Users Mailing List' Subject: RE: How does ActionForm data pass through

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
I'll be very interested to here the outcome... Thanks Martin -Original Message- From: Pady Srinivasan [mailto:[EMAIL PROTECTED] Sent: 26 March 2004 16:07 To: Struts Users Mailing List Subject: RE: How does ActionForm data pass through container called form based login page? We were

Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
All, We are facing a problem when we define java.util.Date field in ActionForm. Is there any way to override the default behavior provided by Struts? I very much appreciate your help!! Thanks and Regards, Sree

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Robert Taylor
What's the problem? robert -Original Message- From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 2:28 PM To: Struts Users Mailing List Subject: Handling Date objects in ActionForm gracefully All, We are facing a problem when we define

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
Have it as a string and convert it to a date or calendar when you pass it back to the model. On 25 Mar 2004, at 20:28, Sreenivasa Chadalavada wrote: All, We are facing a problem when we define java.util.Date field in ActionForm. Is there any way to override the default behavior provided

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
. Robert Taylor rtaylor @mulework.com 03/25/2004 02:35 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: Handling Date objects in ActionForm gracefully What's the problem? robert

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: Handling Date objects in ActionForm gracefully Have it as a string and convert it to a date or calendar when you pass it back to the model. On 25 Mar 2004, at 20:28

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Robert Taylor
+1 -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 2:36 PM To: Struts Users Mailing List Subject: Re: Handling Date objects in ActionForm gracefully Have it as a string and convert it to a date or calendar when you pass it back

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Takhar, Sandeep
PROTECTED] Sent: Thursday, March 25, 2004 2:47 PM To: Struts Users Mailing List Subject: Re: Handling Date objects in ActionForm gracefully I am thinking of overriding the struts default mechanism. Override the default behavior of org.apache.commons.beanutils.ConvertUtils by registering a valid

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
. Takhar, Sandeep Sandeep.Takhar @CIBC.ca 03/25/2004 02:53 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: Handling Date objects in ActionForm

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: Handling Date objects in ActionForm gracefully yes it is. It should be done once per classloader. When struts populates the dyna form it is string array to string array conversion and uses populate method

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread anant.parnami
: Friday, March 26, 2004 1:06 AM To: Struts Users Mailing List Subject: RE: Handling Date objects in ActionForm gracefully What's the problem? robert -Original Message- From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 2:28 PM To: Struts Users

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Takhar, Sandeep
. sandeep -Original Message- From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:11 PM To: Struts Users Mailing List Subject: RE: Handling Date objects in ActionForm gracefully Do you know if the behavior can be overridden? Thanks and Regards, Sree

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
of ActionForm (and the recommendation that form bean properties be Strings) is ***very*** deliberate. The reason this is needed is obvious when you consider the following use case: * You have an input form that, say, accepts only integers. * Your form bean property is of type int. * The user

ActionForm necessary?

2004-03-15 Thread Frank Burns
I have a jsp form which has fields that require no validation. So I don't need to validate the form input. If I don't include an ActionForm, I get a ... null form ... error message. Does this mean that I MUST create ActionForms, even if they are empty -- i.e., no validate() method and no getters

RE: ActionForm necessary?

2004-03-15 Thread Johann Reyes
Hello Frank ActionForm in no necesary if you don't use the html:form tag.. if you use it then you have to use an actionform even if you don't have any validation on it. Hope it helps, Johann -Original Message- From: Frank Burns [mailto:[EMAIL PROTECTED] Sent

RE: ActionForm necessary?

2004-03-15 Thread Wendy Smoak
From: Frank Burns [mailto:[EMAIL PROTECTED] I have a jsp form which has fields that require no validation. So I don't need to validate the form input. If I don't include an ActionForm, I get a ... null form ... error message. Does this mean that I MUST create ActionForms, even

Problem with Map-backed ActionForm and Key value

2004-03-07 Thread Brian Boyle
Hey, I am using a map-backed ActionForm and so in my JSP code I have a html:text tag that looks like this: html:text property=value(%=value.getUserId()%) readonly=true size=2 / The reason I have a scriplet in there is because I have a dynamic form and the value of the key changes all the time

Re: Problem with Map-backed ActionForm and Key value

2004-03-07 Thread Geeta Ramani
Hey Brian: Have you tried evaluating the keyValue ahead of time? As in: %String myKey = ..blah-blah.. using userId;% and then: html:text property=%=myKey% readonly=true size=2 / Give it a shot if you haven't.. Good luck! Geeta Brian Boyle wrote: Hey, I am using a map-backed ActionForm and so

Re: Problem with Map-backed ActionForm and Key value

2004-03-07 Thread Brian Boyle
ActionForm and Key value Date: Sun, 07 Mar 2004 12:30:43 -0500 MIME-Version: 1.0 Received: from mail.apache.org ([208.185.179.12]) by mc2-f12.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sun, 7 Mar 2004 09:29:04 -0800 Received: (qmail 47563 invoked by uid 500); 7 Mar 2004 17:28:46 -

Re: Problem with Map-backed ActionForm and Key value

2004-03-07 Thread Daniel Henrique Alves Lima
Try % String propertyName = value( + myId + ); % html:text title=myinput property=%=propertyName% readonly=true size=2 / Brian Boyle wrote: Hi!, Thanks for the quick response. I have already tried declaring myId as String myId = value.getCandId();. I then put myId as an argument in html:text

Re: Problem with Map-backed ActionForm and Key value

2004-03-07 Thread Geeta Ramani
Mailing List [EMAIL PROTECTED] Subject: Re: Problem with Map-backed ActionForm and Key value Date: Sun, 07 Mar 2004 12:30:43 -0500 MIME-Version: 1.0 Received: from mail.apache.org ([208.185.179.12]) by mc2-f12.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Sun, 7 Mar 2004 09:29:04 -0800

Re: Problem with Map-backed ActionForm and Key value

2004-03-07 Thread Craig Tataryn
wrote: Hey, I am using a map-backed ActionForm and so in my JSP code I have a html:text tag that looks like this: html:text property=value(%=value.getUserId()%) readonly=true size=2 / The reason I have a scriplet in there is because I have a dynamic form and the value of the key

Mapped Backed ActionForm

2004-03-04 Thread Ray Madigan
I am having a difficult time getting Map backed ActionForm's working. In the ActionForm class I have the following methods defined private Map elementMap = new HashMap ( ); public Object getElementMap ( String key ) { return ( String ) elementMap.get ( key ); } public

Map-backed ActionForm and java.lang.OutOfMemoryError

2004-03-03 Thread Anandaroop Roy
Hi, In my application I am stumped by a problem with Map-backed ActionForms. We have a couple of use cases where a user must update values for mutiple database rows/data objects at once. Persons objects are being updated with time and place information, let's say. So I followed this

Date attribute in ActionForm

2004-03-02 Thread Vanessa Monteiro
Hello, I have and ActionForm with one element refering to a Date (from Util) property and I get the following exception java.lang.IllegalArgumentException: argument type mismatch Is there a special treatment for these kind of attributes? Thanks, _ Vanessa Monteiro

Should Action or ActionForm be accessing business delegates?

2004-03-02 Thread Barnett, Brian W.
with the ActionForm and was then wondering if I should design our ActionForm's to have direct access to the business layer. Thoughts? Thanks, Brian Barnett

Re: Date attribute in ActionForm

2004-03-02 Thread Larry Meadors
there is that the date format MM/dd/yy will parse 1/1/04 as 01/01/2004, but 1/1/4 as 01/01/0004, so you need to handle that yourself. Same trick with numeric classes. Larry [EMAIL PROTECTED] 03/02/04 11:36 AM Hello, I have and ActionForm with one element refering to a Date (from Util) property and I get

RE: Should Action or ActionForm be accessing business delegates?

2004-03-02 Thread Smith, Darrin
I'd say no. Don't have the ActionForm (just a JavaBean with some validation in it...maybe) access the business layer. To me, the Action acts as the local Java class talked about in the Business Delegate Pattern that creates and caches a Stateful Session Bean. Use them (the actions) or add

Re: Date attribute in ActionForm

2004-03-02 Thread Mark Lowe
/02/04 11:36 AM Hello, I have and ActionForm with one element refering to a Date (from Util) property and I get the following exception java.lang.IllegalArgumentException: argument type mismatch Is there a special treatment for these kind of attributes? Thanks, _ Vanessa

using ActionForm for transfeering result set data

2004-02-26 Thread Pradeep, PK
Thank you the detailed reply. Can we populate ActionForm to populate result set data..How? and then how one can retrieve it in JSP page ..in html table. If anybody has already done it ..I will appreciate if they can send me sample code...else even hint/refrences will do Pradeep Kumar Digital

RE: using ActionForm for transfeering result set data

2004-02-26 Thread Pradeep, PK
Can we populate ActionForm to populate result set data..How? and then how one can retrieve it in JSP page ..in html table. If anybody has already done it ..I will appreciate if they can send me sample code...else even hint/refrences will do Pradeep Kumar Digital Globalsoft Ltd. (A subsidiary

RE: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-23 Thread Mathew, Manoj
User Subject: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use? My application allows a user to make various different types of bookings for a (fictional!!!) hospital and logs them in a database. Each type of booking has a set of common properties

Re: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-23 Thread Raphaël di Cicco
] Is it worth subclassing your own Action and ActionForm classes to attain code re-use? My application allows a user to make various different types of bookings for a (fictional!!!) hospital and logs them in a database. Each type of booking has a set of common properties but also different ones depending

Re: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-23 Thread Rick Reumann
On Sat, 2004-02-21 at 23:40, Mark Jones wrote: In what circumstances might you want to subclass your own Action class and, if you did, how would you handle/inherit the form data? Would you just use different subclasses of your Action but just one ActionForm for each Action? Did you look

Re: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-23 Thread Oswald Campesato
: In what circumstances might you want to subclass your own Action class and, if you did, how would you handle/inherit the form data? Would you just use different subclasses of your Action but just one ActionForm for each Action? Did you look at all at the e-mail that I sent you, and Robert Taylor

Re: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-22 Thread Adam Hardy
to divvy the handling of the form data via inheritance is too complicated and / or unnecessary. I once had a ActionForm superclass with getter / setter methods for frequently occuring fields - but dropped it because the advantage was trivial. And I started using DynaActionForms. Adam -- struts 1.1

RE: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-22 Thread Matthias Wessendorf
(). there is a sample-code below: instead of ActionForm-Klasses i also use DynaActionForms. but i use DynaValidatorForm for using Validator-Framework. form-bean name=logonForm type=org.apache.struts.validator.DynaValidatorForm form-property name=user type=java.lang.String / form-property name

[Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-21 Thread Mark Jones
data? Would you just use different subclasses of your Action but just one ActionForm for each Action? What is the best way for me to implement this problem? (Or have I answered my own question?! ;0) ) Thanks for indulging me! Mark

Can I access an ActionForm JavaBean with a session scope?

2004-02-15 Thread Gregg Williams
I am continuing work on an extremely simple (2 web pages) Struts application. In the first page (entryPage.jsp), you enter data into a form and click the submit button. This takes you to the second page (displayPage.jsp), which displays the data from the form; and clicking the submit button on

Re: Can I access an ActionForm JavaBean with a session scope?

2004-02-15 Thread cnd
You don;t use the name quoted you place the Object in the session and then retrieve it by name. session.setAttribute(yourbean,the name you give it); Object mybean = session.getAtribute(the name you give it); I think you have to cast myObject cos it is untyped. Chris On Sun, 15 Feb 2004, Gregg

Velocity + Map-backed ActionForm

2004-02-10 Thread Frederik Dierickx
Hi all, I'm stuck using Velocity with a map-backed ActionForm. I implemented my ActionForm using the technique of getValue(String key) and setValue(String key, Object value). I can retrieve a value from the Map using the following Velocity code input type=text name=$form.bean.value(1) value

Using the ActionForm in the JSP

2004-02-05 Thread Rahul Mohan
Hi everyone, I need to access the ActionForm properties inside the JSP code for the same window. Is there any way to do this? Regarding this I have some doubts about the life cycle of ActionForms 1. When exactly is the ActionForm object instantiated? Is the ActionForm object

RE: Using the ActionForm in the JSP

2004-02-05 Thread Villalba Arias, Fredy [BILBOMATICA]
the ActionForm in the JSP Hi everyone, I need to access the ActionForm properties inside the JSP code for the same window. Is there any way to do this? Regarding this I have some doubts about the life cycle of ActionForms 1. When exactly is the ActionForm object instantiated

RE: Accessing ActionForm from Servlet (was: Pajes + Struts)

2004-02-04 Thread Villalba Arias, Fredy [BILBOMATICA]
me comment on your posting, Joe (read below): These are initial steps towards making it easier to get an ActionForm instance for prepopulation on the way to the view. Be warned, this method does not use any of the logic for looking up an existing form bean in request or session scope under

Re: Accessing ActionForm from Servlet (was: Pajes + Struts)

2004-02-04 Thread Thorsten Scherler
Villalba Arias, Fredy [BILBOMATICA] fvillalba at mailext.com writes: (3) It is not possible to have more than one ActionForm associated to an Action (at the same time), i.e. it's a 1:1 relationship (again, am I right?) That's not true! I am using an Action with 2 ActionForms: ServiceForm

RE: Accessing ActionForm from Servlet (was: Pajes + Struts)

2004-02-04 Thread Villalba Arias, Fredy [BILBOMATICA]
to acomplish that), what sense does it make to have 2 ActionForms variables if only one form can be submitted at a time anyways? (maybe I'm missing something else) (3) Despite 1 and 2, there must be a method to obtain the ActionForm(s) associated to an Action (during an specific request / post). Right

RE: Accessing ActionForm from Servlet (was: Pajes + Struts)

2004-02-04 Thread Hubert Rabago
Hi Fred(d)y, (3) Despite 1 and 2, there must be a method to obtain the ActionForm(s) associated to an Action (during an specific request / post). Right? I think this question has been answered twice in this very thread, once by me, and again (and with code) by Andrew Hill. From Andrew's

Submit two Form with JScript (was Accessing ActionForm from Servlet )

2004-02-04 Thread Thorsten Scherler
it with Jscript and submited two form through one: like this form action=bla.do onSubmit=submitFormBToo/ - (3) Despite 1 and 2, there must be a method to obtain the ActionForm(s) - associated to an Action (during an specific request / post). Right? - Jupp, that right! - Regards, - Freddy. - King regards

RE: Accessing ActionForm from Servlet (was: Pajes + Struts)

2004-02-04 Thread Jesse Alexander (KAID 11)
. Februar 2004 18:13 To: Struts Users Mailing List Subject: RE: Accessing ActionForm from Servlet (was: Pajes + Struts) Hi Fred(d)y, (3) Despite 1 and 2, there must be a method to obtain the ActionForm(s) associated to an Action (during an specific request / post). Right? I think this question

Action without ActionForm

2004-02-04 Thread Masashi Nakane
Hi ,all I am new to Struts and learning it. And I am wondering how the strtus-config.xml and JSP look like when a JSP doesn't submit any info( dont need ActionForm) . The JSP just display the current time and has one button refresh. CurrentTime.jsp ( user push refresh button

Re: Action without ActionForm

2004-02-04 Thread Srinivas Kusunam
If there is no ActionForm html:form doesn't work. Try with normal form tag it works fine. Hope this helps. Srini [EMAIL PROTECTED] 02/04/04 07:00PM Hi ,all I am new to Struts and learning it. And I am wondering how the strtus-config.xml and JSP look like when a JSP doesn't

Re: Action without ActionForm

2004-02-04 Thread Hubert Rabago
name=currentTimeForm forward name=success path=/CurrentTime.jsp / /action /action-mappings ... - Hubert --- Srinivas Kusunam [EMAIL PROTECTED] wrote: If there is no ActionForm html:form doesn't work. Try with normal form tag it works fine

Re: Action without ActionForm

2004-02-04 Thread Masashi Nakane
the Using-dummy-actionform way for resemblance with other JSPs. Thank you again. At 17:18 04/02/04 -0800, you wrote: You can also declare a dummy form. - Hubert --- Srinivas Kusunam [EMAIL PROTECTED] wrote: If there is no ActionForm html:form doesn't work. Try with normal form tag it works fine

Re: Action without ActionForm

2004-02-04 Thread Max Cooper
My perspective is that there is still value in having an ActionForm for that example. I generally think it is best for your Actions to pass information to the JSPs that render them through an ActionForm rather than putting things in the request or session directly. For this reason, I think

Re: Action without ActionForm

2004-02-04 Thread Michael McGrady
value in having an ActionForm for that example. I generally think it is best for your Actions to pass information to the JSPs that render them through an ActionForm rather than putting things in the request or session directly. For this reason, I think it would be better to put the current time

RE: Action without ActionForm

2004-02-04 Thread Andrew Hill
+1 I too am finding that it is quite convienient to treat the actionform as the pages UI State rather than merely an input buffer. -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Thursday, 5 February 2004 13:42 To: Struts Users Mailing List Subject: Re: Action

Re: Accessing ActionForm from Servlet (was: Pajes + Struts)

2004-02-03 Thread Hubert Rabago
BE ABLE TO RECOVER THE APPROPRIATE ActionForm object FROM THAT Servlet (actually, in a factory class, but I don’t want to bother you with all the details) so that the view-generating class can “paint”, WITHOUT REPLICATING THE ActionForm Management (especially, the scopes management) ALREADY

RE: Accessing ActionForm from Servlet (was: Pajes + Struts)

2004-02-03 Thread Villalba Arias, Fredy [BILBOMATICA]
Hi Hubert, thanx for answering! Read below. Not sure this would be possible. The actual ActionForm in use depends on the session, and sometimes even the particular request. I doubt there's a way to get to the form object actually in use by just specifying the action class. If it's the *class

Re: Accessing ActionForm from Servlet (was: Pajes + Struts)

2004-02-03 Thread Joe Germuska
(2) Whatís the minimal information that one needs to retrieve an Actionís corresponding ActionForm object? ModuleConfig modConf = ModuleUtils.getInstance().getModuleConfig(request); FormBeanConfig fbc = modConf.findFormBeanConfig(mapping.getName()); (since 2004/01/24): ActionForm form

Need to pass data to JSP in ActionForm

2004-02-03 Thread Pat Young
. The list of products is retrieved with a call to our service layer in the Action for the JSP page. This Action is called sales.do. 4. The submit button for the form submits the data on the form to salesAdjust.do. 5. The salesAdjust.do Action has an ActionForm associated to it called salesForm

Re: Need to pass data to JSP in ActionForm

2004-02-03 Thread Rick Reumann
Pat Young wrote: 6. The problem I am having is that if the ActionForm failes validation, then the sales.jsp page gets an error becaue it can not find the bean in the Request for the products list. Should I build this bean in my validate and place it in the request at the beginning of validate

RE: Need to pass data to JSP in ActionForm

2004-02-03 Thread Andrew Hill
in the actionform, is that if memory serves me correctly (someone please correct me if Im wrong on this!), exceptions thrown here wont be handled by the exception handler you configured in struts config as the try/catch that invokes that handler is merely around the invocation of the actual action execute

Re: Need to pass data to JSP in ActionForm

2004-02-03 Thread Pat Young
] wrote: Pat Young wrote: 6. The problem I am having is that if the ActionForm failes validation, then the sales.jsp page gets an error becaue it can not find the bean in the Request for the products list. Should I build this bean in my validate and place it in the request

RE: Need to pass data to JSP in ActionForm

2004-02-03 Thread Pat Young
this adapter to setup the list when it is validating the entered data. Your setup action, likewise would call the adaptor class rather than directly calling the business layer and storing the result. One thing to beware of when you do such non-trivial things in the actionform, is that if memory

[OT]? - an article on ActionForm or DynaActionForm

2004-01-30 Thread Matthias Wessendorf
Hi list, here is a nice article on choice of ActionForm or DynaActionForm. http://weblogs.java.net/pub/wlg/964 cheers, Matthias Weßendorf Email: mailto:[EMAIL PROTECTED] URL: http://www.wessendorf.net - To unsubscribe, e

AUTO {ICICICARE#005-216-320}Can i access session or request object from a bean which is Actionform variable

2004-01-29 Thread NRI Cell
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your mail and assure you of a response shortly.To help us serve you better, we would request you to kindly mention your account number or any reference number you may have in your future correspondence. Kindly

RE: AUTO {ICICICARE#005-216-320}Can i access session or request object from a bean which is Actionform variable

2004-01-29 Thread McCormack, Chris
}Can i access session or request object from a bean which is Actionform variable Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your mail and assure you of a response shortly.To help us serve you better, we would request you to kindly mention your account number

Struts text field 'value' attribute set from another ActionForm?

2004-01-29 Thread Adam Bickford
ActionForm than the one named in the strutshtml:text tag? The only way I've been able to do it is saving a value as a session attribute and retrieving it with a scriptlet, like this: strutshtml:text name=someForm property=someProperty size=10 value=%= (String)session.getAttribute(sessionAttributeValue

RE: Struts text field 'value' attribute set from another ActionForm?

2004-01-29 Thread Ben Anderson
Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Struts text field 'value' attribute set from another ActionForm? Date: Thu, 29 Jan 2004 09:54:56 -0500 I have a web form such as: strutshtml:form action=/someAction enctype=multipart/form-data strutshtml:text name=someForm property

AUTO {ICICICARE#005-218-632}Struts text field 'value' attribute set from another ActionForm?

2004-01-29 Thread NRI Cell
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your mail and assure you of a response shortly.To help us serve you better, we would request you to kindly mention your account number or any reference number you may have in your future correspondence. Kindly

RE: Struts text field 'value' attribute set from another ActionForm?

2004-01-29 Thread Robert Nocera
To: [EMAIL PROTECTED] Subject: Struts text field 'value' attribute set from another ActionForm? I have a web form such as: strutshtml:form action=/someAction enctype=multipart/form-data strutshtml:text name=someForm property=someProperty size=10 value=???/ /strutshtml:form How can I set a default

AUTO {ICICICARE#005-219-266}Struts text field 'value' attribute set from another ActionForm?

2004-01-29 Thread NRI Cell
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your mail and assure you of a response shortly.To help us serve you better, we would request you to kindly mention your account number or any reference number you may have in your future correspondence. Kindly

Problem with huge session memory and ActionForm

2004-01-28 Thread Jose Ramon Diaz
Hi all, We have detected a problem with the amount of memory we use in the session when we use classes extending org.apache.struts.action.ActionForm and DynaActionForm too. We are using 9iAS 9.0.3. We take a look to the memory using JPRobe profiler, and we see that the

RE: Problem with huge session memory and ActionForm

2004-01-28 Thread shirishchandra.sakhare
because of that. HTH. regards, Shirish -Original Message- From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 1:48 PM To: 'Struts Users Mailing List' Subject: Problem with huge session memory and ActionForm Hi all, We have detected a problem

Re: Problem with huge session memory and ActionForm

2004-01-28 Thread Nicolas De Loof
ActionForm has this attribute : protected transient ActionServlet servlet All ActionForms share the same ActionServlet instance. As this attribute is transient, it will not be serialized if form is put in session (and session itself is serialized). So I think the session size is not well

RE: Problem with huge session memory and ActionForm

2004-01-28 Thread Jose Ramon Diaz
Thanks Shirish. That´s the solution we are trying now, but I still don´t understand why an ActionForm has a reference to the ActionServlet. Does anybody know, please? Or am I missing something? thanks! -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviado el

RE: Problem with huge session memory and ActionForm

2004-01-28 Thread Jose Ramon Diaz
Thanks Nico, But i´m surprised because the other transient objects we have in ActionForm (for example, a Category of log4j) aren´t showed by JProbe, but attribute servlet is showed and computed for memory. however our own transient attributes aren´t showed. May this be somethnig related

Re: Problem with huge session memory and ActionForm

2004-01-28 Thread Nicolas De Loof
AFAIK ActionForm has a reference to ActionServlet to write to servlet log and to get application scoped datas (ie. getServlet().getServletContext(); ) Nico. - Original Message - From: Jose Ramon Diaz [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday

Can i access session or request object from a bean which is Actionform variable

2004-01-28 Thread Yajamanyam Venugopal
Hi I have a nested bean in my ActionForm. Is there any way to access the session object or HttpRequest from that nestedbean. class MyActionForm extends ActionForm{ private Tree myTree; } class Tree{ I would like to access session or http request from this bean } Thnaks

Converting data in a ActionForm

2004-01-22 Thread Peter Sloots
Hi I'm using the following code in a ActionForm to convert 3 strings to a Timestamp, problem is that some of the string are null, getBirthdateMonth() is still null because setBirthdateMonth() is called after setBirthdate(). Can someone tell me what is the right approach. I would like to handle

ActionForm boolean properties - Newbie question

2004-01-20 Thread Renato Romano
I have some trouble using a boolean (the primitive type) property inside an ActionForm. What I'd like to know is if Struts looks for a getProperty method or isProperty method... It seems Struts always calls the getProperty, but as I know it should call the isProperty!! Is the behavior

RE: ActionForm boolean properties - Newbie question

2004-01-20 Thread Andrew Hill
If its a primitive , it will look for 'is' , but for the Boolean object it will look for 'get' (same as any other object). -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED] Sent: Tuesday, 20 January 2004 23:00 To: 'Struts Users Mailing List' Subject: ActionForm boolean

RE: ActionForm is not automatically popluated.

2004-01-15 Thread Andre Risnes
. Currently the properties in the form are called e.g. Amount and the methods in the ActionForm are called e.g. getAmount() and setAmount(). -- Regards André Risnes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

RE: ActionForm is not automatically popluated.

2004-01-15 Thread Andre Risnes
Are you casting the ActionForm in to your own form in your save action? like: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request

  1   2   3   4   5   6   7   8   9   10   >