- 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 PROTECTED]
For additional
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
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.
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,
Michael McGrady
Solution
Or, you 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
.
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 (not all
sub-groups within a group
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
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 them.
Michael McGrady
Marwan Salam wrote:
My action is pasted below. As you will see I never
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
you doing
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 commands
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. Michael McGrady
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:
what u
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
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
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
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.
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 -0700
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.
Michael McGrady
Vic Cekvenich
.
If they are 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
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
package
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 CSPTS/SCE
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 to a directory within your
. 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 are right.
Michael McGrady
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 have to do that. But,
once you do it, you have the problems you state. You can use various
other
in the
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
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.setProperty
Wjau are you using button? Why not use image?
Neil Erdwien wrote:
I think the piece you're missing is that the input type=button...
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
,
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 unsubscribe, e-mail: [EMAIL
it in the posts. So, I
asked the question.
Michael McGrady
Rick Reumann wrote:
Michael McGrady wrote the following on 10/10/2004 4:42 PM:
Wjau are you using button? Why not use image?
What's the advantage of using an image in this case? Wouldn't this
require someone to make an image to look like a form
.
Michael McGrady
Rick Reumann wrote:
I often use the regular html buttons for various things. Users are
used to seeing these buttons so they know they can click on them. So
for example someone might have a button view logs which doesn't
necessarily submit a form but opens up a pop up window
.
LOL Who knows?
Michael McGrady
Rick Reumann wrote:
Actually I'm pretty sure using an html submit button would work as
well for handling onClick events that don't actually submit a form.
Using the html button though seems to make sense though just so that
the page author can see that's it's
Geesch! Wrong again -- I AM. He does have an input type='button'
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
. 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 their
application. It sounds good
? 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 two web applications. App
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
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 would build a framework without ego in the
core.
Michael McGrady
James
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
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-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
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 Craig and Halloway
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
to 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
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
for what JSR
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
. 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 the superior
[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
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
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
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
bean:message key='SUBMIT'/ for the values in order to Internationalize
the solution with the solutions I sent you to. Michael McGrady
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
. 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 implement connection
pooling.connection pooling
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
?
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 pool.The main
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,
I'm building
. 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 wrote
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
THE 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
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
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,
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 why we have
they consider to
be a good application of 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
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
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 the code
that is running
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 the four
solutions
options.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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 do:
.../produto.do?method
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
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, I would suggesrt, something we
might not want to recommend to coders.
Michael McGrady
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 all the keys in the application resource
property file
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 a lot must
it is worth.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
? Not sure what I am supposed to figure out here.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
and
the 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 McGrady
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
the
essentials, the taglibs and the related commons classes.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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]
logic:messagesPresent
ul
html:messages id='error'
li
font size='+1'
Sorry, left out the ERRORS sort of header.
Michael McGrady
!--==
ERRORS
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
html:errors
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
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: Struts Users Mailing List [EMAIL PROTECTED
- Original Message -
From: Michael McGrady [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 9:00 PM
Subject: Re: [HOW TO? ImageButtonBeanManager Extension]
Carlos,
This solution just adds weight (ImageButtonBean) on top
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 them
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
eggshell.
Carlos
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]
the Struts uploader stuff to be 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
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
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
.
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 my Action
application itself is better and it 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
/form
/html
Michael McGrady
Matt Bathje wrote:
Tom Holmes Jr. wrote:
I apologize for this simple, stupid question.
I created a form on a JSP page. I put in the form the;
html:submit value=Save
So, how do I get the name/value of this from my FormBean?
Would this work?
html:submit property=xxx
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' %
%@ taglib uri='struts-html'prefix='html' %
html
form method='get
James Mitchell wrote:
Please do not cross post to both lists. Most of us on dev are also on user.
If I choose to reply or ignore you on dev, I'll do the same on user.
Thanks.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
I explained why in
Tuncay Baskan wrote:
On Mon, 20 Sep 2004 20:30:46 -0400, Rick Reumann [EMAIL PROTECTED] wrote:
Michael McGrady wrote the following on 9/20/2004 7:52 PM:
I have a real concern that Struts is going to continue to be bloated
with what are not Struts, not part of the framework, but what
considerations,
however, which you have not addressed.
Michael McGrady
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: Michael McGrady [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday
,
that is unfortunate. The main point, that Tiles should be moved,
whether you like it or not, is, I think, valid. I like (love) Tiles and
agree with the gentleman's real point.
Michael McGrady
James Mitchell wrote:
I think it brings more problems than it solves.
That's a pretty ignorant statement
the technical options.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Rick Reumann wrote:
Michael McGrady wrote the following on 9/21/2004 9:37 AM:
What do you do with classes like DispatchAction and ImageButtonBean
(which solve the same problem in different ways) when someone comes
up with something better?
You need to include some flavors of DispatchAction
there
is a danger of people jumping to conclusions about Tiles based on this
offhand remark about whehter it should be outside the framework.
Michael McGrady
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
just was tinking about user people not being on dev. Slipped a
hitch in my gettiup there.
Michael McGrady
1 - 100 of 473 matches
Mail list logo