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
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
, 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
Subject: RE: [OT] Text editor usage (was RE: [OT]: What is vim?)
I
here is a simple example:
logic:present name=mylist
bean:size id=mylist_size name=mylist/
logic:equal name=mylist_size value=0
There are no items to be evaluated
/logic:equal
logic:greaterThan name=mylist_size value=0
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
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
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,
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
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 Users
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,
I want
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: Kirby
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.
c:if test=${parameterForm.structure_changeable eq 1}
/c:if
as far as the constants, i'm not sure I follow.
Hope this helps though...
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.lang.Object ?!?!
-Original Message-
From: John Espey [mailto:[EMAIL PROTECTED]
Sent: Sonntag, 23. Februar 2003 17:21
To: Struts Users
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.lang.Object ?!?!
-Original Message-
From: John Espey [mailto:[EMAIL PROTECTED]
Sent: Sonntag, 23. Februar 2003 17:21
To: Struts
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
?
who care about your pseudo IQ ???
- Original Message -
From: John Espey [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, February 22, 2003 7:04 PM
Subject: RE: [OT] What's your IQ?
142, ditto on the spacial reasoning =/
-Original
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
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 best
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)
{
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
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
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 2003 19:56:43
John Espey wrote:
Pani,
Can you copy your action mapping configuration
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 off
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 List
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.Bag
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, but..?
Out of pure
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
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
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 struts
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
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 [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List
-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 project.
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: John Espey [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 16, 2003 4:19 AM
To: Struts Users Mailing
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
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
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 is the
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
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:
action path=/home forward=tiles.home
Or else configure the mapping such that an action that automatically
I'm not familiar with the nested tags, but suppose you were using a
struts-el text tag, you could do like so: html:text value=${width *
depth}/
I'm guessing you can do something similar in the nested tags.
-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent:
, where A and B are from
nested:write
...ah! Much cleaner.
No, I don't think there's a nested-el
Sri
P.S.
I'm sure you meant html-el:text value=${width * depth}/
-Original Message-
From: John Espey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 4:13 PM
To: Struts
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 property
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,
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
to
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:
Date: Tue, 11 Feb 2003 14:25:58 -0600
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 11,
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
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
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
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
place.
- Original Message -
From: John Espey [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, February 09, 2003 7:06 PM
Subject: RE: to use Ant to configure my webApp with struts
what do you mean by configure it with Ant? What type of configuration
do
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:
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 commons
You won't need the logic iterate tag.
The following would suffice:
html:select property=subject
html:options collection=your_collection
property=your_property labelProperty=your_label_property/
/html:select
Hope this makes sense, all you
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
http://www.newegg.com/app/ViewProduct.asp?submit=manufactorycatalog=14manu
factory=1304DEPA=1sortby=14order=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
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?
]
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:
logic:iterate id=row name=map property=???
If there's getValues() method, values can be put as the property.
From: John Espey [EMAIL
Vinay,
The name will appear as the name specified in struts-config.xml for the
action to which your form is submitting.
ie-
action path=/MyAction
type=com.mypackage.MyAction
name=mySimpleForm
validate=false
forward name=success path=/success.jsp/
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 bean:write tag
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
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)
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
I think this is how you'd do it using JSTL and Struts-EL (I may have messed
the names up)
c:forEach var=aString items=aForm.stringArray status=status
html:text property=astring[${status.count}]/
/c:forEach
-Original Message-
From: Charlie Toohey [mailto:[EMAIL PROTECTED]]
Sent:
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
: 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?
Date: Fri, 31 Jan 2003 08:46:13 -0600
I believe classes are never garbage collected, only objects. What sort of
issue are you
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: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: are static classes GC'd?
Date: Fri, 31
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
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 CommonFunctionsFactory
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
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
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
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
I would use the JSTL core:out tag, but I would also probably use the
core:forEach tag instead of the logic:iterate:
c:forEach var=tran items=${trans.transactions}
tr
tdc:out value=${tran.acctno}//td
tdc:out value=${tran.testcode}//td
tdc:out
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
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-
| From: John Espey [mailto:[EMAIL PROTECTED]]
| Sent: Thursday
If you just want to output it, you could use the JSTL core:out tag,
something like this:
c:out value=${myForm.recordNumber}/. 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
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
77 matches
Mail list logo