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

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

2004-03-26 Thread Pady Srinivasan
quest); 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 da

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 based login page?

2004-03-26 Thread Martin Alley
rs Mailing List 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) { thi

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 solution

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

2004-03-26 Thread Pady Srinivasan
rect to REDIRECT_URI } } 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 bas

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

2004-03-26 Thread Martin Alley
7;s a more 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 b

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

2004-03-26 Thread Joe Germuska
er gets a chance to create 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 javas

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

2004-03-26 Thread Martin Alley
-Original 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

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
ado el: viernes, 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

Re: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Mark Lowe
ado 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 to do it in the action and t

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
- De: Mark Lowe [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 a

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

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

Re: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Mark Lowe
day, month 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);

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread anuj . upadhyay
t; on 03/25/2004 08: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 > -

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
OTECTED] Enviado el: viernes, 26 de marzo de 2004 0: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 b

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
design 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"

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 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 >

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
quot;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 use

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
. "Takhar, Sandeep" 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 objec

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 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 calen

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
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:

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
. "Robert Taylor" 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'

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 by

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, > &

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: 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

RE: ActionForm necessary?

2004-03-15 Thread Johann Reyes
Hello Frank ActionForm in no necesary if you don't use the 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] Se

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

Re: Problem with Map-backed ActionForm and Key value

2004-03-07 Thread Craig Tataryn
yle" wrote: > > Hey, I am using a map-backed ActionForm and so in my JSP code I have a > tag that looks like this: > /> > > 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. I want the value

Re: Problem with Map-backed ActionForm and Key value

2004-03-07 Thread Geeta Ramani
ROTECTED]> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >To: Struts Users 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 &

Re: Problem with Map-backed ActionForm and Key value

2004-03-07 Thread Daniel Henrique Alves Lima
Try <% String propertyName = "value(" + myId + ")"; %> 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 but the key value is still being taken literally as <%=myId%>. I don't kno

Re: Problem with Map-backed ActionForm and Key value

2004-03-07 Thread Brian Boyle
able to pass in an argument as long as it is of type String? Brian From: "Geeta Ramani" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: Problem with Map-backed Ac

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: Give it a shot if you haven't.. Good luck! Geeta Brian Boyle wrote: > Hey, I am using a map-backed ActionForm and so in my JSP code I have a > ta

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 tag that looks like this: 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. I want the value of the key to be the "id" of the user logged in

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 ); } p

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 recommenda

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

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

Re: Date attribute in ActionForm

2004-03-02 Thread Larry Meadors
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 Ut

Should Action or ActionForm be accessing business delegates?

2004-03-02 Thread Barnett, Brian W.
n 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

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

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 of

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: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-23 Thread Oswald Campesato
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 at all at the

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

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
2, 2004 5:40 AM 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 se

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 but

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

2004-02-22 Thread Matthias Wessendorf
doExecute(). there is a "sample-code" below: instead of ActionForm-Klasses i also use DynaActionForms. but i use DynaValidatorForm for using Validator-Framework. i use PropertyUtils.copyProperties() (from the nice jakarta-commons-beanutils-project) inside an action.class to get

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

2004-02-22 Thread Adam Hardy
ng 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 -- strut

[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

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, Gre

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

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 The problem occurs when I try to subm

RE: Using the ActionForm in the JSP

2004-02-05 Thread Villalba Arias, Fredy [BILBOMATICA]
de 2004 15:47 Para: struts Asunto: Using 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 Acti

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: 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: 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 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 it

Re: Action without ActionForm

2004-02-04 Thread Masashi Nakane
Thanks , Both work fine. but Using-normal-form way needs a little change of the action attribute URL of form tag inJSP. I had to change from to testAPP is root of this webapp So, I choose the Using-dummy-actionform way for resemblance with other JSPs

Re: Action without ActionForm

2004-02-04 Thread Hubert Rabago
You can also declare a dummy form. ... - Hubert --- Srinivas Kusunam <[EMAIL PROTECTED]> wrote: > > If there is no ActionForm doesn't work. Try with normal > tag it works fine. > > H

Re: Action without ActionForm

2004-02-04 Thread Srinivas Kusunam
If there is no ActionForm doesn't work. Try with normal 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

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

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

2004-02-04 Thread Jesse Alexander (KAID 11)
: Mittwoch, 4. 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). Righ

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

2004-02-04 Thread Thorsten Scherler
am really not sure anymore (I am at work not home where I have the example that I am refering to) but I think I did it with Jscript and submited two form through one: like this -> (3) Despite 1 and 2, there must be a method to obtain the ActionForm(s) -> associated to an Action (during an s

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

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

2004-02-04 Thread Villalba Arias, Fredy [BILBOMATICA]
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 / po

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

2004-02-04 Thread Thorsten Scherler
Villalba Arias, Fredy [BILBOMATICA] 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: Serv

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

2004-02-04 Thread Villalba Arias, Fredy [BILBOMATICA]
ime!). Anyway, let 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 fo

RE: Need to pass data to JSP in ActionForm

2004-02-03 Thread Pat Young
siness layer and storing > the result. > > One thing to beware of when you do such non-trivial > things 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 > exc

Re: Need to pass data to JSP in ActionForm

2004-02-03 Thread Pat Young
nn <[EMAIL PROTECTED]> 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. Sho

RE: Need to pass data to JSP in ActionForm

2004-02-03 Thread Andrew Hill
n 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 ex

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

Need to pass data to JSP in ActionForm

2004-02-03 Thread Pat Young
he form. 3. 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 Acti

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): ActionFor

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

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

2004-02-03 Thread Hubert Rabago
ta access method part. I MUST > 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 Managemen

[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

{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 vis

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

2004-01-29 Thread Robert Nocera
: [EMAIL PROTECTED] Subject: Struts text field 'value' attribute set from another ActionForm? I have a web form such as: How can I set a default value for the text field, where the value I want is in a different session scoped ActionForm than the one named in the tag? The only way

{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 vis

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

2004-01-29 Thread Ben Anderson
CTED]> 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: How can I set a default value for the text field, where the value I want is in a different session scoped Acti

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

2004-01-29 Thread Adam Bickford
I have a web form such as: How can I set a default value for the text field, where the value I want is in a different session scoped ActionForm than the one named in the tag? The only way I've been able to do it is saving a value as a session attribute and retrieving it with a scri

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

2004-01-29 Thread McCormack, Chris
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 or

{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 vis

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

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&

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 to

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]

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" i

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 pr

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 for

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 h

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

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 w

SV: ActionForm is not automatically popluated.

2004-01-15 Thread Andre Risnes
> > if you have getAmount() and setAmount() methods, you address > the according property in you jsp as amount and not as Amount !!! > silly, but these are the rules... > hope this helps > martin Doh! I was sure i'd tried that. Yes, that definately helps. Thanks André Risnes ---

RE: ActionForm is not automatically popluated.

2004-01-15 Thread Martin Sturzenegger
t; For instance, the property "lastname" isn't going to match >> setLastName() in your form, but "lastName" will. > >I believe i've tried every possible case combination. Currently >the properties in the form are called e.g. Amount and

  1   2   3   4   5   6   7   8   9   10   >