I'm mentioning them - they
are very good, at least from my experience over the years.)
I think, Rick, that www.lunarpages.com offers more for less. Check them
out too.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL
For those of you who do not get the wiki changes, I would recommend that
you look at the following addition by Craig.
http://wiki.apache.org/struts/StrutsShale
Very exciting stuff.
Michael McGrady
-
To unsubscribe, e-mail
Also, there is JHOVE http://hul.harvard.edu/jhove/
Michael McGrady
Joe Germuska wrote:
If your server is a Unix platform, one thing you could do is run the
shell command "file" against the uploaded file, and take a look at the
result. This tool ignores any extension on the filename, an
public abstract void setFormField(boolean state);
public abstract void delete();
public abstract boolean isFormField();
public abstract boolean isInMemory();
public abstract void write(File file) throws Exception;
}
Thanks,
Micha
lunarpages.com has Resin for $9.95/month.
Thompson Marzagao wrote:
I haven't deployed my Struts application there yet, but I suggest you
give Kattare a call or send them an e-mail. They have a really
knowledgeable staff (about Java hosting) and quick response times on
the phone.
http://www.katt
.
Michael McGrady
Wendy Smoak wrote:
From: "Caroline Jen" <[EMAIL PROTECTED]>
The challege comes as the "roles" of the web site
users are introduced. According to the role of the
web site user, I have to display certain groups (not
all the groups) and certain sub-groups (n
can read the role of the user going into the Action that
forwards to the response object displaying the options and only deliver
the options appropriate to the role of the user.
Michael McGrady
Caroline Jen wrote:
The puzzle relates to displaying check boxes (checkbox
or multibox).
What I have
I'll be darned! If you go back to Struts 1_1 you find that
"CommonsMultipartRequsetHandler does have the long cast to an int. So,
that is probably the source of the error.
Michael McGrady
Michael McGrady wrote:
The method setMaxFile(long) exists even in older versions. So, are
ons around. Obviously, others smarter than I am like the
Struts approach. You may have a third approach. I don't like to become
involved with dependencies where unnecessary and see no need to bind a
file upload application to Struts. If someone else likes something
different, good for
trace.
Michael McGrady
Marwan Salam wrote:
My action is pasted below. As you will see I never call setMaxFile
(long) in my acdtion. From the stack trace it looks like Struts
internal classes are doing the call:
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRe
The method setMaxFile(long) exists even in older versions. So, are you
doing something other than tossing a long value into that method?
Michael McGrady
Travis Reeder wrote:
Looks like you need the latest commons-fileupload.jar.
Travis
-Original Message-
From: Marwan Salam [mailto
patch action with StrutsTestCase, but I
have tested wildcard mappings without any problems.
-Bill Siggelkow
I don't use StrutsTestCase, but, since you can set the
struts-config.xml, there is no reason to think it would not work that I
know of. Micha
PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Yes. I recommend you check out Ted Husted's book on struts if you need
to know more.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
Action is part of a "common Java application", so, you can do the same,
if you want.
yu wang wrote:
In JSP I can use the application.getRealPath("") to get the real path.
and In common Java Application I use System.getProperty("user.dir").
But How can I get Real path in ACTION.
thanks in advance
You can do better than this, if, for example, you use Tiles. You can
create whatever forward you want, irrespective of the mapping.e.g.,
return new ActionForward(path).
Chacko, Raj wrote:
Hi
I'm new to Struts. In one of our new project development, we are planning to
use Struts. One of our requ
also multithreaded and are triggered
my timed monitoring processes. The variety and details is up to you.
That is what I like to do, in any event, rather than just rely on
session management as coded by the server component, etc.
Michael McGrady.
Koon Yue Lam wrote:
thanks to Frank !
and Michael:
w
Frank is definitely right. You will have to decide. You can store data
in a database too. If you have a situation where the data is
particularly session oriented, then storing in the session makes sense.
However, remember the odd things that can happen with things like
popups, frames, etc.
The answer can be determined by thinking it through. Start with where
the data is and where it goes. You do not say if data prepopulates a
form, so I will assume it does not.
JSP1 has some data which is submitted and shows up in F1 and maybe A1.
Right? There it is. Your data. All of it a
I am sure the
product will be cool. I have always believed criticism
is more useful and usually more honest than praise,
but I am well aware of the considerable accomplishments
of this and other Apache teams. Apache is somewhat of
a minor miracle.
Michael McGrady
On Wed, 06 Oct 2004 08:26:20
u can dispense with that
altogeher, since you are coming close to the suggested improvement,
which is still not the best solution, in my opinion.
Michael McGrady
Michael McGrady wrote:
First, the problem is that you are bloating your system with the
ImageButtonBeans in the first place. You don't
pecial
requirements. This might be your most sensible option. I am fairly
clear in my mind that, if you have gone far enough to use a framework
like Struts, that you don't want to expose any resources outside your
control. Others, maybe Dave, would disagree, and maybe they ar
Only if you run your application as an "unexploded" war file.
Michael McGrady
Caroline Jen wrote:
Wendy said that "If you're talking about run-time file
creation or uploads... keep in mind that a webapp can
run unexploded from a .war file... in that case you
can't write t
Hi, Dave,
The files are accessible via a URL inside WEB-INF, Dave. You just have
to use a url that calls the controller, e.g. typically with ".do" in the
mix. There is no disadvantage in doing this and there are considerable
advantages.
Michael McGrady
Durham David R Jr Contr 805
that button was used but, rather, uses them to
destroy the button, automatically solving your issue. The second is the
sort of solution you are using. I would, however, recommend that you
use something different from either of these. You can see the options
at the link noted.
Michael McGrady
pa
inside WEB-INF, then you can do so easily. What I do is to
provide a resources directory under WEB-INF which holds all content
types with their separate directories by extention, e.g.
WEB-INF
resources
gif
jpeg
jpg
pdf
ttf
And so on.
Michael
Unless, of course, you are using something like HSQLdb, in which case,
tell him he is a smart-ass. Seriously, there are difficulties with some
databases in this respect. Don't know what you are using, and Vic if
probably right that your "superior" is "inferior".
Mich
to add, given this, I would be more than
interested. Always looking to make things better.
Michael McGrady
Kris Schneider wrote:
Michael,
If you're still looking for input, post back, I've got some follow-up
questions.
Michael McGrady wrote:
I use a Struts PlugIn to set System.s
place where you have written the system out code. So, something else is
happening. We cannot find out what that is unless you show us more.
Michael McGrady
Rajesh wrote:
hai McGrady
I just write some System.out.println in the action function to just debug
some values of variables...
Say
I gave
Don't know about others, Rajesh, but I need more information. Have you
debugged it?
Rajesh wrote:
Hai all,
am working in Struts 1.1
some time in my program some DispatchActions are called twice
am not sure whats the problem
am working in Widnows tomcat5
in log displayed in tomcat console w
Really interesting, Frank. Thanks a million. Michael McGrady
Frank W. Zammetti wrote:
+1.
The thing that amazes me is that truly rich web-based clients can be
done with nothing more than Javascript and DHTML, which to me is
really optimal... you get all the best benefits of a web-delivered
Geesch! Wrong again -- I AM. He does have an
but it is outside the form and used to submit the form. REALLY ODD!
Why is he doing that?
Michael McGrady
Rick Reumann wrote:
I do wonder in this case, however, whether you use buttons or rely on
the auto-gui, why use "button" r
situation. The original question, now that I reread it was:
i have a struts form and a button outside the form.
on button click , with javascript i need the submit the form
So, I guess he probably means he has and not and you and I have just been jabbering at each other.
LOL Who knows?
Michael
for. I
assume, however, that there is a reason to use
rather than and would like to understand that. I
have an old prejudice against JavaScript which may be partly
irrational. I have learned that some things I can only do with
JavaScript. And, that has loosened my prejudice a bit.
Mic
oming from different directions
and are passing in the night here.
My understanding is that you use an primarily to
do things other than submit. I was not particularly set on . Why too is he not using ? I assume
there is an answer to this, but I cannot see it in the posts. So, I
asked the questio
returns to a default,
and the True Type Font in my custom fonts file is not used. Does anyone
have experience with this? Is there a recommended different way of
dealing with setting Fonts in Struts.
Michael McGrady
-
To unsubsc
Wjau are you using button? Why not use image?
Neil Erdwien wrote:
I think the piece you're missing is that the
tag is only valid inside a FORM element according to the HTML standards.
If I remember correctly from the last time I misplaced the element,
the browsers differ on their implementatio
s in the commons upload facility, I think. Sean
Sullivan really outdid himself on that one.
Michael McGrady
Rick Reumann wrote:
Adam Hardy wrote the following on 10/9/2004 7:34 AM:
However I have never come across a situation where anybody has
changed the implementation when doing an upgrade to
e situation you face? Is there any reasons why AppA
and AppB cannot co-exist in the same application? That would be the
natural solution, if possible, viz. if you want AppA in AppB, put it in
there. However, your requirements may make that impossible.
Michael McGrady
Susan Bradeen wrote:
I have
You might also want to see:
http://struts.apache.org/roadmap.html
http://wiki.apache.org/struts/StrutsJericho
Portlets are part of the planning for Struts.
Michael McGrady
Scott Anderson wrote:
Rob Evans <[EMAIL PROTECTED]> wrote:
Can you point me to a how-to doc so I can get a feel
fo
egos and we
/necessarily /have them in Struts too. I am not against ego. I am for
directing it with mindful design decisions.
I too think the changes planned for Struts are significant.
Michael McGrady
Matt Bathje wrote:
http://struts.apache.org/roadmap.html
http://wiki.apache.org/struts
Laurent Duperval wrote:
Hi,
Is there a flag I can set so that Struts tells me what it's doing? I'm
having a problem with one of my actions: when I click on it, I get a
blank page and I don't understand why. I'd like to be able to see what
decisions Sruts is taking in order to load my pages, to d
Rob Evans wrote:
On Wed, 06 Oct 2004 08:59:26 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
Rob Evans wrote:
Could be. I for o
It sounds like we are on the same page regarding the nature of the
solution i.e. we're after something that looks like components. I'm
sure Cr
on it.
I also love Struts and have no issues with the people. If they have
issues, and some do, that is not my business.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
opinion.
The idea is to make the kernel as small as possible. You can even have
sample build-outs from the kernel as a starter idea. The smaller the
kernel, the better.
Michael McGrady
that would be great. I would especially be interested myself in what
Halloway would have to say. I think I am going to try and tweak his
interest enough to get his thoughts on your notion.
Michael McGrady
-
To unsubscribe, e-ma
are various
frameworks that do this better or worse. If someone were to build this,
they would, I am sure, have a blockbuster. That would be especially so
if they could use the genius that has already gone into the core of
Struts, AppFuse, etc. I would contribute daily to a team effort in this
direction.
Michael McGrady
he has gone elsewhere for the
majority of his time right now. I don't think this presently exists. I
do think that it would "sell" like wildfire to users. This would allow
the user, in effect, to become automatic developers through their
plugins and extensions. This woul
Boy, Howdie, Hiran! It would be great to have RequestUtils be
extensible. That sounds like the start of something really good to me.
Michael McGrady
[EMAIL PROTECTED] wrote:
Hi, Craig.
You hit the bull's eye. No I claim this not only to be a JSP/Servlet problem.
The way you describe
Rick Reumann wrote:
Michael McGrady wrote the following on 10/5/2004 1:40 PM:
He cannot use a basic DispatchAction, Rick, since he wants to use
multiple buttons. He needs multiple buttons with the same value.
Since the value of the name parameter in the HTML is completely
decoupled from all
want internationalization
to be taken care of.
Any help would be appreciated.
Thanks.
I assume, Struts Lover, you see that you just use the lovely Struts
for the values in order to Internationalize
the solution with the solutions I sent you to. Michael McGrady
Rick Reumann wrote:
struts lover wrote the following on 10/5/2004 10:12 AM:
I have this problem. I have several submit buttons on
a form and I am using a modified version of
LookupDispatchAction class.
Is there any way for the buttons to have the same
name instead of having separate names as requ
Durham David R Jr Contr 805 CSPTS/SCE wrote:
The reason is that I may want to change this page
without having to go to every place it is linked
to do so.
Does that qualify as a "splash" screen? HA HA
- Dave
Well, you live and learn, Dave. I had never heard of "splash screens"
before. LOL
[EMAIL PROTECTED] wrote:
1. He authored that WIKI and
2. That WIKI now directly links to his homepage, so why make the OP
suffer redirection?
Dennis
Because indirection decouples the link and leaves me free to change my
site, Dave
hanged the page. I want to be able to do so again without
inconveniencing anyone. Michael McGrady ///;-)
P.S. I have no Flash skills. That is the work of a friend. I do use a
Java program that rewrites image files to Flash, which I intend to use
as a photo application because of th
file. With the solutions in this
reference, the name values for (new) DispatchAction are completely
decoupled from the dispatch functionality, leaving you free to do
whatever you want to do with the names, and without configuring
struts-config.xml. What more could you ask? LOL
Michael McGrady
with that.
Michael McGrady
Rick Reumann wrote:
Michael McGrady wrote the following on 10/4/2004 4:30 PM:
Jim, this is unrelated to the token mechanism. This happens client
side.
James Mitchell wrote:
I think this must be a problem which occurs in many projects?
Yes, you are correct. That's
Jim, this is unrelated to the token mechanism. This happens client side.
James Mitchell wrote:
I think this must be a problem which occurs in many projects?
Yes, you are correct. That's why we have the token mechanism.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, In
http://servlets.com/cos/
However, the commons implementation really rocks in my opinion.
Woodchuck wrote:
hihi all,
when using Struts and ActionForms, are there other ways to upload files
that does not depend on the commons-fileupload.jar or the
org.apache.struts.upload.FormFile class?
thanks in ad
NAME
THAT WAS DELETED. That would be the whole point of doing it server side
rather than client side. Right?
As previous people said, this problem is NOT a caching problem.
Michael McGrady
andy wix wrote:
Hi,
As usual I think I must be missing something fundamental!
It would be pretty serious to
Egg Zackly, Ricardo. Whay use an ActionForm here and why use
DispatchAction. Looks to me like you just want something like
ForwardAction.
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse respons
. http://www.sitepoint.com/forums/showthread.php?t=195854
http://javascript.internet.com/navigation/back-button.html
This seems like the natural way to go, if you don't want to nuke the
button and provide your own functionality, because JavaScript is
client-side.
Michael McGrady
Jeff Beal
not mean to use resources that are clearly irrelevant first and
change your whole strategy later. Have you looked at the code in
DispatchAction? Why would you want to use it for this?
Michael McGrady
Nadia Kunkov wrote:
I rephrased the subject of this posting. The old one was really wrong.
Hi
?
Michael McGrady
Prashanth.S wrote:
Hi Mike,
Thanks for the reply.Iam infact talking abiut pooling HTTPConnections.So as soon as the
application starts up i will create some "n" number of connections.based on the
traffic,i will increase or decrease the number of connections in the poo
There are various ways to control client-side browsers. You can show a
window with no back button, if you like. You can provide your won back
button. Blah, blah, blah. There is not much you cannot do, if you want
to do it.
Michael McGrady
Jeff Beal wrote:
andy wix wrote:
Hi,
Thanks, that
: Struts than the other. If someone has a definition that makes
sense of when we get these complaints and when we don't, that would be
appreciated. I cannot make sense of it.
Michael McGrady
Prashanth.S wrote:
Hi all,
Is there any design pattern that can be followed in order to impleme
those solutions, I would be happy to present
them as well. Thanks for any submissions. www.michaelmcgrady.com/button .
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
mple name=value setup. If you want something simpler, try
the Wiki link I mentioned.
Michael McGrady
Gabriel França Campolina wrote:
Hi Folks,
I'd like know more about this, if I don't set a value to variable
method, what method will call in my action???
ex in my url:
if I d
My apologies to those who tried to get to www.michaelmcgrady.com since
last night. (I was amazed at the volume, actually.) The host,
www.lunarpages.com, was having JSP issues and now has the issues resolved.
Michael McGrady
ki.apache.org/struts/StrutsCatalogVariousButtonSolutions
for a link to four simpler and lighter options.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
2004 01:01:21 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
Hi, Ben,
If you follow the link I gave you, all the source code is available at
the demonstration page under the link (in a light green) called "view
code". It is just to the right of the CRUD options in each of th
as just an oversight. Sorry! You can
get it there.
Michael
Ben wrote:
Can you show me the source code for the LogonDispatchUtilAction?
Thanks
On Fri, 01 Oct 2004 00:03:36 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
If you want to try out a war that I just created on this, with
If you want to try out a war that I just created on this, with the code
that is running, try
http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions , Ben.
Ben wrote:
Thanks everyone, especially Mike for providing me with a very
comprehensive answer. I am evaluating the suggested solut
Michael McGrady wrote:
Note, Ben, that in LookupDispatchAction we do the following:
Used the mapping attirbute parameter "method" to find "Delete It" in
the request object name/value parameter pair "method='Delete It'".
Created a reverse map of
value "delete". If this seems
like a good idea to you, then we think differently. All l have to say
about this is "WHEW!". LOL
The ImageButtonBean is as convoluted and requires that we create a
slough of classes and objects. This is
suffix and
then employing reflection on an Action class. However, if you want
something decoupled from Struts, then the ButtonTagUtil would be best.
The other solutions, except my version of DispatchAction (once called
"SimpleDispatchAction"), are really just examples of how you could
better do what, e.g. ImageButtonBean does and avoid heavy object
creation problems.
I hope this helps.
Michael McGrady
instance.
Check out http://www.michaelmcgrady.com/button.jsp for five solutions to
the button issue that are preferrable in my opinion.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
am supposed to figure out here.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
aid "really poor" and not "bad", for what it is worth.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Craig McClanahan wrote:
On Tue, 28 Sep 2004 20:12:58 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
I know what you are saying, Langdon, but warn you that a lot of those
solutions on the Googling are really poor solutions. I am sure you know
that already.
Your definition of
those
solutions on the Googling are really poor solutions. I am sure you know
that already.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
There is, I understand, a challenge on the Internet to get code to allow
the use of images with , or the famous "browse"
button. I don't know if this is true, but, if it is, there is a
solution at www.michaelmcgrady.com under "coding ideas". Any feedback
would be appreciated.
There is some
e Struts framework. Learn the
essentials, the taglibs and the related commons classes.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
David Stevenson wrote:
On 28/9/04 19:15, "joe a." <[EMAIL PROTECTED]> wrote:
Is there a reason why Resin runs on port 8080 by default?
Yes.
The hive responds. LOL No Buddhists here.
-
To unsubscribe, e-mail: [EMAIL PROTEC
related documentation. Jim is pretty friendly, actually, although
he does like to get in the last word. What do you expect from a
Mitchell from Atlanta? Long tradition of Mitchell's from Atlanta going
back to Gone with the Wind!
Michael Mc
Mark Lowe wrote:
Satish
ActionErrors isn't deprecated, ActionError is...
http://struts.apache.org/api/org/apache/struts/action/ActionErrors.html
ActionErrors errors = new ActionErrors();
errors.add("myproperty" , new ActionMessage(...));
return errors;
And then personally i prefer
But there are go
Sorry, left out the "ERRORS" sort of header.
Micha
that was slower and less performance
oriented but yet had other aspects that I wanted.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
My tests indicate a five fold performance increase. My tests were
hurried and are not reliable. But, visually they were obvious. I am
looking forward to your assistance. I could use it.
Michael McGrady
P.S. Carlos, please just call me "Mike". We all come from the same
eggshel
Thanks, Carlos,
The difficulty in getting the page up had rather overshadowed any
discussion of what they say. I have quite a lot yet to add to the
page. I would indeed appreciate any efforts to assist. Be my guest.
Michael McGrady
Carlos Cajina - Hotmail wrote:
I'll sure be waiting for
t,response);"
This should read "ActionFoward forward = new
DispatchUtil().dispatch(this,mapping,form,request,response);" and it
goes in the execute method of your ActionClass. Some versions of Action
use process and some use execute.
Again, any help would be greatly appreciat
ven directly below.
ActionForward = forward = new
DispatchUtil().dispatch(this,mapping,form,request,response);"
Again, any help would be greatly appreciated.
Have a nice day!
Regards,
Carlos
- Original Message -
From: "Michael McGrady" <[EMAIL PROTECTED]>
To: "S
edited. You should mainly just make sure that you follow the general
gist of things.
If you have any particular questions, please let me know.
Michael McGrady
Carlos Cajina - Hotmail wrote:
Good morning.
Thanks to Mr. McGrady for his suggestion. I think the persistent nature of
the need to
I am sure. That is why having this as an extension is important.
I would recommend this approach rather than the approach of saying
"Well, it isn't too messy, really!"
Michael McGrady
-
To unsubscribe, e-mail: [
will, no
doubt, be eclipsed too.
Michael McGrady
Anyway, you can set your file size maximum, if that is what you want,
using whatever implementation of Struts you conjure. If you use the
commons implementation, it is not the other way around, then you can use
the commons stuff something like
.
Amazing how oftent this comes up.
Michael McGrady
Carlos Cajina - Hotmail wrote:
Hi. I'm tryin' to add this Strust extension to my project and from the documentation I
understand that what I need to do is create my Action Flow using the
SubmitButtonForwardDispatchAction, but after coding
I am not sure what you have in mind at this point. Do you still want to
go on with MappingDispatchAction?
Michael McGrady
O. Oke wrote:
Thanks for your response, I have rephrased my question
as below:
Please help!
Background
==
I have a class that extends the new
MappingDispatchAction
If you would like a simpler, and more general, solution that does the
same thing, try
http://wiki.apache.org/struts/StrutsCatalogFiveMultipleButtonSolutions
. However, if you like MappingDispatchAction anyway, which I would find
odd but you may find even, you can do whatever you like, but you
e generally not acceptable but am
happy with the commons uploader . Does that appeal to you? If so, I
can address the same question in that milieux.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
I cleaned it up a bit. You don't need the rest, of course. Enjoy,
Michael McGrady
Tom Holmes Jr. wrote:
I will try this out. Thanks!
<%@ page language='java' %>
<%@ page contentType='text/html; charset=UTF-8' %>
<%@
1 - 100 of 544 matches
Mail list logo