action calling Singleton

2002-11-16 Thread Mohan Radhakrishnan
Hi, What effect does a Singleton class have when it is called by the Action? I read that the Action is reused. It is just a simple file save utility but multiple users might be calling it from their actions at the same time. Is it recommended to use a utitily like this ? The upload utility

RE: action calling Singleton

2002-11-16 Thread Andrew Hill
Hehe, your playing with fire there. ;-) As you are aware each request is processed in its own thread. The actual instance of the action that singleton is called from is unimportant, you could have several threads calling it simultaneously - all from the same actions code. What this means of course

Re: Why doesnt logic:iterate use the formBean from the html:form

2002-11-16 Thread Arron Bates
html:form action=/helpMe logic:iterate property=infoItems /logic:iterate /html:form I assumed that iterate tag would look for a property infoItems on the formBean for the html:form But it doesnt? The nested tags work in exactly this fashion, picking up on the form bean

Is there a better way to write this code?

2002-11-16 Thread Zsolt Koppany
Hi, in this code I want to take the HTTP parameter targetURL if that exists, otherwise, from the attribute of the request. Is there a better way to write this code? Zsolt bean:parameter id=targetURL name=targetURL value= / logic:empty name=targetURL % targetURL =

Reading application object in action.

2002-11-16 Thread Reza Aliakbari
Hi, How can I read application object in action section? As we now application is defined in jsp pages and is: ServletConfig config = getServletConfig(); ServletContext application = config.getServletContext(); Cheers

RE: Reading application object in action.

2002-11-16 Thread Andrew Hill
Hi Reza, To get the ServletContext in an Action you can use: getServlet().getServletContext(); btw The servlet that getServlet() returns is the struts ActionServlet ('within' which all the actions execute). /btw regards Andrew -Original Message- From: Reza Aliakbari [mailto:[EMAIL

Hot to an html:image.. similar to html:cancel/ ?

2002-11-16 Thread Zsolt Koppany
Hi, I would like to use a image button (html:image..) instead of html:cancel/. How can I do that? It also fine of I have to handle that in the Action class. Zsolt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Using : Tomcat 3.2.2

2002-11-16 Thread vze49jqg
Hi I am using Tomcat 3.2.2 , struts 1.0 I am having this problem : I have a ArrayList myArr which is populated by the Bean {A} , the arraylist contains object of another Bean {B}. if I say logic:iterate name=myfs property=myArrlst Hello World /logic:iterate It iterates Hello world for

RE: struts workflow

2002-11-16 Thread Adolfo Miguelez
Diego, I know two workflow projects http://www.livinglogic.de/Struts/ integrated with Struts: and http://jakarta.apache.org/commons/index.html, SandboxComponents, Workflow. No idea if they are the same project or even if there will be any of then integrated with the Struts 1.1 release. I

[ANNOUNCE] Struts ImageButtonBeanManager v0.2d

2002-11-16 Thread Ken Fitzpatrick
To all Struts users ... I have released version 0.2d of the ImageButtonBeanManager on SourceForge.net: http://sourceforge.net/projects/imagebuttonbean/ Project Description: ImageButtonBeanManager is a Struts Extension Package that supports the Struts HTML Image Tag and the ImageButtonBean class

PropertyUtils.copyProperties() usage in 1.1-b2

2002-11-16 Thread Brian Topping
Hi all, happy friday (again... :) I'm trying to figure out what I am doing wrong with PropertyUtils.copyProperties(). From within my Action, I have: User user = bean; DynaActionForm regForm = (DynaActionForm) form; PropertyUtils.copyProperties(regForm, user); When I

PropertyUtils.copyProperties() usage in 1.1-b2

2002-11-16 Thread Brian Topping
Hi all, happy friday (again... :) I'm trying to figure out what I am doing wrong with PropertyUtils.copyProperties(). From within my Action, I have: User user = bean; DynaActionForm regForm = (DynaActionForm) form; PropertyUtils.copyProperties(regForm, user); When I

RE: ActionForm manipulation within an Action

2002-11-16 Thread Brian Topping
... and you aren't using DynaActionForms, which erase your form every time the controller is called. -b -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Friday, November 15, 2002 12:48 PM To: Struts Users Mailing List Subject: RE: ActionForm manipulation within

Re: How can I access the form bean object from JSP?

2002-11-16 Thread Leonardo Maciel
bean:define id=pickAName name=theForm property=beanInForm type=type.of.the.bean / %=pickAName.getMethod()% From: Zsolt Koppany [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: How can I access the form bean object from JSP? Date: Sat,

logic:iterate......html:text... indexed=true/.../logic:iterate

2002-11-16 Thread Leonardo Maciel
Quick question: logic:iterate... html:text... indexed=true/ /logic:iterate Is this feature on jakarta-struts-1.1-b2 or I need to recompile struts as suggested by Dave on article http://husted.com/struts/resources/indexed-tags.htm Thank you, Leo

RE: IndexOutOfBounds error, Struts 1.1b2, J2SDK 1.4.1

2002-11-16 Thread Leonardo Maciel
Good Saturday! I believe I am getting the same bug. I am getting: Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:508) at java.util.ArrayList.get(ArrayList.java:320) at test.IndexedForm.getParameter(IndexedForm.java:28) ...

Utilizing the Struts DataSource from a listener

2002-11-16 Thread Paul Idusogie
Hello: I am attempting to write information to a database using a connection obtained through a dataSource. Could anyone provide the best approach to write to a database from a session listener. I have attempted retrieving the datasource from the servlet context using the following code snippet

Re: Using : Tomcat 3.2.2

2002-11-16 Thread David Graham
Tomcat 3.2.2 is not a supported platform. I would upgrade to a newer version and try again. David From: vze49jqg [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Using : Tomcat 3.2.2 Date: Sat, 16 Nov 2002

Re: Using : Tomcat 3.2.2

2002-11-16 Thread vze49jqg
I see, but sometime it works sometimes it is not. Regards Gopal - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 16, 2002 6:13 PM Subject: Re: Using : Tomcat 3.2.2 Tomcat 3.2.2 is not a supported platform. I would upgrade to a

Re: Using : Tomcat 3.2.2

2002-11-16 Thread David Graham
Just download tomcat 4.1.12 so you know that it's not the container. Then you can know that it's something in your code. David From: vze49jqg [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Using : Tomcat

Re: Using : Tomcat 3.2.2

2002-11-16 Thread vze49jqg
Thanks for your response David. It's coporate environmnent so can't upgrade to 4.0 Thanks a Zillion Though. Regards Gopal - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 16, 2002 6:49 PM Subject: Re: Using : Tomcat 3.2.2 Just

Re: Using : Tomcat 3.2.2

2002-11-16 Thread Antoni Reus
Hi, Can you be more specific? Can you post an snip of your code? Salut! -- Antoni Reus A Dissabte 16 Novembre 2002 17:32, vze49jqg va escriure: Hi I am using Tomcat 3.2.2 , struts 1.0 I am having this problem : I have a ArrayList myArr which is populated by the Bean {A} , the