Great,
I like the idea of storing data inside the server.xml or using the admin
tool...
using the Environment tag... if you have access to the adminstration
of the server
unfortunately this doesn't work if you just have access to you context
directory...
From what I read on all the thread
Hi,
We have a customer who is introducing chip cards with
client-certificates for single sign on. Because of this I have to change
a web-application we provided. The application implements its own
security mechanisms and uses roles (defined for every action in
struts-config.xml) and roles in
Hi
With a newer Tomcat you might use a solution similar to what I have already seen
in a WebLogic-installation:
Several security-providers were created and configured. The first one
to able to authenticate the user does the job. Therefor the first would
be an authenticator that can handle the
The requirement is, I need a Message Driven Bean which will recieve messages
from Websphere MQ.
I am finding problems doing the configuration in WSAD as well as in WAS.
Any pointers to Configuring for MDB - MQ in (1) WSAD 5.1 and (2) WAS 5.0
will be really helpful.
Thanks in advance,
Hi
When I create a struts-config.xml that has many nodes that call the same
action class, is the action class instantietad once, or is instantiated for
every node?. What happens if I have a custom action mapping class, is
instantiated once or is instantiated for every node?.
Regards,
Néstor
Hi all,
I plan to use frames for a site where in the user will feel that
he is one site while it will be pulling content from another site.
Here my question is will any kind of security software installed in a
browser will detect this and report to the user or prevent the content
from being
Hi all,
I'm developing with struts 1.2.4, I have an action with form as beans, not
dynamic, field in which I introduce data are String, and I have another
field without values. When I do commit, then programs doesn't touch my
action I obtain befere the next error:
Hello, Nestor.
I'm not sure what you mean exactly by node. Anyway, according to Struts'
online doc:
Write code for a multi-threaded environment - The controller servlet
creates only one instance of your Action class, and uses this one instance
to service all requests...
Not sure if this is what
I have been taking another look at the AJAX stuff that Frank Zammetti
has provided. This stuff is revolutionary. Someone ought to be
taking a close look at integrating such solutions, so far as it makes
sense, into Struts. This is not a passing fancy, in my estimation.
This is a real solution
Where do we find information about this marvellous stuff?
Rodolfo __
Dakota Jack [EMAIL PROTECTED]
18/04/2005 15:02
Por favor, responda a Struts Users Mailing List
Para: Struts Users Mailing List user@struts.apache.org
cc: (cco: Rodolfo
At 6:48 AM -0400 4/18/05, Néstor Boscán wrote:
Hi
When I create a struts-config.xml that has many nodes that call the same
action class, is the action class instantietad once, or is instantiated for
every node?. What happens if I have a custom action mapping class, is
instantiated once or is
Dakota Jack a écrit :
This is a fundamental shift in architecture that makes clear sense.
I tend to agree with you, and if this were to be integrated in Struts,
my life would be easier (I am using AJAX stuff in some parts of my
webapp). However, I have a serious concern related to security :
Rodolfo García Esteban/CYII a écrit :
Where do we find information about this marvellous stuff?
Rodolfo __
Look for XMLHttpRequest and/or ActiveXObject(Microsoft.XMLHTTP)
XML.com and the Apple dev center have good introductory articles about it.
Basically, this is a
http://wiki.apache.org/struts/AjaxStruts
On 4/18/05, Rodolfo García Esteban/CYII [EMAIL PROTECTED] wrote:
Where do we find information about this marvellous stuff?
Rodolfo __
Dakota Jack [EMAIL PROTECTED]
18/04/2005 15:02
Por favor, responda a Struts Users
http://wiki.apache.org/struts/AjaxStruts
On 4/18/05, Stéphane Zuckerman [EMAIL PROTECTED] wrote:
Rodolfo García Esteban/CYII a écrit :
Where do we find information about this marvellous stuff?
Rodolfo __
Look for XMLHttpRequest and/or
Good overview, Stephane
On 4/18/05, Stéphane Zuckerman [EMAIL PROTECTED] wrote:
Rodolfo García Esteban/CYII a écrit :
Where do we find information about this marvellous stuff?
Rodolfo __
Look for XMLHttpRequest and/or ActiveXObject(Microsoft.XMLHTTP)
For articles, blogs, libraries, etc, related to this technology, take
a look at http://www.ajaxmatters.com/
Our own Frank wrote an article about using it on
http://www.omnytex.com/articles/xhrstruts/
He also proposed integrating the technology with the Struts taglibs:
Stéphane Zuckerman wrote:
if this were to be integrated in Struts,
my life would be easier.
I too will now check it out.
.V
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
eee... javascript...
yuck, ptooey! ptooey!!
--- Vic Cekvenich (netsql) [EMAIL PROTECTED] wrote:
Stéphane Zuckerman wrote:
if this were to be integrated in Struts,
my life would be easier.
I too will now check it out.
.V
On 4/6 I posted the following message to the Struts dev list... I can't
seem to find the thread in the list archives, if anyone else can I would
appreciate very much you posting the link to it...
This was discussing my proposal for integrating AJAX functionality into
the existing Struts taglibs.
ptooey...
I've always wanted to know how to spell that :)
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Mon, April 18, 2005 10:29 am, Woodchuck said:
eee... javascript...
yuck, ptooey! ptooey!!
--- Vic Cekvenich (netsql)
Frank,
You must've started typing this response a while ago. I already sent
a message on this thread linking to the dev email with your proposal.
Hubert
On 4/18/05, Frank W. Zammetti [EMAIL PROTECTED] wrote:
On 4/6 I posted the following message to the Struts dev list... I can't
seem to find
Yep, sorry about that... I had it in my drafts folder because I got called
away in the middle of it, and I didn't check all the replies to the
current thread before sending it so I didn't see your link until
afterwards. My bad :)
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex
JavaScript provides a client side rather developed engine in
JavaScript as well as Flash, etc. This is merely a resource. The
yuck, ptooey! ptooey response to these ideas, especially ones in
production and successful for quite a while, strikes me as rather less
than professional. I think it is
Let me first say that IMHO, introducing AJAX capabilities into the html
taglib is an awesome idea.
Frank W. Zammetti wrote:
So, the question is, does anyone see this as something interesting?
Very. I was also thinking about working on AJAX taglibs using Sarissa
[1] (introductory article at
sorry, i couldn't resist .
actually, why don't we address this problem at the source rather than
using this javascript patch solution? (at least this is how i see it)
why don't the browser makers build internal mechanisms to allow posting
of forms without the need to refresh the html page? why
Hi all,
Is there a way to use html:link in a way that it acts like html:cancel, in
other words automatically skip validation?
This seems to work but I wonder if there is a better way?
jsp:useBean id=paramMap class=java.util.HashMap /
c:set target=${paramMap}
Frank, will Ajax support be tied into reporting form errors? It would be
interesting to break down the validator into individual validations, so
errors can be reported to the user as he types.
-Original Message-
From: Emmanouil Batsis [mailto:[EMAIL PROTECTED]
Sent: Monday, April 18,
Not sure what to say, Woodchuck, about your suggestion that a request
be sent that does not want a response and does not affect the HTML
page. What would happen next? And, how? This is perfectly
conceivable. Heck, I think that it might be possible as is. But, I
don't see this as even
No problemo. As far as the extension itself is concerned, I'd still
be interested in it, but like I mentioned earlier, only as a plugin
that doesn't change the base tags. The reasons are many and they are
mentioned in the dev thread you started. My main concern is
implementation lock-in.
Might have helped to have a guest login guest/guest123
--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston,
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497
-Original Message-
From: t t [mailto:[EMAIL PROTECTED]
Sent: 15 April 2005 17:21
SNIP
On 4/18/05, Dave Newton [EMAIL PROTECTED] wrote:
Or we could just use ActiveX controls.
*psych!*
/SNIP
Or JavaScript, or Applets, or Flash, or .. but,
most importantly, in this thread, AJAX with STRUTS.
Jack
--
You can lead a horse to water but you cannot make it
Any further insights on this? It seems I'm missing something simple here...
I dont want ot have to manually call methods on my action...
help? :)
Is there something beyond the
html:hidden property=dispatch value=error/
that I need (and the hidden field named dispatch)
and of course to have
Does anyone know of any examples using the struts validation framework
with the nested tags.
Thanks in advance.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
hi
reading from past postings this subject has been much talked about.
but not finding a solution to my liking i post this question.
i want a user a see a set of checkboxes some selected some not. the
user is allowed to check uncheck anyone of them.
upon form submission, i want the value of the
On Mon, April 18, 2005 11:12 am, Emmanouil Batsis said:
I haven't really studied the samples yet, but it would seem more
semantically correct to me if the html:form was used to make this work.
I'll try to come up with more concrete suggestions.
I thought of that too, but what changed my mind
Interesting... honestly, I hadn't thought about it!
I think you kind of touch on one of the points made in the dev list thread
(by Martin I believe) that was cited as a reason not to go with my
proposal: is it flexible enough? Certainly it would be next to impossible
to cover ever usage pattern,
On Mon, April 18, 2005 11:33 am, Hubert Rabago said:
No problemo. As far as the extension itself is concerned, I'd still
be interested in it, but like I mentioned earlier, only as a plugin
that doesn't change the base tags.
I thought that was a fair point at the time, and still do. I haven't
Woodchuck wrote:
As soon as IE becomes open source we can start that. Until then, or
until IE's market share drops into single digits we're forced to deal
with browsers as a given. Besides, much of the visceral dislike for
javascript is based on older browsers that were not at all consistend.
Users that turn off JS are akin, in my mind, to automobile drivers who
decide they would rather play Fred Flintstone, cut holes in the
floorboards and not bother starting the engine. Oh, you'll get around,
but your missing out!
While I am certainly not trying to say there aren't very legitimate
Javascript hasn't been a problem as far as cross-browser development goes
for some time, in my experience anyway. I can't remember the last time I
wrote code that worked on one browser and not another.
Oh wait, I take that back... I remember something about IE's substring
method not working like
To Frank's point,
I am sometimes one of those users who turn off JavaScript ;-) But, it's a
moot point, because, as I see it, no one's website should depend on
JavaScript for it to be fully functional anymore than it should wholly rely
on CSS. These are technologies that enable powerful
But windows (at least in it's newest form - XP) doesn't ship with
fdisk anymore :) (Heck the way windows is going pretty soon you wont be
able to format either except at install time)
Al
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Monday, April 18, 2005
Are you overriding execute() in either your Action or BaseAction?
On 4/18/05, David Johnson [EMAIL PROTECTED] wrote:
Any further insights on this? It seems I'm missing something simple here...
-
To unsubscribe, e-mail: [EMAIL
But, it's a
moot point, because, as I see it, no one's website should depend on
JavaScript for it to be fully functional anymore than it should wholly
rely
on CSS.
I would have to respectfully disagree Paul. While I think it's right to
say that not EVERYONE'S web site should require these
At 11:15 AM -0400 4/18/05, Benedict, Paul C wrote:
Frank, will Ajax support be tied into reporting form errors? It would be
interesting to break down the validator into individual validations, so
errors can be reported to the user as he types.
Independent of Ajax, Niall Pemberton has done a
Frank,
Thanks for your respectful rebuttal. My statement was pretty general and a
wide-range of exceptions exist for it, but I think we actually agree at the
end of the day when the whole picture painted. You're right to draw the
distinction between a SITE and APPLICATION, and sometimes
Joe writes:
Otherwise, Paul, I'm not sure what you mean... is your idea that an
XMLHttpRequest call would be made to do server-side validation for
each form update? The overhead is likely to make that an impractical
solution. Or are you wondering how errors would be reported back to
the
You are correct Joe, I made no attempt whatsoever to solve that situation.
In short (relatively!), for anyone trying to get a grasp on it, my
proposal boils down to this:
We have these Struts tags that everyone (except ironically me, most of the
time!) uses. These tags have various event
At 1:59 PM -0400 4/18/05, Benedict, Paul C wrote:
Joe writes:
Otherwise, Paul, I'm not sure what you mean... is your idea that an
XMLHttpRequest call would be made to do server-side validation for
each form update? The overhead is likely to make that an impractical
solution. Or are you
On Mon, April 18, 2005 2:13 pm, Joe Germuska said:
I am not quite sure why the overhead makes it impractical, unless there
is
a physical barrier such as bandwidth restraint -- but that sounds like a
case-by-case decision is required.
Well, by definition, an XMLHttpRequest involves a
This is all great, and ajax definetely rules, but is it OK to use
other's pictures without giving credit to their author, who by the
way, came up with this name:
http://www.adaptivepath.com/publications/essays/archives/000385.php
Your right, and I suggest we stop using the AJAX name lest someone get
sued...
Might I suggest WOINA? (W)hat's (O)ld (I)s (N)ew (A)gain.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Mon, April 18, 2005 2:29 pm, Michael J. said:
This
What?
Michael J. [EMAIL PROTECTED]
04/18/2005 02:29 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org
cc
Subject
Re: AJAX: Whoa, Nellie!
This is all great, and ajax definetely rules, but is it OK to use
other's
Now, you raise a good point as to how the Javascript could capitalize
on the presence of the errorStyle attribute, which normally is only
interpreted on page load. That is, if you did any client side
validation, you'd probably like to be able to switch the style of the
invalid field to
IIRC you wanted the graph method to be called because you had
set('graph') in an onclick handler. What does the set('graph')
method do? Does it modify the dispatch form field?
On 4/18/05, David Johnson [EMAIL PROTECTED] wrote:
Any further insights on this? It seems I'm missing something simple
Frank,
What do we need extra tags for? We already have hooks to call
javascript functions, whether those functions run 100% client-side or
interact through an xmlhttp object or even through a 1x1 pixel iframe
should be totally unknown to the individual input elements.
Frank W. Zammetti wrote:
hi,
after all the mail about the philosophical aspects of AJAX (javascript
yes/no, etc.) i want to contribute that THIS IS THE SOLUTION i've been
looking for for one of my current projects.
so, do i want to have that in struts?
YES, I WANT!
where can i sign?
frank, if i would pray my next
Yes. I agree with this wholeheartedly. I wish we would do something
similar with the application specific code that is now in Struts.
Plugins would not be the solution, but something akin to that.
On 4/18/05, Hubert Rabago [EMAIL PROTECTED] wrote:
No problemo. As far as the extension itself
...and some very simple questions, i hope i didn't pass the answers in all
the mails about ajax:
- where can i get it (especially the struts extension, or was it just a
proposal)?
- if it is under development, is there a chance to get a snapshot and to
contribute to the development?
kr,
guenther
Forget whatever I was thinking, I think Jason is on the right track!
Ironically, I add custom attributes all the time in numerous situations,
but it frankly escaped me as a possible solution here.
All you really need beyond this is probably a new tag that renders a JS
function that you can pass
http://www.omnytex.com/ajaxtags.zip is everything I have. It is, I'd say,
partially real... There are some things I didn't do (most importantly the
reading in of the configuration file), but it is a real, working thing
there, mostly. It certainly needs to be completed, but ultimately in
simplest
You lost me Jason... what extra tags are you referring to? My proposal
specifically didn't require any new tags, only additions to the existing
ones.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Mon, April 18, 2005 2:43 pm, Jason King
Thanks tor this note. Attribution supplied. You might have done that yourself.
On 4/18/05, Michael J. [EMAIL PROTECTED] wrote:
This is all great, and ajax definetely rules, but is it OK to use
other's pictures without giving credit to their author, who by the
way, came up with this name:
There is no problem using the name. That is the name the people at
Adaptive Path want used. It is not the name for a product. It is the
name for a technology and there is no problem with being sued. You
can just AJAX all you want. The name is clean, but not cleanser.
///;-)
Jack
On
From wiki:
No one should be under the impression that you have to deal in XML
or that you have to use the XMLHttpRequest object at all, contrary
to the meaning of the AJAX moniker.
Not that I really care about the name, but for me you do not use Ajax
if you do not use async HTTP calls, either
yes, exactly. If changed the value of the hidden field to graph
That part is working too. If I do a log.debug
(dispatch=+theForm.getDispatch());
it puts out the right value (graph or whatever I clicked in the form)
On 4/18/05, Hubert Rabago [EMAIL PROTECTED] wrote:
IIRC you wanted the graph
Frank W. Zammetti wrote:
You lost me Jason... what extra tags are you referring to? My proposal
specifically didn't require any new tags, only additions to the existing
ones.
You previously said:
why not just modify the existing
Struts tags to have some at least minimal AJAX functionality?
I think you might be misunderstanding this point. And, I would invite
Frank, when he gets time to explain it to you.
Jack
On 4/18/05, Michael J. [EMAIL PROTECTED] wrote:
From wiki:
No one should be under the impression that you have to deal in XML
or that you have to use the XMLHttpRequest
Oh, *that* part of it I agree has to be there or we're talking about
something completely different. It was the usage of XML that isn't
required, that was my point in writing that.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Mon,
You've confirm that you've changed the action-mapping so that it is now
using your new dispatch action? If that's correct, then I'd say you need
to break at DispatchAction.execute() and step through it to see what's
going on.
Dennis
David Johnson [EMAIL PROTECTED]
04/18/2005 03:28 PM
Ah, I see. In any case this doesn't require new tags.
Part of this is I'm not just talking about validation. In fact I think
that's about the most pedestrian use of AJAX around! It's the cooler kind
of things you can get away with like table sorting, like the example in my
article. Not that
One part I missed was when you said your base action is extending
DispatchAction. What is it that your base action is doing? It could
be conflicting with the dispatch logic.
Hubert
On 4/18/05, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
You've confirm that you've changed the action-mapping so
I should probably post this on the Wiki, but...
AJAX is just a new buzzword for an old concept: updating only portions of
a web page instead of everything at once.
Speaking for myself, I was doing what would now be called AJAX at least
five years ago, and I'm talking about in a production app.
David Johnson wrote:
yes, exactly. If changed the value of the hidden field to graph
That part is working too. If I do a log.debug
(dispatch=+theForm.getDispatch());
it puts out the right value (graph or whatever I clicked in the form)
What does the code for your base action (that subclasses
yeah. this is my Action mapping
action path=/PortfolioSummaryAction
name=portfolioSummaryForm
scope=request
input=page.portfolioSummary
type=com.foo.struts.PortfolioSummaryAction
parameter=dispatch
forward name=success path=page.portfolio.summary redirect=true/
forward name=invalidSession
the BaseAction has
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
private Log log;
and a constructor that initialized the log object so I can perform
logging in all my actions.
In addition it has a checkAuth() method that makes sure the user is
logged in
Does it have an execute() method? If so, what does the execute method do?
Hubert
On 4/18/05, David Johnson [EMAIL PROTECTED] wrote:
the BaseAction has
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
private Log log;
and a constructor that
Hubert Rabago wrote:
Does it have an execute() method? If so, what does the execute method do?
Yeah--what you gave isn't enough. In order to diagnose we must see the
code, because on the surface everything appears to be fine.
Dave
which part to you need to see? I'm s thankful for any help :)
On 4/18/05, Dave Newton [EMAIL PROTECTED] wrote:
Hubert Rabago wrote:
Does it have an execute() method? If so, what does the execute method do?
Yeah--what you gave isn't enough. In order to diagnose we must see the
David Johnson wrote:
which part to you need to see? I'm s thankful for any help :)
All of it? What Hubert is asking is whether or not you override the
execute method of the DispatchAction subclass, as that could easily
munge up the dispatching. That's certainly among my top questions as
I have an action in my application that generates a PNG image from
some text stored in a session object. My view is very simple:
[EMAIL PROTECTED] contentType=image/png%
%
java.io.OutputStream os = response.getOutputStream();
java.awt.image.BufferedImage buffer = (java.awt.image.BufferedImage)
Just curious if there are any struts based content managment tools out there!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The problem is that you're opening the output stream at the beginning of
your jsp and then reopening the output stream by calling
response.getOutputStream(). I believe you can call response.reset() to
fix this problem:
%
response.reset();
response.setContentType(image/png);
java.io.OutputStream
Why even bother with a jsp?
You have the response object in your action, just start spewing data into
it.
Larry
On 4/18/05, Daniel Watrous [EMAIL PROTECTED] wrote:
I have an action in my application that generates a PNG image from
some text stored in a session object. My view is very
This might be a good case to write a custom tag.
-Original Message-
From: Daniel Watrous [mailto:[EMAIL PROTECTED]
Sent: Monday, April 18, 2005 5:20 PM
To: user@struts.apache.org
Subject: binary view
I have an action in my application that generates a PNG image from
some text stored
Hi:
I have a question.I need to check if a user is the one who has permission
to a certain action.
His role is stored in the database, for example user.isStudent. The whole
student object is
stored in the session after he logs in successfully . From that point on,
every time he sends
Hi again,
I'm calling the validate() method in my MappingDispatchAction to
check errors on page. Which is fine, except that I want to return to the
URL (Action w/params) that was called. I have two Actions, Edit and Add,
which both refer to Attributes.jsp, and depending on the type param
To get beyond doing the grunt work yourself for Ajax, I recommend taking a
look at this:
http://dojotoolkit.org/intro_to_dojo_io.html
and downloading the dojo.io package from their site.
Personally, I'm not convinced that we need anything new in Struts to make
using Ajax easier. I'm building
89 matches
Mail list logo