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
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
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
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 =
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
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
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]
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
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
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
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
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
... 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
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,
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
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)
...
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
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
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
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
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
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
22 matches
Mail list logo