was RE: [OT]: What is vim?)
>
>
> Well, you are full of shyte. Okay?
>
> Mark (been a master carpenter and Java certified)
>
>
> -Original Message-
> From: John Espey [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 03, 2003 5:40 PM
> To: Struts Users Mailing List
&g
I disagree STRONGLY with the statement that a programmer who uses a text
editor learns the language better. This is like saying a construction
worker cannot be a good carpenter unless he builds a house from the ground
up with a hammer and a standard screwdriver. Just because I look at a black
and
People always mention auto-complete, but it seems to me that it is one of
the least significant features of an IDE in terms of enhanced productivity.
Auto-generation of test cases, refactoring, import organization, package
generation, exception generation, JPDA, etc. are all things that I think are
here is a simple example:
There are no items to be evaluated
as opposed to:
There are no items to be evaluated
.
It seems to me that it is less verbose than a non-Struts alternative (and
certainly not as verbose as the original email ;-)
seriously though, action mappings don't really define the usage of a form,
they define the usage of an Action class. The way you act on that data is
what changes from actio
Jason,
One thing you may want to consider is using the Template pattern here. Make
your class abstract, declare an abstract method called doExecute or
something like that, have your execute method call doExecute where it
currently calls super.execute() (the super call is unnecesary I think). Sub
http://jakarta.apache.org/log4j
look for log4j.properties
> -Original Message-
> From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 10:21 AM
> To: [EMAIL PROTECTED]
> Subject: where do i get info for setting the logging level in
> struts1.1.b3
>
>
> Hi,
>
What do you think of printing that exception out in comment, so you can view
the source to see the exception but not have to worry about turning it on or
off?
> -Original Message-
> From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 9:30 AM
> To: Struts User
Quick questiondo you really want the user to see a SQLException message?
Assuming that is really what you want, there are constructors for AE that
take a key and up to four objects that will be substituted in the error
value that is specified for the key. The key and value appear in
Applicati
You should read about the html:select and html:options tags.
http://jakarta.apache.org/struts/userGuide/struts-html.html
They won't actually be connected to a database directly, instead they will
read from a java.util.Collection (no ASP or PHP here ;-)
> -Original Message-
> From: Jobe,
James-
Probably to put [OT] when you drop into the realm of Off Topic
> -Original Message-
> From: James Childers [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 24, 2003 1:10 PM
> To: Struts Users Mailing List
> Subject: RE: struts book
>
>
>
> > -Original Message-
> > From: Ki
n't it?!?!!? -> if is, then i
> should rename the bean name in the struts config.
>
> Anyway, is the exposed from bean cast to the correct type for usage :
> - inside EL-Tag you wrote it is correctly typed
> - but for scriplet, isn't it just exposed as being of type
>
7;t it?!?!!? -> if is, then i
> should rename the bean name in the struts config.
>
> Anyway, is the exposed from bean cast to the correct type for usage :
> - inside EL-Tag you wrote it is correctly typed
> - but for scriplet, isn't it just exposed as being of type
> java.lan
maybe I'm missing something, but if you use an EL tag (like the core:if or
core:choose or logic-el:equals) you wouldn't need to do any scriptlet or
casting.
as far as the constants, i'm not sure I follow.
Hope this helps though...
> -Original Message-
> From: Jörg Maurer [mailto:[EMAIL
ary 22, 2003 3:56 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] What's your IQ?
>
>
> who care about your pseudo IQ ???
>
> - Original Message -
> From: "John Espey" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <
142, ditto on the spacial reasoning =/
> -Original Message-
> From: James Turner [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 20, 2003 1:29 PM
> To: 'Struts Users Mailing List'
> Subject: Re: [OT] What's your IQ?
>
>
> 144 here. The spacial reasoning ones were *HARD*
>
> James
I would do this, register a ServletContext listener, add some logging or
something simple to the context destroyed event, add a breakpoint to that
line of code, and attach your debugger to Tomcat. Then try to shut down,
and take a peak at what is going on with the various threads. That will at
le
method in one of our apps (which will go into production in
> April) and haven't found any problems so far testing with it
> 9almost six months
> or so). But then we are really beginners in Struts so I'm sure
> we could learn!
> :)
>
> Geeta
>
> John Espey wrote:
Geeta,
Do you really think this would be better than doing it in a servlet context
listener? If your container doesn't support that, wouldn't you still prefer
to write a plugin? Or a class that uses the class loader to make sure the
data only gets loaded once? Or a startup class (if you don't mi
1) create an object that implements ServletContextListener (read the
javadocs on it to see how to configure it in web.xml)
2) put the object on the servlet context. Here's code from a listener that
I have:
public void contextInitialized(ServletContextEvent sce)
{
sce.getServletContext().se
Any chance Ted will send an autographed copy of the book to the highest
scorer??
> -Original Message-
> From: Brandon Goodin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 20, 2003 8:53 AM
> To: Struts User List
> Subject: [OT] What's your IQ?
>
>
> Does our list consist of the
Never mind, just realized there was a bag in commons, sorry
> -Original Message-
> From: John Espey [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 19, 2003 4:57 PM
> To: Struts Users Mailing List
> Subject: [OT] RE: [Q] Iterating over a collections.Bag works, b
Out of pure curiosity, is the Bag you're using from the EDU.oswego
libraries?
> -Original Message-
> From: WILLIAMS,RAND (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 19, 2003 3:58 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [Q] Iterating over a collections.Ba
There is an excellent validator example that ships with Struts. It should
be in the webapp directory and packaged in a war called struts-validator.
> -Original Message-
> From: Johan Kumps [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 19, 2003 4:48 PM
> To: Struts Users Mailing L
I would try [EMAIL PROTECTED]
you can also find this address at the bottom of every email you've received.
> -Original Message-
> From: Goldberg, Joel S [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 19, 2003 11:34 AM
> To: [EMAIL PROTECTED]
> Subject: Who can tell me how to get o
-Original Message-
> From: Pani Ramasami [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 19, 2003 9:55 AM
> To: Struts Users Mailing List
> Subject: RE: return (mapping.getInputForward()); - not working
>
>
> John,
>
>
> --
>
> On Tue, 18 Feb 20
you can do a forward from index JSP
> -Original Message-
> From: John Dubchak [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 18, 2003 9:17 PM
> To: [EMAIL PROTECTED]
> Subject: Tiles, Struts 1.1 and index.jsp in EAR file
>
>
> Hello Everyone,
>
> I'm trying to configure tiles and
Pani,
Can you copy your action mapping configuration (if your input is an action
can you copy that one too?
> -Original Message-
> From: Becky Norum [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 18, 2003 7:37 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: return
Nobody will like this solution, but I've had to resort to it (as recommended
by a coworker). Create a page scope javascript variable, and increment it
when the user clicks the button, if it's equal to one , return true,
otherwise false. I am fully aware of the shortcomings of javascript (for
all
ot coupled to JSP at all. Struts provides taglibs to use
> in JSPs but
> does not dictate that you must use JSP as your view layer. This has been
> demonstrated by people using Velocity, XML, and Web Services with Struts.
>
> David
>
>
>
> >From: "John Espey&qu
i think the argument isn't about it being too servlet-container centric,
rather that it is too tightly coupled to JSP as the view technology.
> -Original Message-
> From: James Childers [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 17, 2003 9:11 AM
> To: Struts Users Mailing List
>
. As your
> Action(part of the Controller) will have to deal with the business
> components(just to use it!) my question was:
>
> Is it correct the Action to know about the EJB's interface?
>
> Hope I'll expained myself better than before.
>
> Thank you
>
> -
> -Original Message-
> From: Michael Jobe [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 16, 2003 10:26 AM
> To: [EMAIL PROTECTED]
> Subject: Undergrad student seeking help with struts
>
>
> I am a undergrad student and I am just getting started
> developing using struts for a senior p
I'm not sure about your particular requirements, but I personally use a
singleton ServiceLocator to do EJB home lookups. Because it is a Singleton,
it is easier to find than the way you've shown, and it can be reused outside
of the web container.
> -Original Message-
> From: Marco Tedone
I ran into that error too...
I think the only way it could work is if the jdbc driver being used has a
bug, because according to the javadocs a close on a statement should also
close the resultset.
http://java.sun.com/j2se/1.4.1/docs/api/java/sql/Statement.html#close()
I filed a bug report on it,
Jason,
Have you considered using a Filter instead? It might be better than
extending the ActionServlet. If you can't use Filters, then you will want
to write your own RequestProcessor instead of extending the ActionServlet.
> -Original Message-
> From: Jason Vinson [mailto:[EMAIL PROTEC
http://ibiblio.org/maven is a good place to find all sorts of libraries.
> -Original Message-
> From: Chiming Huang [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 14, 2003 10:20 AM
> To: [EMAIL PROTECTED]
> Subject: Re: javax.sql.DataSource
>
>
> Could you please point out where
List
> Subject: RE: how to calculate A*B in jsp, where A and B are from
> nested:write
>
>
> ...ah! Much cleaner.
>
> No, I don't think there's a
>
> Sri
> P.S.
> I'm sure you meant
>
> -Original Message-
> From: John Espey [mailto
I'm not familiar with the nested tags, but suppose you were using a
struts-el text tag, you could do like so:
I'm guessing you can do something similar in the nested tags.
> -Original Message-
> From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 3:10 PM
> T
If you have *.do mapped to the action servlet, then you will need to request
(relative to the webapp of course) "/home.do" or "/products.do". You'll
need to switch the action mapping like so:
Or else configure the mapping such that an action that automatically
forwards to "success" (I think For
formName.property inside an el expression
or name="formName" property="property" inside of tags that support these two
attributes but not EL
where formName is the name of the form in struts-config.xml
> -Original Message-
> From: julian green [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday,
Can you post a snippet from your JSP?
> -Original Message-
> From: Clement, Stephen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 10:19 AM
> To: [EMAIL PROTECTED]
> Subject: 1.0.2 with Collection property
>
>
>
> Is it me or does the logic:iterate tag with a Collection pr
It looks like there is a non-Serializable object on your session. I believe
that whatever you put on the session must implement (directly or indirectly)
Serializable or else be declared transient.
> -Original Message-
> From: Scot Rob [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 1
me..
Thanks
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 11, 2003 2:49 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] - ServletContextListener
>
>
>
>
> On Tue, 11 Feb 2003, John Espey wrote
Does anybody know if the container should be setting the contextClassLoader
on the current thread when it loads the various listeners configured in
web.xml?
The particular behavior we're seeing is that the contextClassLoader for the
thread launching our listeners (both context and session) is not
By using Commons, you can defer the implementation of the logging framework
that clients of your components use to configuration. In most circumstances
you will see log4j used, but by using Commons it is very simple to change
out your logging framework.
-Original Message-
From: Bjørn T Jo
You should look at the FindForwardAction in scaffold. It relies on you
creating forwards that correspond to button names (with the .x or .y if you
are using image buttons). If you can stomach a little bit of javascript
(simply to set the value on a hidden field), you can use the RelayAction to
d
You can create indexed properties ( getOrderDetail(int),
setOrderDetail(int, string) )
You have to back them whatever way you see fit (I've used arrays in the past
but I had to make sure they were sized propertly on each call). On your
JSP, the resulting names for your input fields will need to
ll the class of my webapp
.
Actually I 've done my action and my Form class but I don't know how to
prepare the build.xml file to configure Ant .I want that ant prepare the
web app tree for me with all the jar of struts and all my classes in the
right place.
- Original Message -
F
what do you mean by configure it with Ant? What type of configuration do
you want to perform?
-Original Message-
From: Giovanni Di Lembo [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 09, 2003 12:07 PM
To: [EMAIL PROTECTED]
Subject: to use Ant to configure my webApp with struts
Hi
I
Actually, having the library with each app is the preferred way to do it,
unless you want to force upgrades to EVERY application's version of Struts
at once.
What do you mean by apps written in the struts framework refuse to execute?
Is it just any app in the web container, or just Action classes?
Try adding weblogic.jar (in $WEBLOGIC_HOME/server/lib).
-Original Message-
From: Lawrence Cornell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 6:14 PM
To: [EMAIL PROTECTED]
Subject: Using Struts in Eclipse problem
Hi all,
I wonder if someone might be able to help me as I
the JSTL format parseDate tag will do the trick for you
-Original Message-
From: Swish [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 7:34 PM
To: Struts Users Mailing List
Subject: Date format question
Hello,
I was wondering if there is a way to use the tag to convert a
Vinay,
The name will appear as the name specified in struts-config.xml for the
action to which your form is submitting.
ie-
in your struts-config file and in your JSP:
Means that your html will appear like so:
So you can write javascript that accesses the form by the n
]
Subject: RE: how to access a specific object inside a List efficiently
Because there's no getter method for the values.
To iterate through the values of a map:
If there's getValues() method, "values" can be put as the property.
>From: "John Espey" <[EMAIL
what's wrong with the values() method?
-Original Message-
From: Derek Shen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 1:06 PM
To: [EMAIL PROTECTED]
Subject: RE: how to access a specific object inside a List efficiently
How to iterate through the values of a Map?
There
http://www.newegg.com/app/ViewProduct.asp?submit=manufactory&catalog=14&manu
factory=1304&DEPA=1&sortby=14&order=1
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 12:00 PM
To: [EMAIL PROTECTED]
Subject: RE: How do i keep the commons-
Have you ever used JBuilder? I'm just curious, I've never met anyone that
actually had used it and thought it was very good.
You should check into Eclipse.
-Original Message-
From: Expedito Reinaldo da Silva Júnior
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 11:35 AM
To
You won't need the logic iterate tag.
The following would suffice:
Hope this makes sense, all you would have to do is have a collection that is
named your_collection ccessible to the tag (application, session, request,
or page scope attri
Oh yea, and I wouldn't add the commons libraries to your system or weblogic
class path, put them in web-inf/lib.
-Original Message-
From: John Espey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 10:07 AM
To: Struts Users Mailing List
Subject: RE: How do i keep the co
1.1 factored a lot of common functionality out to the commons libraries.
You will have to include them as far as I know when using 1.1.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 10:02 AM
To: Struts Users Mailing List
Subject: H
http://developer.java.sun.com/developer/bugParade/bugs/4034167.html
I saw this bug report, not sure how releavant it is to your problem, but it
could cause problems. Apparently on many JVMs, (though not all) a class in
a package cannot access a class in the default package. I tried three VMs
with
I would have the business components handle their own DB connections (they
shouldn't rely on the presentation layer for that). As far as your errors
coming back to the presentation layer, I usually have a BusinessDelegate
class that the action makes business calls into. That business delegate is
IMHO: I personally don't think what you've described goes against the
"Struts way". It seems to be very common for an action to check a condition
and forward to an appropriate resource based on that condition. (Which
seems inline with the role of a controller in any MVC application)
-Origin
I think this is how you'd do it using JSTL and Struts-EL (I may have messed
the names up)
-Original Message-
From: Charlie Toohey [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 02, 2003 4:10 PM
To: Struts Users Mailing List
Subject: Re: html:text tag "indexed" attribute
Th
I'm curious if people find the token idiom useful in Struts. It seems to me
that if you get a double submission, the first action goes about its
business, and the action invoked on the second submission catches the
problem. But how does that action know where to forward the user? Isn't it
better
I submitted a bug about this. The documentation on the Struts site claims
that the page attribute is context relative, when in reality it is
moduleRelative (as described in the source documentation). I haven't heard
anything back yet though.
-Original Message-
From: Andy Kriger [mailto:[
sorry, the action wouldn't pass itself, it would pass its class.
-Original Message-
From: John Espey [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 10:10 AM
To: Struts Users Mailing List
Subject: RE: one desing question, Revisited
You could create a CommonFunctionsFa
You could create a CommonFunctionsFactory, with a method:
CommonFunctions getCommonFunctionsByClass(Class)
Your action could pass itself to this call to retrieve a CommonFunctions
implementation, determined by the Factory, which could look up in a
properties file which implementation to create fo
before since it has not
references in the method? Or is
TemplatesCache.getInstance().get("key");
considered as a reference?
Thanks
>From: "John Espey" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Str
enough to avoid being GC'd?
Adolfo.
>From: "John Espey" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE: are static classes GC'd?
>
I believe classes are never garbage collected, only objects. What sort of
issue are you having where this question arose?
-Original Message-
From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 8:03 AM
To: [EMAIL PROTECTED]
Subject: are static classes GC'd?
A
u could do a filter that would setup the connection and properties in
the request to these actions, then after they are done, return the
connection or close it, and essentially clean up whatever you created.
"Filters Rock!"
- Area Culligan man
| -Original Message-
|
Just write a singleton class with methods that take the appropriate
parameters, and have both actions delegate to that class. Then any other
classes can use those services also.
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:30 PM
T
I would use the JSTL core:out tag, but I would also probably use the
core:forEach tag instead of the logic:iterate:
I know you wanted to use the struts taglib, but this is how I would probably
do it.
you could also use the
We should take political discussions offline as well, we don't ALL share
your views. ;-)
-Original Message-
From: Daniel H. F. e Silva [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 2:24 PM
To: Struts Users Mailing List
Subject: RE: [OT] Geek Code
Hey guys,
Let's stop to
Why didn't you use the html-EL taglibrary to do it? It seems like it would
be the simplest way to do it
-Original Message-
From: Pani, Gourav [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:02 AM
To: 'Struts Users Mailing List'
Subject: RE: Passing parameter in a pop up wind
If you just want to output it, you could use the JSTL core:out tag,
something like this:
. The form should be available in
the request scope as an attribute with the name specified in your struts
config file.
It doesn't look like the bean:write tag was ported to EL, otherwise you
would be able t
not sure if this matters, but there isn't a closing quote around the action
definition in your form tag
-Original Message-
From: [EMAIL PROTECTED] [mailto:meissa.Sakho@;bpam.fr]
Sent: Thursday, November 07, 2002 9:02 AM
To: Struts Users Mailing List
Subject: Réf. : Re: No getter method for
79 matches
Mail list logo