:
Thanks Erik. I guess when you get into the tags mood, you forget there's
something called scriptlets :)
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005 5:06 PM
To: Struts Users Mailing List
Subject: Re: REPOST: Relative URLs
How about
Thanks Christopher.
I think that attribute property can solve my problem. But I really have
never heard about it before, where are those things documented? :)
-Original Message-
From: Marsh-Bourdon, Christopher
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005 3:08 PM
To: 'Stru
On Thu, 31 Mar 2005 01:07:14 +0200, Leon Rosenberg
<[EMAIL PROTECTED]> wrote:
> > I would first say that you probably want to think about
> > refactoring your design.
>
> I think this is always true :-)
We have a rule about when refactoring is advisable. Usually it is
not. However, in this ca
hi
well iam faced with the same task and have been
searching instead of developing.
go to url http://struts.application-servers.com
or type & search for struts-layout tags on google
here there is one screen where a row can be
dynamically added
thanks
--- [EMAIL PROTECTED] wrote:
> Greetings,
I had a few thoughts on this one that are not directly related to your
question but which impact what you are doing.
A.
What the heck is ActionB b = new ActionB() doing in there? Why not
Action b = new ActionB()?
B.
If you were relying on only one instance of an Action being available,
why
Thanks, Craig.
Congratulations, Martin.
--
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks to Craig and congratulations to Martin.
+1 on that ;)
Niall
http://struts.apache.org/announce.html
http://struts.apache.org/volunteers.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
>,
"Jennie Baker \(E-mail\)" <[EMAIL PROTECTED]>,
"Jo Pendrill \(E-mail\)" <[EMAIL PROTECTED]>,
"Joan Leahy \(E-mail\)" <[EMAIL PROTECTED]>,
"Joel Hedrick \(E-mail\)" <[EMAIL PROTECTED]>,
"Jules Bellamy \(E-mail\)" <[EMAIL PROTECTED]>,
"Jules Daniells
>,
"Jennie Baker \(E-mail\)" <[EMAIL PROTECTED]>,
"Jo Pendrill \(E-mail\)" <[EMAIL PROTECTED]>,
"Joan Leahy \(E-mail\)" <[EMAIL PROTECTED]>,
"Joel Hedrick \(E-mail\)" <[EMAIL PROTECTED]>,
"Jules Bellamy \(E-mail\)" <[EMAIL PROTECTED]>,
"Jules Daniells
Craig McClanahan stepped down from the Chair of the Struts PMC, informing
the ASF Board at their February 2005 meeting. In Craig's words from the
following thread "I will continue to be active, but it's time for someone
else to take the administrative responsibilities.".
http://www.mail-archive.c
Brian,
How do I put this... You don't go crazy with Hibernate until you're
comfortable with it. Feel free to start with implementing a few actions
which do something like this to obtain a Session from within your action:
// assuming you used the hibernate example listener at:
// http://www.hiber
On Wed, 30 Mar 2005 07:30:41 -0800 (PST), Caroline Jen
<[EMAIL PROTECTED]> wrote:
> I am working on a big J2EE project. The project is at
> its initial stage. The leaders of the project have not
> quite made up their mind on whether we are going to
> use the Struts framework or JSF. But, all member
Well, the bottom line is you got a solution, and in the end that's all
that matters :)
Leon Rosenberg wrote:
Well in this case the action was instantiated a business object reference
(like ejb remote) for later invocation of business methods
in execute. I mean, I have to do it somewhere and it is
Rafael-
Did you take a look at
http://daoexamples.sourceforge.net/xref/index.html
Saludos,
Martin-
- Original Message -
From: "Rafael Taboada" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, March 30, 2005 1:24 PM
Subject: Model
> Hi folks.
>
> I'm developing on struts and I don't know how
Hi,
Its all depend on your project's domain.
But I can tell you boldly that you can use Struts and JSP together without
worried your project size.
So, at present if you want to start coding you can start design your JSP
pages, and later on add struts tags.
Regards,
Himanshu Shah
-Original
Hi,
Its all depend on your project's domain.
But I can tell you boldly that you can use Struts and JSP together without
worried your project size.
So, at present if you want to start coding you can start design your JSP
pages, and later on add struts tags.
Regards,
Himanshu Shah
-Original
You could write your own tag... But it is not available in Struts tags
as they sit. At least not to my knowledge.
-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005 7:50 PM
To: Struts Users Mailing List
Subject: RE: [OT] Re: Iterate through
Thank you all :"), my problem is solved!
- Original Message -
From: "Mark Benussi" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
Sent: Thursday, March 31, 2005 12:05 AM
Subject: RE: [HELP] How can javascript reference to 1 html:hidden tag or
html:text ???
document.forms['formBe
Yeah. I know what you mean, I'd do it in an action rather than this way too.
But i don't think i was clear. I want a tag library way of getting the
iteration to work with the reason being that if I can reference an individual
Key without specifying its resource bundle in the action servlet (
I'd appreciate some help with the valid-when validator rule.
I have a text field 'foo' as part of my DynaValidatorForm which should
be validated with my custom 'ipAddress' validator rule. This is easy to
set up in validation.xml.
Now I have a checkbox 'useFoo' associated with the text field 'foo
Actually it doesn't matter whether it's a servlet or a jsp. A JSP is a
servlet after all. Now granted this is way off topic, and I would be
like wendy and do it in an action then put the properties (or some other
collection of the key-value pairs) into the request and do it that way.
With that said
1. In a single form you would have the button as a parameter. This is better
because you will need to develop a single Action and write a switch-case for
the buttons (parameter(s) per tab).
2. For separate actions you would not need to bother with parameters because
each button is mapped to a s
> I would first say that you probably want to think about
> refactoring your design.
I think this is always true :-)
> Actions are designed to be a
> per-request handling mechanism, so anything that is creating
> persistent objects, or as a result of the function creates
> persistent objec
> I would first say that you probably want to think about
> refactoring your design.
I think this is always true :-)
> Actions are designed to be a
> per-request handling mechanism, so anything that is creating
> persistent objects, or as a result of the function creates
> persistent objec
Thanx Dave,
You message just brought the answer :-)
As I read "HashMap" I remembered that I actually do have a HashMap in the
ActionRegistry, where each action is
registered in BaseActions constructor, so I can collect actionstats (number
of requests, min/max/middle times etc) for
later presen
Thanx Dave,
You message just brought the answer :-)
As I read "HashMap" I remembered that I actually do have a HashMap in the
ActionRegistry, where each action is
registered in BaseActions constructor, so I can collect actionstats (number
of requests, min/max/middle times etc) for
later presen
Whoops, too quick on the trigger.
You'd want to look at Action.processActionCreate to implement my
somewhat... suspect solution outlined below.
It's easy and fun; we did a processRoles override for doing our own
role-based action access; really nothing to it. It's nice all that stuff
is abstrac
Hi Leon,
I would first say that you probably want to think about refactoring your
design. Actions are designed to be a per-request handling mechanism, so
anything that is creating persistent objects, or as a result of the
function creates persistent objects (like a ThreadPool as you
mentioned)
Leon Rosenberg wrote:
The question is now, how can I ensure, that an action is actually created
once, and from proper "caller" without changing 500 existing action classes.
The only thing I could imagine, would be introducing a test mode, and if
running in test mode, throw an exception in the BaseA
From: "Brian McGovern" <[EMAIL PROTECTED]>
> Thanks. I figured I know I can get it to work in servlet code but im
hoping to avoid that.
> I know that single properties are made available by the framework in
taglibs like this key="error.application_error" />. Ther has to be a simple way to just ge
Hi,
I have following problem. Recently in code review we found some places,
where one very young and very inexperienced developer was directly
instantiating an action:
in execute of ActionA:
...
ActionB b = new ActionB();
b.callSomeMethod();
...
Unfortunately ActionB was getting some resources
Hi,
I have following problem. Recently in code review we found some places,
where one very young and very inexperienced developer was directly
instantiating an action:
in execute of ActionA:
...
ActionB b = new ActionB();
b.callSomeMethod();
...
Unfortunately ActionB was getting some resources
Thanks. I figured I know I can get it to work in servlet code but im hoping to
avoid that.
I know that single properties are made available by the framework in taglibs
like this . Ther has to be a
simple way to just get ALL the properties in a particular bundle directly from
the jsp itself.
From: "Brian McGovern" <[EMAIL PROTECTED]>
> Can someone tell me how to iterate through a properties file in my JSP.
> I want to grab the keys and values for everythign within a certin
Blah.properties file
> in my class path and display on the page.
Here's part of a Factory class I use in my DAO l
Can someone tell me how to iterate through a properties file in my JSP. I want
to grab the keys and values for everythign within a certin Blah.properties file
in my class path and display on the page.
This has to be possible.
-Thanks
-B
Scott Purcell wrote:
That is what I said. Its got to work, or why have it. Anyway, the error, (past
my tail command by now) was the tag could not find a getter for the
coversCheckbox element. And of course it can't, there is none. There needs to
be a way to let the html: element know that this i
From: "Scott Purcell" <[EMAIL PROTECTED]>
> I thought the DynaValidatorForm existed to cut down on the number of
"Physical class beans"
> we had to create. I hope this works.
Not really... Dynamic forms only get you out of writing all those get/set
methods, and remove the temptation to do things t
Hi folks.
I'm developing on struts and I don't know how to implement model layer.
Do u know some sample codes about model layer?.. I was reviewing
about DAO in daoexample.sourceforge.net but i'd like to have another
material.
thanks
--
Rafael Taboada
Thanks Mike,
That is what I said. Its got to work, or why have it. Anyway, the error, (past
my tail command by now) was the tag could not find a getter for the
coversCheckbox element. And of course it can't, there is none. There needs to
be a way to let the html: element know that this is a Dyn
Wow. I'm stumped. As I said, I don't have firsthand experience
with DynaForms...
Only thing I can think of is, did you set the input to your
JSP correctly in the struts-config?
Not to sound overly optimistic, but it's GOT to work. It uses
the same functionality on the sending as it does when sett
On Mar 30, 2005, at 5:35 AM, Ted Husted wrote:
Spring is a large project with several components. The Spring Core
works just fine with Struts. You can use it to instantiate your
business objects from Struts Actions.
Aside from Spring Core, the Spring project also includes a Spring MVC
component. Sp
I have finally figured out how to get my DynaValidationForm data in the Action
class using the get() and set("Name", obj);
So I finally got a checkbox set in a DynaValidatorForm object, and I go to my
JSP page to display its checked status.
Since it is a single checkbox, I figured I would throw
You could simply attach an onKeypress event to the textboxes...
This will ignore anything other than Enter (13). I'm actually not sure
about that this.form part, off the top of my head that might be wrong... I
remember there being a way to get a reference to the form an
belongs to, but that mi
Nope, I haven't looked at it at all. I just checked out the home page for
Struts Flow though, where do you see the announcement?
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Wed, March 30, 2005 12:11 pm, Matthias Wessendorf said:
> Fra
Hello Temp,
It seems like you want to use a combination of the
nested bean property naming and list-backed properties.
I think your property name in the form element will be
something like
mybean.prop
which will result in form.getMybean().setProp() when
the form is submitted.
I believe your s
I have an actionform which contains a bean as a
property. This bean has getter and setter methods
for few Strings .
1. How to display properties from this bean in my
jsp in a list .
And when the form is submitted
2. Can I automatically populate my bean in actionform
with the values
From: "Abdullah Jibaly" <[EMAIL PROTECTED]>
> I have a form with an followed by an .
> How can I get the submit to be activated when enter is pressed inside a
text box on that form?
> It is activating cancel right now.
What I do is put an invisible button at the top of my form. (A button with
a
Frank,
did you took a look at Struts Flow allready?
I just surfed the subproject and saw that
AJAX is announced there.
Thanks,
Matthias
Frank W. Zammetti wrote:
Actually, I didn't intend for it to be private :)
I'm not writing it for any publication in particular, although it could
wind up one one
From: "Scott Purcell" <[EMAIL PROTECTED]>
> DynaValidatorForm theForm = (DynaValidatorForm)form;
> String catalogID = theForm.getCatalogID();
> Boolean checkbox = theForm.getCovers();
> But it will not compile. How do I get the values from the form? I usually
create my own physical bea
document.forms['formBeanName'].elements['userId'].value = 'xyz';
if you invoke the Javascript from a form element, you can pass this
reference and simply do:
formReference.elements['userId'].value = 'xyz';
-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: 30 M
Having never used DynaValidatorForm before, I'm not 100% sure what
the means for accessing the properties would be. It's clear that
getCatalogID() is not going to be defined on DynaValidatorForm
as an available method. So I'd try calling getDynaProperty() and
if that doesn't work you should researc
Ok,
making headway but have issue:
Since it is a single checkbox, I am using a Boolean, so here is my bean:
Now when the user submits the form, there will be a catalogID set.
So I am trying to pull out the catalogID like this in my Action class:
public ActionForward exe
Put the submit button first is the simplest most-straightforward
answer.. If having cancel appear on the page first is a requirement
that can't be worked around, put both buttons in s and use css to
position the s so the cancel-div appears first.
The "click the first button looks through the ht
Do you mean substitution like the ???form.tag.name???
--
Thanks...
Mick Knutson
Systems Developer
Business Direct Services, Wells Fargo Bank
333 Market Street, SF, CA 94103
(415) 371-2553
[EMAIL PROTECTED]
MAC A0103-223
"This message may contain confidential and/or privileged informatio
Ok,
thanks!
-Matthias
Frank W. Zammetti wrote:
Actually, I didn't intend for it to be private :)
I'm not writing it for any publication in particular, although it could
wind up one one somewhere.
I'll certainly announce it here when it's done.
---
Hi all,
I have a form with an followed by an .
How can I get the submit to be activated when enter is pressed inside a text
box on that form? It is activating cancel right now.
Thanks,
Abdullah
-
To unsubscribe, e-mail: [EMAI
Actually, I didn't intend for it to be private :)
I'm not writing it for any publication in particular, although it could
wind up one one somewhere.
I'll certainly announce it here when it's done.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.
From: "Scott Purcell" <[EMAIL PROTECTED]>
> I have a couple of jsp pages where there is a single checkbox on the page.
> But as a newbie, I am not sure what type in the creation to make it? A
String? A Boolean?
I usually use Boolean for checkboxes. (Read the docs about using the
'reset' method to
I have a couple of jsp pages where there is a single checkbox on the page.
I would like to create a DynaValidatorForm with a single element in it (the
checkbox). Then in the action, run a query, if the database says to turn it on,
then I would like to set it to true (X) or else show a unchecked
I don't know of any right now, but there *will* be one by the weekend :)
(I'm working on an article on this all, and it will include a Struts-based
application showing a number of usages... I had hoped to be done already,
but you know, life gets in the way...)
--
Frank W. Zammetti
Founder and Ch
I started reading on ajax technology bundle
and now I am wondering if anybody knows a *deployable*
WAR that demonstrates Struts Actions and *AJAX*
:-)
-Matthias
Stéphane Zuckerman wrote:
Joe Germuska a écrit :
I don't think this is a problem with Struts, rather with Firefox and
its way of handling
Joe Germuska a écrit :
I don't think this is a problem with Struts, rather with Firefox and
its way of handling XMLHttpRequest... But is there a way to bypass
this behaviour ?
I don't think you can use ActiveXObjects in Firefox -- you certainly
wouldn't be able to reach users of non-Windows sys
I have set redirect="true" only for one action it did
not work there and other actions got nothing like
redirect="true" but it doesnot work even there.
thanks & regards
--- "Fogleson, Allen" <[EMAIL PROTECTED]>
wrote:
> Hmmm really? I do it all the time for request scope.
> Are you setting
> re
> I don't know how javascript reference to 1 html:hidden tag or
> html:text tag of struts tag lib and change their value.
> for example:
> I have
document.getElementsByName("userId")[0].value="whatever";
If you use the "styleId" attribute, which yields an "id" attribute in HTML:
You can
Hmmm really? I do it all the time for request scope. Are you setting
redirect="true"? that would likely mess it up.
Al
-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005 9:44 AM
To: Struts Users Mailing List
Subject: RE: prepopulation action for
I said as you said . It works fine with session but
not with request.Which is better to use request or
session.
thanks & regards
--- "Fogleson, Allen" <[EMAIL PROTECTED]>
wrote:
> Sure...
>
> Lets say jsp1 posts to actionA which forwards to
> jsp2
>
> In actionA simply create and instance of
Hi All,
What would be the way to go with forms when I have multiple tabs on a web
page?
Single form for all the tabs or multiple forms (one for each tab)?
Does anyone know of an example that I could look at?
Thanks a lot!
Dhanashree.
Don't know if it's appropriate to do this, but I am adding my 2c as well.
I've been using Spring and Hibernate with Struts for some time now and have
found it to be excellent. If you are the book type, there is a very good
book on Spring from Apress titled "Pro Spring" that covers the entire
framew
I am working on a big J2EE project. The project is at
its initial stage. The leaders of the project have not
quite made up their mind on whether we are going to
use the Struts framework or JSF. But, all members of
the team think that we should start coding.
Is it possible to use the Struts framewo
> But I can't find a link on where to download it..
The nightly builds are located here.
http://svn.apache.org/builds/struts/maven/nightly/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
Yes, Joe is correct... As per the sample I posted a day or so ago, in
simplest terms, use the following Javascript to get the object:
if (window.XMLHttpRequest) { // Non-IE browsers
req = new XMLHttpRequest();
} else if (window.ActiveXObject) { // IE
req = new ActiveXObject("Microsoft.XMLHTTP"
Sure...
Lets say jsp1 posts to actionA which forwards to jsp2
In actionA simply create and instance of the actionForm for jsp2,
populate the parameter into it and save it in the appropriate scope.
For instance if my actionMapping for actionB is:
blah blah
you would just do a:
request.se
In short, what Ted said.
More elaborately, I've been using Spring with a
lot of Struts web apps, and I'm very happy with
the combination. Spring does a whole lot more
than Struts ever wanted to do, and you can use as
much or as little of it as you like.
And even though Spring MVC exists as a
I have two actionforms two action classes and two
jsps .Clicking on a link in a jsp should take me to
next jsp .Here I must pass some parameter to next
jsp.
In the first jsp I display some data from a collection
containing objects
which I generate from database in action class and
set thi
This is working fine AFAIK, but while in IE it displays the result
and that is all, in Firefox the page is still in a loading
process... even though it has displayed all there was to be
displayed !
I don't think this is a problem with Struts, rather with Firefox and
its way of handling XMLHttp
Greetings,
Apologies if this has already been posted... but since the List Archive is
not available I must post.
I have a requirement to display rows of the the same data such as:
Date
Description
Delete indicator
The user can change any data in any row at any time.
Additionally, the user can a
David , OK I got this working. It creates the pool on startup. But the
question now becomes how to get a session from the factory.
This listener provides a open(HttpServletRequest) method, but no close method.
I intend to wrap my data access objects in a separate layer and would like to
avo
Hello all,
After reading Bill Siggelkow's interesting article on Struts &
Commons Chain, I'd like to have a look at Struts 1.3 (as suggested in
article)
But I can't find a link on where to download it..
Links on struts page point to at most version 1.2.6
Any help?
Thanx and regards
Erik Weber a écrit :
Try using request.getParameterNames to see what's actually being
delivered to the server.
I did try it (although I should have mentionned it). I've progressed a
little so far : it seems that if I type the url directly inside the
navigation bar, it works. But in fact it is a
Try using request.getParameterNames to see what's actually being
delivered to the server.
Erik
Stéphane Zuckerman wrote:
Hello,
Are the Action classes only processing "POST" forms ? I am asking this
because I'd like to give some parameters to an Action I am creating,
and can't get no result wit
How about:
<% String basePathVar = (String) application.getAttribute("myPathVar"); %>
. . .
Erik
tarek.nabil wrote:
Thanks everyone. I really like the idea of using a ServletContext
attribute, but I'm not using the EL, is there a way I can do that
without using the EL?
-Original Message-
F
Spring is a large project with several components. The Spring Core
works just fine with Struts. You can use it to instantiate your
business objects from Struts Actions.
Aside from Spring Core, the Spring project also includes a Spring MVC
component. Spring MVC does overlap with Struts. Spring MVC
Hi,
I have been reading about frameworks and I have seen something about
Spring, and I have a lot of doubts. Spring is complementary or is then
same place?. In some places said that Spring is complementary thats
threats about the middle tier, but I have seen some examples and Spring
replaces t
There are two solutions that you have available to you (well that I know off
the top of my head):
1) Use the _attribute_ property in the action tag to give each form a
pseudonym:
This would l
Hi David,
I'm afraid I don't understand your solution. I'm using Struts 1.1, but I
don't know what you mean by contextRelative="false". It doesn't seem to
be an attribute on the img or image tags. Also, I need a solution that
will work with plain old html tags as well, not just with Struts html
ta
Hi,
I'm facing a problem with having multiple forms that submit to the same
action on the same page.
I have a search page with a few search fields. The user does the search
and gets the paged results in the *SAME* page.
Now, the user can either change the search criteria and search again, or
use
Hello,
Are the Action classes only processing "POST" forms ? I am asking this
because I'd like to give some parameters to an Action I am creating, and
can't get no result with the request.getParameter() method...
Thank you for your time
--
Stéphane Zuckerman
-
Hi,
I still need more help.
I have a group of check box (with the same name ),
so how to get this array values from Form Bean
thank for reading
Hi,
I don't know how javascript reference to 1 html:hidden tag or html:text tag of
struts tag lib and change their value.
for example:
I have
How can I change the value of tag above by javascript.
Maybe document.all.userId.value="somevalue" <-- like this ???
help me :(
Frank W. Zammetti a écrit :
I reposted it at the same address.
Of perhaps more interest though... I am working on an article covering
this in more details with a few more examples. I'm hoping to finish it
today, tomorrow at the latest.
Back to Struts ;-)
I did a little something so I could test AJ
Hi all!
Does anyone know a tool (or a way) for verifying all jsp-pages on their
tag library reference files?
Example of what I call a tag library reference file:
<%@ taglib uri="/tlds/struts-html.tld" prefix="html" %>
The problem is not that I have too little tag library reference files:
this
Al
Thanks for you suggestion, I will try them and let you know results.
regards,
Shashi
-Original Message-
From: Fogleson, Allen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005 1:20 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Struts - Not instantiating Acti
92 matches
Mail list logo