Hii All,
Any one know how to get multiple Datasource from Struts.
Because i think in Struts-config.xml, we are able to specify only one
Datasource.
Also I got an error when I configure my datasources in tomcat's
sever.xml context /context I couldnt able to get that datasource
Hi,
name - The attribute name of the bean whose properties are consulted to
determine which option should be pre-selected when rendering this input
field. If not specified, the bean associated with the enclosing html:form
tag is utilized.
The above is the doc. for html:form ..
If I use the
It will pick up property values from the bean ReportParameterForm and NOT
'ReportParameterFormBean' , these two names are different as far as i know
Deepank
- Original Message -
From: Mohan Radhakrishnan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 30, 2002 1:03 PM
You were right, two properties were missing in the ActionForm!!!
It wasn't so strange!!!
Thanks...
Peter S. Hamlen wrote:
Yep, we've seen the same behavior a lot. The trick is that there is
SOME error occuring on the page (in our case, it was often non-existent
property references in our
HI,
O.K. It is ReportParameterForm. I am checking this because of the
following error.
javax.servlet.ServletException: Cannot find bean under name wanLinkOptions
I am referring to the html select example from the Struts examples package.
bye,
mohan
-Original Message-
From:
Hii All,
Any one know how to get multiple Datasource from Struts.
Because i think in Struts-config.xml, we are able to specify only one
Datasource.
Also I got an error when I configure my datasources in tomcat's
sever.xml context /context I couldnt able to get that datasource
Hi
I've been swimming through the docs but may have overlooked this, please
help if you can
I want a jsp to display a result after the Action is done , but I don't
want to use set/getAttribute().
Is there another solution or is setAttribute the only way to pass the
data to the jsp?
Thanks in
So, the web server can't find the specified class. Can you check if
the class is present in
WEB-INF/classes/org/apache/struts/webapp/tiles/portal/. ? If not, check
if it is in the war file. If still not there, it is a bug. Do you have
the latest version of Tiles or Struts ?
Cedric
The Tiles framework provides a way to build web pages by assembling
page fragment. The Tiles Definition contains one assemblage that can
be reuse in other assemblage. The definition name is a unique identifier
of this assemblage, not an url. So, you need to link the definition to
an URL.
You try to parse an uncomplete tiles xml configuration file. Maybe you
have added a new war file like struts-blank.war in your application ? In
Struts 1.1b2 and later, tiles are enable from struts-config.xml, with
the appropriate tags.
Hope this help,
Cedric
Tuan H. Le wrote:
This is because u may not have stored the bean wanLinkOptions in request
or session, the scope u may be using in ur application.
u must store this bean in some scope(probably in your action class)
- Original Message -
From: Mohan Radhakrishnan [EMAIL PROTECTED]
To: 'Struts Users
Hi.
Several days ago, I posted a message relating to configuring Struts to run
properly on OC4J.
The actual problem was that JDeveloper's wizard for creating Action classes,
does not create a perform(), but an execute() method, which I beleive is the
old version (?).
The Action class that
Hi,
The bean should be associated with the html:form tag according to the
struts example. The example
html:select property=collectionSelect size=10
multiple=true
html:options collection=options property=value
labelProperty=label/
/html:select
doesn't specify any
Execute is the new versión (1.1b2). Perform is the old metod (1.0.2).
Regads.
-Mensaje original-
De: Thomas Delnoij [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 30 de septiembre de 2002 12:33
Para: [EMAIL PROTECTED]
Asunto: Struts ActionMapping / OC4J problem
Hi.
Several days ago, I
Instead of forwarding to 'setup.jsp' that has no presentation, why not
forward to 'setup.do'. If there is not presentation, and just action,
shouldn't it BE an action rather than a (non)presentation component. Your
setup.do action would then perform the prepopulation of the form and forward
to
+1
-Original Message-
From: Dave Derry [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 19:11
To: Struts Users Mailing List
Subject: Re: Pre-populating ActionForms
Instead of forwarding to 'setup.jsp' that has no presentation, why not
forward to 'setup.do'. If there is not
Hi Micheal,
I am trying to use Validator with Struts 1.1 b2. I am not using dynaforms. But I have
multiple sub applications in my application.
Can you share you code (or your insight for it) with me.
Thanks in advance.
Regards,
Vikas Sangwan.
-Original Message-
From: Michael
When u use the collection attribute of the options tag, u must store the
bean u r trying to access by the collection attribute in some scope. Its
not the same bean as the one attributed with your action mapping. It will be
some collection like a Vector, ArrayList etc. stored in the some scope
Title: Serving XML and dynamically generated Flash (jgenerator) content with struts
Hi, there!
Im kinda new to struts and have a few questions regarding it:
1. is it possible to serve xml using struts? We're currently using 'stand-alone servlets to generate xml that'sread by flash movies,
Hi Stefan,
You may want to check out stxx. From your email it seems like it should
do everything you need it to do.
stxx - http://www.openroad.ca/opencode/stxx
[EMAIL PROTECTED] wrote:
Hi, there!
Im kinda new to struts and have a few questions regarding it:
1. is it possible to serve
I have recently upgraded to struts 1.1b and I notice that all error messages stored in
ActionErrors from the validate-method of the form bean has disappeared when trying to
display them using html:errors/.
The only change I have made is upgrading struts. Something has happened. What?
Here is
Don't you have to call the method saveErrors() ?
Regards,
Ronald
- Original Message -
From: Billerby Erik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 30, 2002 2:29 PM
Subject: Differences in error validation between 1.0 and 1.1b?
I have recently upgraded to
2002. szeptember 30. 14:36 dátummal Ronald Rotteveel ezt írtad:
Don't you have to call the method saveErrors() ?
No. Not in the validate method. It returns ActionErrors.
Do you have the appropriate message in your resourcebundle?
Tib
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
All:
I have what seems to be a fairly common situation which is not producing
the results I expected:
On my JSPs and in my ActionForms, I have a field which represents an
artificial key for a database table. On an update, this field will have
a value, but on a create, it must be null.
I
On Mon, 30 Sep 2002, Charles McClain wrote:
I have what seems to be a fairly common situation which is not producing
the results I expected:
On my JSPs and in my ActionForms, I have a field which represents an
artificial key for a database table. On an update, this field will have
a value,
Thanks!
That did the job!
Before I saw a message like this ???en.Part.partNo??? instead of the message, but it
seems like
they fixed that.
Regards
/Erik
-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]]
Sent: den 30 september 2002 14:43
To: Struts Users Mailing List
Vincent,
I highly reccomend Patterns of Enterprise Application Architecture, by
Martin Fowler. I'm not sure if it's published yet, but you can read most of
it on his web site (www.martinfowler.com/isa). It compliments Core J2EE
Patterns very well.
- Jeff
-Original Message-
From:
I was wondering what the overall philosophy is in the Struts Users community
in regards to pre-populating action forms? I sent a message out late last
week asking for help on how to manually instantiate and pre-populate an
action form (prior to forwarding to a JS) in Struts 1.1. That's when I
Dave:
My apologies. I just now changed the fields to html:hidden, and the
screen still works. I encountered this problem early on in converting
my application to Struts, and I just made the fields html:text during
development as a workaround, since it was useful to display the keys for
testing
Awesome! No problem ;-)
Vinh Tran wrote:
Eddie:
I figured out that EL is working fine and it does indeed work with all types
of tags. Thanks again.
Vinh
--
Eddie Bush
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
You can define multiple datasources in struts-config.xml by having mulitple
datasource elements inside the datasources element. You need to give
each datasource a unique name (or key) so that you can retrieve them from
the ServletContext to use them. See the struts dtd for the syntax of the
I do the same as Eddie. Put an action in front of the form that sets its
initial values.
Dave
From: Hohlen, John [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts-Help (E-mail) [EMAIL PROTECTED]
CC: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: SURVEY:
Me too.
-Mensaje original-
De: David Graham [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 30 de septiembre de 2002 15:34
Para: [EMAIL PROTECTED]
Asunto: Re: SURVEY: Proper Way To Pre-populate ActionForms
I do the same as Eddie. Put an action in front of the form that sets its
initial
Setting up your mail reader to automatically forward STRUTS-USER messages
to a separate folder, and then sorting by thread, is a trivially easy
approach to dealing with volume issues. Your inbox is no longer clogged,
you can go read Struts mail when you have time, and can ignore entire
[EMAIL PROTECTED] wrote:
Hi, there!
I?m kinda new to struts and have a few questions regarding it:
1. is it possible to serve xml using struts? We're currently using
'stand-alone servlets to generate xml that'sread by flash movies, but
we're seeing a need for things like
Thanks for the tip!
However, I do not want to transform the xml ... I want a flash-movie to
interpret it and transform it into flash-objects (I really just want to
return content of type text/xml to the user. Is there something like a
xslt no-op?
Now, let's say stxx solves my problem related to
in your action class:
PrintWriter out = new PrintWriter (response.getOutputStream());
out.println(yourXmlString);
return null;
Joe
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 1 October 2002 12:03 AM
To: [EMAIL PROTECTED]
Subject: RE: Serving
You can also set the content type in your response object like so:
response.setContentType(text\html);
response.setContentType(text\pdf);
etc...
-Original Message-
From: Joe Latty [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 10:34 AM
To: Struts Users Mailing List
Subject:
OK - off topic, but Sun's java forum sucks, and there are an incredible
number of Java guru's on this list, so I thought I'd throw this out here.
(That and I am using this in a custom validation routine :-))Any help
would be GREATLY appreciated!
Here's the scenario - I've got a series of
sounds like a job for reflection (java.lang.reflect.*;) Have you looked at
java.lang.Class and java.lang.reflect.Field?
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 7:50 AM
To: '[EMAIL PROTECTED]'
Subject: [OT - Java] How can I do
What version of struts are you using?
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta
-Original Message-
From: Pel Oliver Kristiansen [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September
Jason,
Thanks for the quick reply. I just took at look at the API's, but don't yet
understand enough about reflection to know how to implement it. Just
looking at the methods I don't see a way to do what I want - any chance that
you'd have some sample code laying about?
Jerry
-Original
Hi,
I'm experiencing this same problem. If you have a solution, please post.
Thanks,
Tuan
-Original Message-
From: Kalaiselvan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 2:18 AM
To: Struts Users Mailing List
Subject: About Datasource
Hii All,
Any one know
I was reading that I should put all my JSP inside the WEB-INF dir so clients
cant access them without going to the controller.
My issues is that How do I access them?? can someone please tell me how to
setup my Action so I can display the JSP files??
--
To unsubscribe, e-mail:
Once they are under web-inf a direct access from the client will not be
allowed by the container, however forwards on the server side are allowed,
thus to get to the JSP you can forward to it from an Action.
The benefit of this is that users will not be able to hit your JSP without
first going
Try this
data-sources
data-source key=DataSource1
set-property property=autoCommit
value=false /
set-property property=driverClass
value=oracle.jdbc.driver.OracleDriver /
set-property
I don't happen to have any sample code that does exactly what you're doing,
but off the top of my head (with a little help from sun's javadoc) I'd say
it's something like:
import java.lang.reflect.Field;
String stateCode = AK;
Class constantClass =
Since March of 2001, there has been almost 27K emails sent
to the list.
Why the continuous pouring of emails? Maybe another
technique has to be developed for people to research
problems.
By the way - the separate folder technique works until you
take a trip for week and things get back logged.
On Mon, Sep 30, 2002 at 07:59:18AM -0700, Taylor, Jason wrote:
sounds like a job for reflection (java.lang.reflect.*;) Have
you looked at java.lang.Class and java.lang.reflect.Field?
I suppose reflection would work, but what's wrong with a simple
HashMap or possibly even a simple array as a
The server cannot tell the difference between an input field that was
visible (html:text) and invisible (html:hidden) -- when the form is
submitted, they both look the same. Therefore, your problem is being
caused by something else. Likely culprits:
* No setter method (or a case match
Im in a bit of a rush right now to try and get a taxi home before the
midnight charge kicks in, but Im sure there are many others out there who
can give you a good example (right guys???)
-Original Message-
From: Smith, Johnathan M. [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30,
Jason - Thanks for the code snippet - worked like a charm first time! I
tend to get lost in JavaDoc sometimes, so this was a nice example to have on
how to wind my way through to the answer! Thanks again!
John - Thanks for the suggestion on using the HashMap. I'm going to file it
away for now
The first technique couples your presentation with your business logic more closely
than does the latter. So, my preference would be using the html:options.
You can maintain the collection that makes up the options in the form bean for the
page. Initialization must be handled via the
On Mon, 30 Sep 2002, Malcolm Davis wrote:
Date: Mon, 30 Sep 2002 10:41:53 -0500
From: Malcolm Davis [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: all this traffic
Since March of 2001, there has been
My problem with doing database lookups in ActionForm.reset() is that an
exception may occur and it's not as easy to handle as it when doing things
within the Action class (where you can just forward things to an error.jsp).
I find that if I trap the exception, the populate method may have
How do I redirect to a dynamic url with parameters?
I need to forward to some url with a query string that is dynamically
created. The url I forward to can change and I also need to create that
dynamically. Also, the url I need to forward to is external to our
system.
I have tried
The struts-example app (which uses a separate action for the setup) is the
method that I recommend for manually setting up an ActionForm instance,
plus any other beans that need to be looked up and placed in request
scope. To remind you of the relationships, the actions and the JSP page
are
I was told I could do this;
action name=aPage ..
[put the jsp file here]
/action
action
forward name=aPage path=aPage.do /
/action
Billy Ng
From: Andrew Hill [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
Subject: RE: Access JSP in the WEB-INF
Date: Mon,
I have a modified version of the struts-example that demostrates how to do
this.
Would you care for a copy?
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta
-Original Message-
From:
Hello,
first of all, I did search the user-archive and I had a look at the
struts-simple workflow example by Ted Husted.
Nevertheless I wasn't able to solve this problem o my own.
I have one action class (InsertPersonAction) and one DynaValidatorForm class
(InsertPersonBean) that should do
the
On Mon, 30 Sep 2002, Taylor, Jason wrote:
Date: Mon, 30 Sep 2002 08:54:46 -0700
From: Taylor, Jason [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: SURVEY: Proper Way To Pre-populate ActionForms
My
Make sure your code in a proper try and catch. Using reflection spits out
nasty errors if anything is not right.:(
ClassCastException
IllegalAccessException
NoSuchMethodException
InvocationTargetException
Daniel jaffa
- Original Message -
From: Jerry Jalenak [EMAIL PROTECTED]
To:
good point-- you'd also want to printStackTrace() (if possible) before
rethrowing InvocationTargetException, since it can be difficult to debug an
ITE otherwise...
-Original Message-
From: Daniel Jaffa [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 9:49 AM
To: Struts Users
Yeah, already ran across the exceptions. Right now I'm trying to decide how
to handle them since all of this code is actually in a custom Validator
routine.
Jerry
-Original Message-
From: Taylor, Jason [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 11:57 AM
To:
I'm trying to sell a colleague on using Struts, and I'm pretty close, but he
can't understand the value of using ActionForm classes instead of just
HashMaps. Has anyone else had to make this case? The validate() method is
one advantage, but it seems obsolete now that we have the validator
Hi all,
I'm having a problem with the Tiles request processor and I18n. The problem is
that the request processor doesn't load the Locale of the client in the session. What
could be the solution, to implement a request processor class extending
TilesRequestProcessor? Which methods of
I'm actually not throwing SQLExceptions-- instead a generic application
exception bubbles up from the DB interaction within an object repository
that populates the form.
The problem for me is that if I have an array of items within the form, I
may not need to know the state of the individual
Have you used DynaActionForm?
They're like little gold nuggets of magic ;)
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta
-Original Message-
From: Dan Cancro [mailto:[EMAIL PROTECTED]]
Yes. please send it to me
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 12:25 PM
To: Struts Users Mailing List
Subject: RE: Access JSP in the WEB-INF
I have a modified version of the struts-example that demostrates how to do
this.
+1 and DynaValidatorActionForms have frosting :)
robert
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 2:03 PM
To: Struts Users Mailing List
Subject: RE: [SELL STRUTS] How do you sell the ActionForm idea?
Have you used
All:
Okay, I successfully integrated Struts Tiles with my app, and it's
working very nicely, thank you.
Then I got the bright idea that I wanted a tabbed display, and since the
Tiles documentation shows a couple of examples of tabbed displays, I
thought, Why not?.
Now that it's brought me to
Hi All,
My application is intermittently being initialized improperly. I am
deploying multiple struts based app's into resin and am experiencing errors
with several Struts tags being used. The application deploys fine 9/10 times
and then blows up. When I inspect the logs I follow the
I suppose selling him with look, so many other people are being
productive with this tool, let's just use it is out? :)
From my own experience:
1) Sell him on the fact that you can create (either via DynaForm or
through the magic of Mapped Properties) a generic ActionForm that
behaves just
On Mon, Sep 30, 2002 at 12:02:41PM -0500, Jerry Jalenak wrote:
Yeah, already ran across the exceptions. Right now I'm trying
to decide how to handle them since all of this code is actually
in a custom Validator routine.
Good Lord, people, why is reflection anything but the option of
last
DynaActionForms are more maintainable than HashMaps because their properties
are configured in the standard struts config file, rather than in code or
some home-grown configurator. If your colleague doesn't like lifting
decisions out of code and into configuration files, he probably isn't
The most significant way to reduce traffic is to answer peoples
questions. Eddie Bush is a heavy user of this list, but probably cuts the
total amount of traffic. Sorry, Eddie, did not mean to give you a
compliment, but had to anyway. ///;-) The list is for using. The traffic
attests to
Easy, John ... step away from the keyboard ... carefully now ... :-)
Seriously, I wasn't sure what the best way of doing this was, or even if it
could be done. I'm still looking at the code (still undecided about the
exceptions) and may yet end up recoding it as a static HashMap. I'm still
Comments intermixed.
On Mon, 30 Sep 2002, John Bindel wrote:
Date: Mon, 30 Sep 2002 13:49:22 -0500
From: John Bindel [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OT - Java] How can I do this in Java?
On Mon, Sep 30, 2002 at 01:55:20PM -0500, Jerry Jalenak wrote:
Easy, John ... step away from the keyboard ... carefully now
... :-)
I'm sorry about that, I don't know why I converted DL to ZIP.
The lookup table works nicely when you know you will start by
knowing the state abbreviation. I
I moved all my JSP files under WEB-INF JSP. Now my new issue
Lets take the following example. I need my user to enter vendor information
and then cofirm it, then save it.
Below is how my struts-config.xml file is setup
action path=/PaymentVendor_AddVendor
On Mon, Sep 30, 2002 at 12:22:25PM -0700, Craig R. McClanahan wrote:
Comments intermixed.
Same.
On Mon, 30 Sep 2002, John Bindel wrote:
Date: Mon, 30 Sep 2002 13:49:22 -0500
From: John Bindel [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users
Does it do the right thing? Does it do the thing right? Ok - there you
go :-)
Seriously though - it sounds like you're right on-track to me ...
--
Eddie Bush
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Sorry I didn't think a little more before posting my 'help'. Seems it
spurred a good discussion, though.
I don't use reflection terribly often (just to select service factory
classes at initialization usually), but then again I don't often attempt to
dynamically select static final constants.
I could not agree more on reflection. The management potential of
reflection is huge. I really like Stuart Dabbs Halloway's book Component
Development for the Java Platform, which is really reflection based in
essence, and love the JMX API. Still, the present problem is not a very
good
Hi, my name is Rodrigo,
I'm using struts with Velocity, my problems is that when I use the code
return (mapping.findForward(HomeMenuShow)); in the edit form for
employer (for example) to return to the main menu, if the action was
save, the app save the new employer, then show the main menu,
-Original Message-
From: John Bindel [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 12:48 PM
To: Struts Users Mailing List
Subject: Re: [OT - Java] How can I do this in Java?
On Mon, Sep 30, 2002 at 12:22:25PM -0700, Craig R. McClanahan wrote:
Comments
John Bindel wrote:
On Mon, Sep 30, 2002 at 12:02:41PM -0500, Jerry Jalenak wrote:
Yeah, already ran across the exceptions. Right now I'm trying
to decide how to handle them since all of this code is actually
in a custom Validator routine.
Good Lord, people, why is reflection
I'm wondering what I'm doing wrong. I tried dropping last nights build
(20020930) of struts-validator.war into Tomcat 4.1.12, and it does not work
at all. Is this a known problem?
The index.jsp page contains the following message in red:
ERROR: Validator resources not loaded -- check Commons
I'd like to go ahead and point out that the little classloading test given here may
not always give the same results, even on the same machine with the same VM; it is
largely dependent on what classloader loads the class you are doing the forName() on.
This is because the ClassLoader which
I agree that reflection is not a good solution here, but does have useful
application in general (but it isn't needed here, so don't use it). Use a
singleton or a statically-initialized Map to look up the patterns based on
the state. Save yourself some time by putting Patterns in the map,
How do you use the DyanActionForm in the action classes.
I saw 2 different examples in the archive, neither of which worked for
me.
DynaActionFormClass dafc =
DynaActionFormClass.getDynaActionFormClass(AddUserForm);
DynaActionForm myForm = dafc.newInstance();
gives me this compile
Let's take it one step further and make the Map a 1st-class object.
After all, shouldn't all knowledge of how to recognize a driver's
license be localized to a single class? Then the external interface can
be a simple as isValidLicense( state, licenseString );
Max Cooper wrote:
I agree
- Declare your form to be of type DynaActionForm in struts-config
- Declare your properties to be of whatever type they need to be
- Preface the page call with an action which will cast the form
argument to be a DynaActionForm
- call form.set(property, value) as needed
- forward to the page that
How many of these puppies are there per application? One? One for each
session? I've been digging - even consulted the spec (!) and I don't
see where it says. Sound (?) reasoning tells me there would be one for
each session. Am I correct?
Thanks!
--
Eddie Bush
--
To unsubscribe,
It would appear you ever only have one of them :-( (Yeah, I should have
just tried it first instead of asking, but ...)
Faced with log output showing me you only ever get one of these, I'm ...
the question comes to mind: Why does this exist? What problem does it
solve?
Eddie Bush wrote:
On Mon, 30 Sep 2002, Eddie Bush wrote:
Date: Mon, 30 Sep 2002 18:13:13 -0500
From: Eddie Bush [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users List [EMAIL PROTECTED]
Subject: [OT] HttpSessionAttributeListener - multiplicity
How many of these
On Mon, 30 Sep 2002, Eddie Bush wrote:
Date: Mon, 30 Sep 2002 18:27:05 -0500
From: Eddie Bush [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users List [EMAIL PROTECTED]
Subject: Re: [OT] HttpSessionAttributeListener - multiplicity
It would appear you
Yes, my question was multiplicity of each declared listener wrt sessions
themselves (I should have been more clear). It would appear, based off
my quick experimentation, that only one instance of each is loaded
declared listener (at least HttpSessionAttributeListener). That wasn't
what I
The other way is:
public Object onDisplayZoomExec(ActionEvent ae) throws Exception
{
String id = ae.getReq().getParameter(ID); // the PK is?
long ia = BUtil.longString(id);
TasksBean frm = (TasksBean) ((TilesEvent)ae).getFormBean();
setBBean( frm );
It seems to me that this code is already *relying* on another framework in
order to be more portable to another MVC framework. ActionEvent,
TilesEvent, TaskBean, BUtil, etc. are not Struts classes. Pulling in another
framework just to be able to use DynaActionForm seems like the antithesis of
1 - 100 of 108 matches
Mail list logo