One of the best regex resources are the PERL man-pages:
http://www.perldoc.com/perl5.8.0/pod/perlre.html
Jason
-Original Message-
From: Greg Dunn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 7:28 AM
To: Struts Users Mailing List
Subject: RE: Struts Validator 4 digit
/
/html:select
My example may not work as posted above because I have removed some lines of code for
easier reading, but you should be able to get the gist of it.
Jason Rosen
-Original Message-
From: Andy Kriger [mailto:akriger;greaterthanone.com]
Sent: Thursday, November 07, 2002 9:02 AM
Alternatively, implement the PlugIn interface to initiate and destroy your
model factories, this way it's more of a Struts optional extension that can
re-used.
Jason
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 4:49 AM
To: 'Struts
the Action to do additional processing
before throwing an Exception or in a custom ExceptionHandler.
Jason Rosen
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 9:53 AM
To: [EMAIL PROTECTED]
Subject: Struts Declarative Exceptions Questions
I use similar Ant tasks using 4.0 with the Ant (HTTP) get/ task and
pointing at the manager app.
get
src=${appserver.mgrAppURL}/install?path=${appserver.deploy}amp;war=file://
${dir.appserver.webapp}
dest=${dir.deploy.log}/deploy.log/
Jason
-Original Message-
From: Eddie Bush
Sean,
Have your login action set a boolean form bean property like enableUI =
false and have your password.jsp use a logic:equal block to encapsulate
the optional navigation and test enableUI for equal to true. This way if
enableUI = false (as the login action would set), the page navigation is
Michael,
You could use the Apache Jarkarta Commons Digester (the same API that Struts
uses to read in struts-config.xml) to read in an XML document into
JavaBeans.
Jason
-Original Message-
From: Day, Michael-IBM/TT [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 10:49
Nice pun, Mark.
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 3:23 PM
To: 'Struts Users Mailing List'
Subject: RE: Image and properties file question
Put the images directory off the root and you won't have any relativity
The MS one is the Microsoft Web Application Stress Tool - not bad for
client side simulation load testing.
http://webtool.rte.microsoft.com/
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 9:03 AM
To: Struts Users List
Subject: [OT]
James,
Sounds like you did some nice work with the DBMessageResources - I can't
wait to use it!
Jason
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 1:04 PM
To: Struts Users Mailing List
Subject: RE: Servlte-level Resource Files
Rainer,
Chris wasn't saying that Action extends HttpServlet, he was letting you know
that a method called getServlet() exists in Action that will get you the
reference to the Servlet associated with the Action (the ActionServlet).
Check out the javadocs for Action and you will see what he
James,
I was just taking a look at ActionServlet.initApplicationMessageResources()
and noticed that the ActionServlet takes care of instantiating each
MessageResources implementation for each subapp. I don't think the
MessageResource or MessageResourceFactory implementations need to worry
about
a custom Struts ExceptionHandler to
deal with the map or something.
Jason Rosen
-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 8:41 AM
To: 'Struts Users Mailing List'
Subject: RE: how to return errors from Model component
Hi Donald
know, if
you can I would like to know 'cause I need to do it:))
Just trying to help,
Jason Rosen
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 2:01 PM
To: Struts Users Mailing List
Subject: Re: DBMessageResources status and questions
James
I think a utility to generate SQL from existing bundles is a good plan - I
wouldn't mind taking on that task.
Jason Rosen
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 1:27 PM
To: Struts Users Mailing List
Subject: RE
-Original Message-
From: V. Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 6:48 AM
To: [EMAIL PROTECTED]
Subject: Re: Tree Folder navigation
Regardles I will be writing a tree that talks to some kind of a bean. (looks
like 3 people doing similar, if we can
I have 1 design request/comment [bold of me since I am not contributing:)]
Please make the tag dynabeans aware.
Thanks,
Jason
-Original Message-
From: V. Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 6:48 AM
To: [EMAIL PROTECTED]
Subject: Re: Tree Folder
You can use the processActionForward method of the RequestProcessor:
processActionForward(request, response, (ActionForward)
appConfig.findForwardConfig(myForward));
-Original Message-
From: Chen, Dean (Zhun) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 9:51 AM
To:
in processPreprocess
method,
but how can you be sure that the user will pass through the RequestProcessor
?
Each JSP page must be associated to an action, isn't it ?
-Original Message-
From: Jason Rosen [mailto:[EMAIL PROTECTED]]
Sent: 04 September 2002 19:05
To: 'Struts Users Mailing List'
Subject: RE
Naveen,
I have the same problem currently, luckilly it does not greatly impact my
application at runtime (more painful for developing because I am forced to
restart Tomcat everytime I want to restart my app).
Your issue with reloading a servlet context that uses JNI calls is addressed
by
Isn't dynamic loading of message resources at least half the reason that
people are interested in using a DB to host them? I know that is a big
factor in my motivation.
-Original Message-
From: Peter A. J. Pilgrim [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 02, 2002 4:53 PM
To:
I assume you are using Struts (although there is no mention of it in your
post). You could subclass the RequestProcessor and have the
processPreprocess method check your request and setup the session for you.
In Struts 1.1 the RequestProcessor intercepts all requests before they are
dished off
I created a Plug-in to initialize a connection to a proprietary Data Access
layer for a CRM package I have to use. On initialization, my Plug-in just
creates a connection to my datasource (using the CRM package's Java API) and
stashes a reference to the connection in the ServletContext. Then I
If you decide to start developing a DB MessageResouces implementation, I
would like to contribute - this is functionality I need as well and have
thought about taking on. Let me know if you need/want any help.
Jason
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
I was actually hoping to have it implemented where the entire store would be
able to be updated on-the-fly and not have the application cache it on
initialization. I would at least think that the MessageResources or
MessageResourceFactory implementation would have a reload() method so the
entire
The Locale inheritance functionality Craig is referring to is implemented in
PropertyMessageResources.getMessage(Locale locale, String key).
If all MessageResource implementations are expected to use this logic for
finding keys by Locale, maybe it should be documented in the
MessageResources
You mentioned that you needed to use username for Tomcat's JDBC realm, but
you could use the artificial key user_id in table user_role_xref and create
a view for Tomcat to use that joins tables users and user_role_xref on
user_id.
I prefer using artificial keys for tables that may have the
I agree to not using MySQL until it can do views - I use PostgreSQL right
now for my OpenSource DB needs.
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 11:54 AM
To: Struts Users Mailing List
Subject: RE: user accounts question
not selling your web app. as a product to a
customer who wants, for instance, to use Oracle as their DB. :) Web app.
*products* must aim for maximum flexibility with the DB because of customer
issues like these.
-Original Message-
From: Jason Rosen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday
Dan's diagram actually (and correctly) denotes that there is one ActionForm
instantiated per request or session (depending on the scope it is configured
for in the ActionMapping). The same ActionForm class can be configured for
multiple Actions via the ActionMapping, as you stated, but the
-Original Message-
From: Dan Cancro [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 9:24 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts Community is going crazy! :-))
I'm so happy you found it useful. Good catch about the ActionForm. I
thought about that and added
. The Action class for instance has a one per action colour.
Perhaps I am wrong in my interpretation but what I was stating was that it
was ambiguous and could
be interpretted in more ways than one
Alex
--- Jason Rosen [EMAIL PROTECTED] wrote: Dan's diagram actually (and
correctly) denotes
That is a great diagram! I like the color-coding and best-practices of
where to implement specific types of functionality. Great Job!!
Jason
-Original Message-
From: Dan Cancro [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 10:17 AM
To: 'Struts Users Mailing List'
Subject:
If you are looking to catch the session timeout, then you could implement
HttpSessionBindingListener and wrap your session in it. When the session
expires, the HttpSessionBindingListener can execute some code. For example,
if you need to log a user out of a database or other network resource
I don't know much about Eclipse, but I use an Ant task that uses the Tomcat
manager app to reload my web app after I deploy it. I also compile, build,
and deploy my web app from Ant, which allows me to run a single task that
takes care of everything at once at the click of a button: compile,
Hi,
Role validation is already implemented in the RequestProcessor portion of
the Controller via the RequestProcessor.processRoles method.
Take a look at the processRoles code (great thing about OpenSource), but in
a nutshell:
processRoles
1. checks the ActionMapping to see if roles are
You may want to try using a Java profiler to see what objects you have
instatiated at a given time and how much memory each uses. You may be able
to find objects that still have references (not available for garbage
collection), but are no longer
used by your app, thus hogging memory and
I implemented a Struts controlled authentication mechanism because I needed
a custom authentication routine not
already available via any servlet container. In addition, because there is
no standard for implementing custom
container-based authentication (different API's in every container) and I
I would like to know the best way to forward to an action from within
RequestProcessor.processPreprocess
In my application, I would like to have a custom RequestProcessor that
checks some HttpSession attributes
before the requested Action is passed control. If the HttpSession attribute
is in a
39 matches
Mail list logo