RE: Struts Validator 4 digit numeric

2002-11-27 Thread Jason Rosen
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

RE: form component reuse best practices?

2002-11-07 Thread Jason Rosen
/ /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

RE: Question: Clean shutdown of application scope objects

2002-09-23 Thread Jason Rosen
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

RE: Struts Declarative Exceptions Questions

2002-09-17 Thread Jason Rosen
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

RE: Reloading struts-config.xml

2002-09-12 Thread Jason Rosen
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

RE: Disable Navigation

2002-09-12 Thread Jason Rosen
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

RE: [OT] XML Configuration Files

2002-09-11 Thread Jason Rosen
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

RE: Image and properties file question

2002-09-11 Thread Jason Rosen
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

RE: [OT] Load-Testing

2002-09-10 Thread Jason Rosen
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]

RE: Servlte-level Resource Files

2002-09-10 Thread Jason Rosen
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

RE: ServletContext in a Action

2002-09-09 Thread Jason Rosen
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

RE: DBMessageResources status and questions

2002-09-06 Thread Jason Rosen
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

RE: how to return errors from Model component

2002-09-06 Thread Jason Rosen
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

RE: DBMessageResources status and questions

2002-09-06 Thread Jason Rosen
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

RE: DBMessageResources status and questions

2002-09-06 Thread Jason Rosen
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

RE: Tree Folder navigation

2002-09-04 Thread Jason Rosen
-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

RE: Tree Folder navigation

2002-09-04 Thread Jason Rosen
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

RE: processPreprocess ActionForward

2002-09-04 Thread Jason Rosen
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:

RE: processPreprocess ActionForward

2002-09-04 Thread Jason Rosen
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

RE: A JNI help - System LoadLibrary problem

2002-09-04 Thread Jason Rosen
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

RE: [New Functionality] ApplicationResources.properties to DB?

2002-09-03 Thread Jason Rosen
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:

RE: [Core] Setup globals per new session

2002-08-30 Thread Jason Rosen
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

RE: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up)

2002-08-30 Thread Jason Rosen
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

RE: ApplicationResources.properties to DB?

2002-08-29 Thread Jason Rosen
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]]

RE: [New Functionality] ApplicationResources.properties to DB?

2002-08-29 Thread Jason Rosen
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

RE: [New Functionality] ApplicationResources.properties to DB?

2002-08-29 Thread Jason Rosen
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

RE: user accounts question

2002-08-27 Thread Jason Rosen
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

RE: user accounts question

2002-08-27 Thread Jason Rosen
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

RE: user accounts question

2002-08-27 Thread Jason Rosen
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

RE: Struts Community is going crazy! :-))

2002-08-20 Thread Jason Rosen
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

RE: Struts Community is going crazy! :-))

2002-08-20 Thread Jason Rosen
-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

RE: Struts Community is going crazy! :-))

2002-08-20 Thread Jason Rosen
. 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

RE: Struts Community is going crazy! :-))

2002-08-19 Thread Jason Rosen
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:

RE: Exception Handling

2002-08-19 Thread Jason Rosen
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

RE: Debug Struts in Tomcat

2002-07-16 Thread Jason Rosen
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,

RE: Authentication, Authorization in Struts 1.1

2002-07-16 Thread Jason Rosen
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

RE: can i create a tree structure using struts????

2002-07-10 Thread Jason Rosen
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

RE: container managed security

2002-07-09 Thread Jason Rosen
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

RequestProcessor and forwarding to an Action

2002-06-27 Thread Jason Rosen
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