Hey all,
is it possible to deine a definition in Base Module and extend it in
another sub struts-module?
thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://findbugs.sourceforge.net in case anyone's interested...
On Thu, 3 Mar 2005 15:44:11 +0800, Yves Sy [EMAIL PROTECTED] wrote:
Anybody know a tool for scanning unclosed JDBC resources? I've done a
simple logging facility in my app to keep track of connections in the
pool at runtime but
Hi Guys, I'm having some issues with html:errors/ (I've attached my previous
mail below) that I'm going to write a custom tag to get around. I was
thinking that if it's a bug, my effort is probably more productively used
fixing the bug than rewriting the functionality, but first I need to
Hi ,
To avoid validation, we need to use simple Java bean instead of
subclassing ActionForm.
The question is, is it possible to keep an Action mapping without using
any Form bean mapping in struts-config xml..?
Can anyone pls help..?
Thanks and Regards
Rajasekaran Iyanu.
Info:
message-resources parameter=ApplicationResources
factory=MyOwnFactory
class=MyOwnConfig
set-property property=xProp value=xValue/
/message-resources
MyOwnFactory extends PropertyMessageResourcesFactory
MyOwnFactory instansiates MyOwnMessageResources
MyOwnMessageResources extends
At 4:13 AM -0600 3/3/05, Eddie Bush wrote:
The redirect is your exact problem. Do something to stop the redirect
and you'll stop your problem.
Still, if there are no errors to display, then the headers shouldn't
display either. I have to run, so I may have scanned this too
superficially, but
Hi Eddie,
Thanks for your response. I understand what you're saying about the redirect,
however my primary confusion comes from the fact that html:errors/ is
printing out the error.header error.prefix error.suffix error.footer sequence
without any error messages (in the case of the exception
Thanks Joe, I thought it might be a bug, however I wanted more confirmation
before logging it. I'll log it in bugzilla.
Cheers
Adam
On Thu, 3 Mar 2005 09:18 pm, Joe Germuska wrote:
At 4:13 AM -0600 3/3/05, Eddie Bush wrote:
The redirect is your exact problem. Do something to stop the
I did this recently. I simply wrote a base action class which extends
the struts Action class. Here's the code snippet:
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
I have to say this is a much better approach than my implementation.
Good post.
Chris
-Original Message-
From: Antony Joseph [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 1:30 PM
To: Struts Users Mailing List
Subject: Re: Is there a way to auto-trim String properties in
I don't believe you can do this for a couple of reasons:
1) Although the DTD has a className attribute for the message-resources
element, nothing is actually done with it and so you can't actually
configure Struts to use your own custom MessageResourcesConfig
implementation. Take a look at
Is there any way in struts-config.xml to specify an Action that doesn't
require an ActionForm?
I have:
index.jsp - link to controller Action - decides which jsp to display
- start.jsp or stop.jsp
start.jsp and stop.jsp just have a form with a button that starts/stops
a service. So I don't
Just don't specify a form (i.e. no name=... attribute) in your action
mapping
action path=/Start type=org.test.Actions.Start
forward name=started path=/WEB-INF/jsp/controls/started.jsp /
/action
Niall
- Original Message -
From: Alistair Young [EMAIL PROTECTED]
To:
Does the mysite.globalerrors.database_config key exist in your application
resources?
Niall
- Original Message -
From: Adam Jenkins [EMAIL PROTECTED]
To: dev@struts.apache.org; user@struts.apache.org
Sent: Thursday, March 03, 2005 7:39 AM
Subject: direction of effort request please?
Hi,
In order to post xml content to Struts, such as an XML.../ string from
an IE data island JavaScript component, what kind of custom extensions to
Struts do I need, if any? The request content would consist of the mere
XML tag and the stuff within. The download e.g. GET part would seem easy,
I don't know how global exceptions work in struts-config, do they add a
key value to the Message. If so, what would it be? Sounds like an
exception/message is there but there is no matching description in the
resource files. If you can figure out the key that is added in that
case (put in a
In the page with the button are you using html:form ??? if so you MUST
have a form, you can get around this of course by not using html:form.
Al
-Original Message-
From: Alistair Young [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 03, 2005 7:49 AM
To: Struts Users Mailing List
ah, ok. Yes, I'm using html:form as I want a button rather than a
link. Is there any way I can get a button's onClick to load an Action
without an ActionForm?
thanks,
Alistair
On 3 Mar 2005, at 14:01, Fogleson, Allen wrote:
In the page with the button are you using html:form ??? if so you
MUST
Thanks David for the email.
A context-param is a top-level param (application scope) that allows one to
define application, not servlet scope params. Anyway, I will look at the
commons digester and see if that is an option.
Currently just FYI, context params are gotten via the
On Tue, 1 Mar 2005 17:48:40 -0500, Joe Hertz [EMAIL PROTECTED] wrote:
That is, usually you want the request to begin a transaction early
and either commit or rollback at the end.
Hmm... I was under the impression that you **always** want to begin
your transaction as late as possible, not early.
Hello,
I was reading from my O'Reilly struts book last night, and it has a section on
Reloading The Configuration Files pp 102. Because I am in development, I am
constantly updating the config file and I have to keep stopping and starting my
tomcat, I found the section interesting, but it
Did you get that in your JSP file? I found that if I use the html:form tag in
the jsp page in which I use that technique that it errors.
If that is the case, in the JSP page, just use the normal form name blah
and see if the error goes away.
Scott
-Original Message-
From:
http://www.onjava.com/lpt/a/5671
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
thanks Scott, that works but it sort of breaks the insulation of the
jsp from the site structure:
form action=Start.do
if Start.do ever moves then all the jsp will have to change.
This would be nice:
input type=button onClick=html:link forward=/Start.do / /
but you can't do that :(
cheers,
Yeap,
The same way you would with a form, just don't use html:form use
form
Al
-Original Message-
From: Alistair Young [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 03, 2005 8:06 AM
To: Struts Users Mailing List
Subject: Re: Action without ActionForm
ah, ok. Yes, I'm using
You can use html:rewrite - you can specify either a forward, action or
href.
Niall
- Original Message -
From: Alistair Young [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, March 03, 2005 2:39 PM
Subject: Re: Action without ActionForm
thanks
IIRC, doing something like...
htmlheadtitle/title
script
function sendXML() {
obj = new ActiveXObject(Microsoft.XMLHTTP);
obj.open(POST, http://www.nothing.com/page.do;, false);
obj.send(myXML);
}
/script
head
body
xml id=myXMLbooktitleMy
Book/titleauthorFrank/author/book/xml
Forgot the link...
You can use html:rewrite - you can specify either a forward, action or
href.
http://struts.apache.org/userGuide/struts-html.html#rewrite
Niall
- Original Message -
From: Alistair Young [EMAIL PROTECTED]
Sent: Thursday, March 03, 2005 2:39 PM
thanks Scott, that
Maybe .. how about using a bean of type DynaActionForm?. Therefore you can kind
of pretend you have a bean, but not really use the bean, and not really have a
class that you have to manage?
eg:
form-bean
name=foobar
type=org.apache.struts.action.DynaActionForm
/form-bean
So in your action,
I tried that but kept getting form not found error. Would you know,
must have been a typo coz it works now!
thanks,
Alistair
On 3 Mar 2005, at 14:49, Scott Purcell wrote:
Maybe .. how about using a bean of type DynaActionForm?. Therefore you
can kind of pretend you have a bean, but not really
Introscope from wily can keep an eye on such resources... (in fact lots of
resources)
but
it costs a few dollars ;-(
http://www.wilytech.com/solutions/products/Introscope.html
regards
Alexander
-Original Message-
From: Yves Sy [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 03, 2005
arrrgh! I'd actually forgotten the form-beans container! Yes, I can
now use a DynaActionForm dummy ActionForm!
many thanks for the suggestions, especially the html:rewrite - can use
that somewhere else.
Alistair
On 3 Mar 2005, at 14:55, Alistair Young wrote:
I tried that but kept getting form
Hello
On an error jsp page, i get from a bean a collection of messages send by the
process which lead to the error. One of the informations is the Throwable
which produced the error.
I want the jsp to show the stack trace. I tried to use
bean:write name=error property=throwable/
(which call
Konstantinos Provatas wrote:
I wanna ask if there exists some kind of tool/application that simulates user
traffic to a web site..
http://opensourcetesting.org/performance.php
We use Seige quite a lot, simple effective:-
http://www.joedog.org/
James.
http://www.onjava.com/pub/a/onjava/2005/03/02/commonchains.html
On Thu, 03 Mar 2005 08:31:37 -0600, NetSQL [EMAIL PROTECTED] wrote:
http://www.onjava.com/lpt/a/5671
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
David - I was going to give a run through on Shale at the Struts London
Meetup http://struts.meetup.com/4/ on the 15th I appreciate you may
not be able to make it but I'll post the sides up somewhere after the
event and push that into the Wiki.
Duncan Mills
http://www.groundside.com/blog
David
Check out JMeter: http://jakarta.apache.org/jmeter/
Great interface and extremely flexible.
Regards,
Thad Smith
-Original Message-
From: Konstantinos Provatas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005 3:17 PM
To: user@struts.apache.org
Subject: Any traffic
Folks,
I have a tricky little problem with Struts 1.1:
I have a form, on which there is a button that starts a wizard in a popup
modal dialog box.
The wizard behaviour depends on some of the values that have already been
entered in the parent form, and when it finishes the parent form is
Hey,
I'm having trouble getting Intelli j to find my struts jar. I've the jar
to the project class path but
!DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 1.1//EN
http://struts.apache.org/dtds/struts-config_1_1.dtd;
its not finding the
You have to associate the DTD's URL to a local copy of the file (or at
least that's how I do it). You can do this through the IDE Settings
(I think the location differs depending on which version you're
using). In this case, you'd map
http://struts.apache.org/dtds/struts-config_1_1.dtd; to the
yes, I get this all the time, it's an IntelliJ thing. Do this:
this is for a Mac, not sure about Windows:
Preferences - IDE Settings - Resources
add http://struts.apache.org/dtds/struts-config_1_1.dtd to the list of
Ignored Resources
Alistair
On 3 Mar 2005, at 16:18, Suzy Fynes wrote:
Hey,
I'm
Why do you choose to have it ignored? You can point it to an actual
copy of the DTD (which is provided in the Struts download) and you'd
get better XML support from IntelliJ, such as code completion and
checking for required values.
On Thu, 3 Mar 2005 16:25:06 +, Alistair Young
[EMAIL
I saw your reply too late Hubert - I'll do that instead! I usually
ignore as I don't have a copy of the resources.
Alistair
On 3 Mar 2005, at 16:30, Hubert Rabago wrote:
Why do you choose to have it ignored? You can point it to an actual
copy of the DTD (which is provided in the Struts
How do I map it?
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: 03 March 2005 16:23
To: Struts Users Mailing List
Subject: Re: struts and intelli j
You have to associate the DTD's URL to a local copy of the file (or at
least that's how I do it). You can do this
I know there have been a few Tiles related question recently, but
having read them I still can't figure out how to solve my problem.
At current I'm using:
tiles:insert component=/WEB-INF/pgs/msgs.jsp/
... within a few of my JSPs. The position of this component within
the document changes for
I think some scripting would be in order...
If I understand correctly... when the button on your parent form is
clicked, a modal dialog is opened and the URL you tell that dialog to
display is actually an Action that does some initialization. Is that
correct?
Assuming it is... what I would do
Great worked grand!
Thanks
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: 03 March 2005 16:23
To: Struts Users Mailing List
Subject: Re: struts and intelli j
You have to associate the DTD's URL to a local copy of the file (or at
least that's how I do it). You
Could the button on your parent submit the form to the backend with a new
popup windows defined as the target attribute (of the html form)? That way
your main form values are sent to the backend, but the results (i.e. your
wizard) is shown in the popup window.
Paul
-Original Message-
leonnewsgroup wrote:
Thanks for your reply.
It is better to use a delegate or a manage layer than use a Struts
Action class. And I want to make sure that when I implement the delegate or
manage layer, I shouldn't use J2EE instead of POJO, it is correct?
Tim
Well, a facade is supposed to be a
Frank,
Your understanding of my problem is spot on.
The first approach you suggest sounds good and appropriate - I will give it
a go.
Many thanks...
Adam
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: 03 March 2005 16:56
To: Struts Users Mailing List
Hi
I want to forward from an action to a url outside the application
I am having the followin entry at struts-config.xml
action path=/farmacy
type=gr.tera.teramobile.actions.FarmacyAction
forward name=success path=http://www.tera.gr/
/action
by i am getting the error
Sorry.
It is so simply i found it.
Jim Theodoridis wrote:
Hi
I want to forward from an action to a url outside the application
I am having the followin entry at struts-config.xml
action path=/farmacy
type=gr.tera.teramobile.actions.FarmacyAction
forward name=success
tell us more!
how did you do it?
-Original Message-
From: Jim Theodoridis [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 03, 2005 6:41 PM
To: Struts Users Mailing List
Subject: Re: How can I forward from an Action to a URL outside application
Sorry.
It is so simply i found it.
Jim
I have read the Validator User Guide as well as chapter 12 in Struts In
Action.
I am trying to get a validator to validate a date field with no success.
When I post the form with 02/30/2005 or 02/33/2005 or 02/30/xyz
it goes through without catching the bad date.
If however I do not put a 'name'
Scott,
I haven't looked at that section lately, but I would imagine you can handle
this by creating a separate action (e.g., ReloadAction) which just calls
the init method of the ActionServlet.
Whenever you'd like to reload the config file, then just go to the jsp that
you've mapped for
Sorry I meant attributes . How do I pass and get them
from struts?
--- [EMAIL PROTECTED] wrote:
If you mean HTTP request parameters, then they are
accessible from all JSP
pages included in a Tiles definition, since they
share the same HTTP
request.
But remember that it is not a good
Hello,
I posted this earlier today and could really use some help here. As I am
developing I have to keep stopping and re-starting my tomcat, and it is killing
me. I am on Tomcat 4.0xxx and don't have time to go to 5, where I think
individual web-apps can be restarted.
Anyway, if anyone knows
Yep, and it's loaded ok as you can see it in the toString on the errors
object:
And a tostring on org.apache.struts.action.ERROR =
{mysite.globalerrors.database_config=[mysite.globalerrors.database_config[T
h e
site is not configured correctly: Required database configuration data was
If you want the validator to pick it up based on the Form name (as opposed
to the Action Path name) you should use a ValidatorForm instead of a
ValidatorActionForm.
You might need to use datePatternStrict too. There's some (or used to be
anyway) some weirdness with the javascript not catching it
If you want the validator to pick it up based on the Form name (as opposed
to the Action Path name) you should use a ValidatorForm instead of a
ValidatorActionForm.
You might need to use datePatternStrict too. There's some (or used to be
anyway) some weirdness with the javascript not catching it
Thanks in advance for your help.
I need to build a web application for an old release of WebSphere
Application Server (3.5) which only covers servlet 2.2 and JSP 1.1
specification.
I read on the docs that Struts only needs servlet 2.2 specification,
but I wanted to ask anyway if there's any
Thanks for the info Jerry,
I get it ... but I am having trouble actually accomplishing this task. Since
the ActionServlet is a javax.http.servlet I am not sure how to call its its
init?
The class is org.apache.struts.action.ActionServlet but I am uncertain how to
init this thing?
Anyone have
I've never tried this, but... is it as simple as calling
getServlet().init() in your Action? getServlet() returns an instance of
the ActionServlet that is associated with the Action, and init() is
public, so...
Something though tells me this either (a) won't work at all or (b) is a
Very Bad
Scott,
This is a very interesting question:
I would start off with a new action, e.g., ReloadAction:
# # #
package com.what.ever.reload;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import
Well that's a good point. I was using a looser definition of facade.
Erik
N G wrote:
On Thu, 03 Mar 2005 12:03:27 -0500, Erik Weber [EMAIL PROTECTED] wrote:
Well, a facade is supposed to be a black box, so you shouldn't have to,
for example, do an EJB lookup, to use the facade. It's supposed to
I would like the value of the button to be the
value of the tag. Can this be done? It reads it as text using the
single quotes. Thanks
Scott
td width="50%" align="center"
nested:root name="downloadInfo"
html:submit property="productName" value='nested:write
property="name" /' /
Hello,
I am having trouble creating the client-side JavaScript for a custom
validator. Basically, the validator checks if the user input matches
one of a set of 3 strings. I've written the server-side code but need
help with the JavaScript.
I have looked at the standard validator-rules.xml
On Thu, 03 Mar 2005 12:03:27 -0500, Erik Weber [EMAIL PROTECTED] wrote:
Well, a facade is supposed to be a black box, so you shouldn't have to,
for example, do an EJB lookup, to use the facade. It's supposed to be
easily accessible from any implementations of the next higher layer (in
other
I am using struts 1.2.4 I created a new custom validation method in a
validator class. I added a new validation rule to the validator-rules.xml file
and new validation definitions to the validation.xml file. I get the following
error when the custome validation method is called. When I tried to
do this instead:
td width=50% align=center
html:submit property=productName value=${downloadInfo.name} /
_
From: Burns, Scott [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 03, 2005 8:11 PM
To: Struts Users Mailing List
Subject: how to use tag value for another tag's value
I would
Hello,
All has been going well in my Struts app, then I ran into an issue dealing with
a popup window.
I am popping up a little window 500 x 300 and showing a upload File box. But
when I submit the form, I get all kinds of BEAN errors in the log file?
I do not see what is different
From: Scott Purcell [EMAIL PROTECTED]
I am popping up a little window 500 x 300 and showing a upload File box.
But when I submit the form, I get all kinds of BEAN errors in the log
file?
I do not see what is different between popup window and a normal main
window?
It's a separate request.
Showing whats stored under the errors key proves nothing - its actually the
html:errors tag that loads the message from the message resources. What
you see under the errors key is an ActionMessages object which contains an
ActionMessage. ActionMessage contains the key to the message in the message
It looks like to me that the Validator is not finding your method
definition. Recheck the declaration in the validator-rules.xml file.
The signature and class name there must match your actual class and
method exactly.
On 2005-03-03 14:28:52 -0500, Sivakumar Santharam [EMAIL PROTECTED] said:
I
This action went in Struts 1.2 and I never found a replacement. Any ideas
anyone?
-Original Message-
From: Jerry Tan [mailto:[EMAIL PROTECTED]
Sent: 03 March 2005 18:02
To: Struts Users Mailing List
Subject: Re: Reloading Configuration File
Scott,
I haven't looked at that section
I think the variable (msgs) needs to be passed through by the layout
page. I think this allows the other JSP inserted the same layout page
to access the variable.
I could easily be wrong about that but hopefully someone with more
Tiles knowledge than me can prove me right / wrong
Tim
Bill Siggelkow billsigg at bellsouth.net writes:
It looks like to me that the Validator is not finding your method
definition. Recheck the declaration in the validator-rules.xml file.
The signature and class name there must match your actual class and
method exactly.
On 2005-03-03
From: Mark Benussi [EMAIL PROTECTED]
This action went in Struts 1.2 and I never found a replacement.
Any ideas anyone?
I'm not entirely sure what you're asking. The discussion you quoted seems
to start from a false premise: that you have to stop and start Tomcat to
get config changes to take
The validation method signatures in Struts 1.2 changed from ActionErrors to
ActionMessages, but it looks like you're trying to use a Struts 1.1 format
method with Struts 1.2.
Try changing your method signature to use ActionMessages.
Niall
- Original Message -
From: Sivakumar Santharam
Geez, thanks Niall. I've been posting custom validation examples that
wouldn't work with 1.2 and didn't realize it. Please let me know if
there are any other significant validator plugin changes from 1.1 to 1.2.
Erik
Niall Pemberton wrote:
The validation method signatures in Struts 1.2 changed
Probably the best place to look is the upgrade notes page in the wiki.
Unfortunately this issue wasn't on it, so I've just added a note about it.
http://wiki.apache.org/struts/StrutsUpgradeNotes11to124
Niall
- Original Message -
From: Erik Weber [EMAIL PROTECTED]
Sent: Thursday, March
We are kind of middle of deciding go to with which framework.Can some one help.
On high level, we have an application where data gets from webservices and is
displayed to user thru JSP. the webservices access is done thru Axis and the
proxy class generated are used on JSP side. Each proxy
Ben,
Why not put msgs in your main template but leave it equal to the value .
That way, nothing will show up in the main template but when you extend it
and change the msgs component depending on what you need to display in
that location of your output. You would end up with something like this:
What is the preferred way to obtain errors on a
ValidatorForm now that ActionErrors is mostly
deprecated?
Is there a better way to do this:
ActionErrors errors = myForm.validate(mapping,
request);
if(!errors.isEmpty()) {
saveErrors(request, errors);
On 2005-03-03 17:51:36 -0500, Wendy Smoak [EMAIL PROTECTED] said:
From: Mark Benussi [EMAIL PROTECTED]
This action went in Struts 1.2 and I never found a replacement.
Any ideas anyone?
I'm not entirely sure what you're asking. The discussion you quoted seems
to start from a false premise: that
On 2005-03-03 21:31:43 -0500, Paul Tomsic [EMAIL PROTECTED] said:
What is the preferred way to obtain errors on a
ValidatorForm now that ActionErrors is mostly
deprecated?
Is there a better way to do this:
ActionErrors errors = myForm.validate(mapping,
request);
hmmm, are you saying that I should just wait until a
solution comes along?
Not sure I'm understanding.
How would you fix the deprecation problem in my
situation?
--- Bill Siggelkow [EMAIL PROTECTED] wrote:
On 2005-03-03 21:31:43 -0500, Paul Tomsic
[EMAIL PROTECTED] said:
What is the
87 matches
Mail list logo