Question on struts-chain

2004-09-15 Thread Sean Schofield
I've been taking a look at the new struts-chain in the contrib section. It looks intriguing but I can't quite figure out what its for and how I might use it. It seems like it will ultimately provide a replacement for RequestProcessor by decomposing this functionality into several linked comma

Re: Question on struts-chain

2004-09-15 Thread Sean Schofield
Exactly. It really changes the way you design your application, and I think in a great way. It would be great to get more people using it to help flush out any remaining problems with it. That's kind of what I gathered. This could potentially be a really big change in the way Struts applica

Re: Question on struts-chain

2004-09-15 Thread Sean Schofield
Yes, but I think it brings a lot more to the table. For example, Action inheritance chains would be a thing of the past. Any common code could be changed into a command and placed in the chain. Yes this will definitely be nice. I don't currently do a lot of this now but I could see how it c

Re: Question on struts-chain

2004-09-15 Thread Sean Schofield
The best part for developers is commands are very easy to write, and can be easily unit tested. I'm assuming then that your thinking about replacing most of your Actions with Commands and the commands would work with POJO's in your Context right? Would you use a facade as well or would you t

Idea for chain and DB transactions

2004-09-17 Thread Sean Schofield
I have a problem and a proposed solution. I would greatly appreciate any feedback about the proposed solution. Problem: === I'm currently using a Struts application with a connection pool (using DBCP as supplied by Tomat). When a database update is needed, the Struts actions will call the

Re: Idea for chain and DB transactions

2004-09-17 Thread Sean Schofield
in your service layer object. Erik Sean Schofield wrote: I have a problem and a proposed solution. I would greatly appreciate any feedback about the proposed solution. Problem: === I'm currently using a Struts application with a connection pool (using DBCP as supplied by Tomat). Wh

Re: Idea for chain and DB transactions

2004-09-17 Thread Sean Schofield
om ThreadLocal. It has worked for a couple years now, but its not that clean or elegant. That's why I was so excited to read about Spring and IoC. It does all that stuff for you. robert -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Friday, September 17, 200

Re: Idea for chain and DB transactions

2004-09-18 Thread Sean Schofield
Exception { Connection conn = (Connection) context.get("connection"); ... use the connection to perform database transactions ... } Using this design, you don't have to worry about external storage of the allocated resources -- just store them under a well known attribute

[site] Typo in announcement

2004-09-20 Thread Sean Schofield
The latest announcement on the struts site has a typo. The date of the announcement reads 19 Sep 2003 (instead of 2004). No big deal but thought I would mention it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

[tiles] Potential bug with InsertTag

2004-09-20 Thread Sean Schofield
Now that I've upgraded to Struts 1.2, I've noticed a difference in how my application is handled. It seems that I can no longer redirect to an error page when there is a bug in the JSP. I used to get the Tomcat 500 error page but its no longer coming up. I also get an error logged to the co

Re: Path .frame.content Does Not Start With a "/" Character

2004-09-22 Thread Sean Schofield
I think the problem is that you do not have the tile mentioned anywhere in your struts config. Try creating a global forward like this: Then I believe you will be able to refer to it as your input attribute for validation. HTH, sean - Original Message - From: "Terry Roe" <[EMAI

Re: Struts version 1.2.2 and Tomcat 4.1

2004-09-23 Thread Sean Schofield
FYI: I was able to run both 1.2.2. and 1.2.4 on Tomcat 4.1 with no problems. I'd take Jame's advice though and upgrade to 1.2.4 just to be safe. sean James Mitchell wrote: There were several issues with the 1.2.2 build. Please try it with 1.2.4 -- James Mitchell Software Engineer / Open Sour

Re: Struts version 1.2.2 and Tomcat 4.1

2004-09-23 Thread Sean Schofield
Well, you never really specified what the specific problem you were having was. Have you ever gotten any version of Struts working with Tomcat before or this your first attempt? If you never gotten any version of Struts to work before, then my guess would be there is something wrong with how

Re: Storing User in Session

2004-09-23 Thread Sean Schofield
Tom, I would recommend storing the user information in the session (I use POJO's) as you have suggested. Then you can access it from the session to preopulate the form. Your approach sounds correct. We're storing user information in the session on our project because its constantly being used

Re: Storing User in Session

2004-09-23 Thread Sean Schofield
Sounds good. I don't think you need to worry too much about the overhead of storing the user in the session though. It really shouldn't be that much for the server to handle. You are most likely already experiencing the overhead of maintaining a session (for forms with session level scope,

JSF and Struts Integration

2004-10-12 Thread Sean Schofield
I have been doing some reading recently on JSF and I have a few comments and questions. At first I thought JSF would focus mostly on the "V" in MVC. But after doing some reading on this, it seems like JSF really provides the "M" and "C" as well. Is this accurate? It seems possible to combine

Re: JSF and Struts Integration

2004-10-12 Thread Sean Schofield
Hubert Rabago wrote: Yes. Some even believe the navigation rules of JSF is easier to understand than those of Struts. I haven't finished exploring all of the nav features of JSF, but I tend to agree with this comment. Navigation seems to me to be one of the more awkward aspects of Struts. I

JSF and Struts Together (Easiest possible way)

2004-10-12 Thread Sean Schofield
I am wondering how easy it would be to setup an application that uses both JSF and Struts. If I'm not interested in having either framework communicate with each other, do I even need struts-faces? In other words if I want part of the application to use '.faces' and be handled exclusively by

Re: JSF and Struts Together (Easiest possible way)

2004-10-13 Thread Sean Schofield
Craig McClanahan wrote: Yes, this would "just work". But it leads to the worst case scenario discussed earlier on the mail thread, where half your navigation is in faces-config.xml and the other half is in struts-config.xml. I wouldn't recommend it as either a migration strategy or as a new devel

Re: JSF and Struts Integration

2004-10-13 Thread Sean Schofield
Craig McClanahan wrote: The *standard* UI components weren't meant to be compelling -- they were meant to give people an opportunity to actually explore the APIs without having anything except a JSF implementation. Fair enough. By the way, I'm not bagging on the UI components in any way. The

Re: Back Button Error

2004-10-13 Thread Sean Schofield
How did you originally get to the page you are trying to get back to? It sounds like you are doing an HTML POST. I believe this is standard behavior in IE when you POST something. IE is trying to tell you that the only way it can reproduce the page is to repost the same data that generated i

Re: The best pratice to developer a login system

2004-09-30 Thread Sean Schofield
J2EE provides some good security options out of the box. I would look into security constraints. Sun has a nice tutorial: http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Security.html Sean Gabriel França Campolina wrote: Hi folks, I never developed a login system,and I'm need developer this now w

Re: Reusing methods across actions classes

2004-09-30 Thread Sean Schofield
It may also depend on what kind of code you are trying to reuse. If its something that is action-related (populating a form, etc.) then I would agree with Danilo's answer. If on the other hand, the code is related to business logic that is really independent of the struts portion, then I would

Re: Session authentication - Struts or ServletFilter

2004-10-07 Thread Sean Schofield
You cannot map 100% of your web application (as it seems your are doing) to the filter, because the login page you are redirecting to would itself require login. Also, your 404 mentions /do/processLogin but your filter is redirecting to /login.jsp. I'm a bit confused by that. Maybe if you co

[struts-chain] Anyone get Tiles working with the chain?

2004-10-19 Thread Sean Schofield
I am having trouble getting a basic layout to work with the struts-chain. I'm using the o.a.s.c.legacy.TilesPlugin along with ComposableRequestProcessor. I'm also using an unaltered version of chaing-config.xml that came with the contrib section. I get an error saying 'default.view' does not sta

Re: [struts-chain] Anyone get Tiles working with the chain?

2004-10-19 Thread Sean Schofield
default. It also makes a difference where in the chain you put it. I tried at the beginning and that did not work. After noticing the source code was looking for a ForwardConfig, I moved it to second to last (just before the PerformForward command.) sean On Tue, 19 Oct 2004 15:43:39 -0400, Sean

[struts-faces][struts-chain] Tiles and faces integration question

2004-10-19 Thread Sean Schofield
I am trying to get struts and jsf to play nice with each other. Right now, my only requirements are to have tiles supported. Most everything else will be handled through JSF. I have looked at the struts-faces package, but most of it seems to be overkill for what I want. I would like to use stru

Re: [struts-faces][struts-chain] Tiles and faces integration question

2004-10-20 Thread Sean Schofield
Mark, Thanks for the info. Any info at this stage may prove helpful so its appreciated. I made some progress that I wanted to share with you (and the rest of the mailing list.) I took a look at the lastest source code for struts-faces and noticed some new stuff. Craig has a ViewHandlerImpl cla

Re: Getting DataSource from non-Struts class

2004-10-20 Thread Sean Schofield
I agree with this. We use Tomcat to set up the connection pool and reference it in our Struts apps as Craig suggests above. Take a look at the Tomcat documentation, there is quite a bit on JNDI and datasources. Good luck, sean On Wed, 20 Oct 2004 11:00:11 -0700, Craig McClanahan <[EMAIL PROTEC

Re: Opinion needed on a Design issue

2004-10-20 Thread Sean Schofield
The idea would be to use BusinessDelegate to decouple your business logic from the web-tier. Use your struts Actions to get stuff out the request, session, etc. Then pass plain old java objects (POJOs) to the methods of your BusinessDelegate. This way the business logic inside is not dependent o

Re: Tiles Question

2004-10-21 Thread Sean Schofield
> - Root Cause - > java.lang.NoSuchMethodError: > org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Level;Ljav > a/lang/Object;Ljava/lang/Throwable;)V >at > org.apache.commons.logging.impl.Log4JCategoryLog.trace(Log4JCategoryLog.java > :77) >at > org.apache

Re: [struts-faces][struts-chain] Tiles and faces integration question

2004-10-21 Thread Sean Schofield
For those interested in the code: http://issues.apache.org/bugzilla/show_bug.cgi?id=31842 sean On Wed, 20 Oct 2004 10:52:27 -0400, Sean Schofield <[EMAIL PROTECTED]> wrote: > Mark, > > Thanks for the info. Any info at this stage may prove helpful so its > appreciated. I

[shale] Design question involving ViewController

2006-06-17 Thread Sean Schofield
I am writing an application that is using MyFaces tree2 to allow the user to navigate to a more detailed view of the item they click on. I just wanted some feedback on the following strategy: The node in the tree has an action method that puts the selected node's id into the request as a paramet