Should Action or ActionForm be accessing business delegates?

2004-03-02 Thread Barnett, Brian W.
The reading I've done suggested that one of the Action class's primary responsibilities was to access the business layer. Then today I was looking at the core j2ee patterns and it showed the View Helper accessing the business layer. I associated (maybe mistakenly) the View Helper pattern with the

RE: OT - java.sun.com is not accecsible

2004-03-02 Thread Barnett, Brian W.
I can access it. -Original Message- From: Ramachandiran, Karuna [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 2:03 PM To: Struts Users Mailing List Subject: OT - java.sun.com is not accecsible Hello guys-, Does anybody noticed and know why java.sun.com is not

RE: Validator and DispatchAction

2004-02-18 Thread Barnett, Brian W.
Set validate=false in your action mapping in struts-config. This tells the struts framework not to call validate. Then in your action class you can call validate where appropriate, i.e., the *save* method. -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: Role based access?

2004-02-18 Thread Barnett, Brian W.
Another option I believe is to let the j2ee container handle security. I'm not up on all the jargon, but I'm using roles and form-based security. Here are some code snippets from some relevant files: web.xml snippet: security-constraint web-resource-collection

Could not find resource error

2004-02-17 Thread Barnett, Brian W.
Can't figure out why this code is giving me an error: import java.io.Reader; import com.ibatis.common.resources.Resources; Reader reader = Resources.getResourceAsReader(properties/sql-map-config.xml); The error I'm getting is: java.io.IOException: Could not find resource

RE: Could not find resource error

2004-02-17 Thread Barnett, Brian W.
: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 10:26 AM To: 'Struts Users Mailing List' Subject: RE: Could not find resource error And this is struts related how? -Original Message- From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 17:22

RE: [OT] - Request against Session

2004-02-11 Thread Barnett, Brian W.
When a browser first requests a page from a web server, the session is created, so as Wendy said, it's always there. The creation of the session has nothing to do with whether the user is authenticated/logged in or not. This is the way I understand it. If you are set on using hidden variables

RE: Validation And JavaScript Problem

2004-02-04 Thread Barnett, Brian W.
Make sure the form names match in your jsp and the validation.xml file. validation.xml ... form name=myFormBean ... your.jsp ... html:javascript formName = myFormBean/ ... Brian Barnett -Original Message- From: Ciaran Hanley [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04,

RE: Validation And JavaScript Problem

2004-02-04 Thread Barnett, Brian W.
--typo on last post (removed space)-- html:javascript formName = myFormBean/ -Original Message- From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 4:10 PM To: 'Struts Users Mailing List' Subject: RE: Validation And JavaScript Problem Make sure the form

RE: Validation problem

2004-01-29 Thread Barnett, Brian W.
The Struts Validator provides a mechanism to deal with Cancel buttons. A flag is set in the onclick method for the cancel button in the jsp page. The validate methods check this flag and if it is set, they skip validation and just return true. html:cancel onclick=bCancel=true; If you're not

RE: Action mappings

2004-01-27 Thread Barnett, Brian W.
What is the error when it errors out? -Original Message- From: struts fox [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 12:45 PM To: [EMAIL PROTECTED] Subject: Action mappings I t seems Struts lets you use action mappings that it figures out and forwards for you, but I have

RE: form validation question

2004-01-27 Thread Barnett, Brian W.
Your orderForm does extend ValidatorForm instead of ActionForm right? The struts validator plug-in relies on your forms extending ValidatorForm in order to do server-side validations. Out of curiosity, you may want to see if client-side validation works first. html:form action=SubmitOrder.do

RE: Problems Redirecting To Input Page After Vaildation Fails

2004-01-27 Thread Barnett, Brian W.
Personally, I would try to use the same page for add, update and delete, which would solve this problem. If this is not an option for you, you may have to deal with it in ClientAction. Remove the input attribute from your action mapping, add validate=false, and add a couple of forward elements.

RE: [OT] jPowered chart example in Struts

2004-01-26 Thread Barnett, Brian W.
in Struts Brian I can see what you mean. When I click on jPowered's Charting and Graphing Server I get sent to oblivion I would recommend trying http://www.chartfx.com/SFXJavaProducts/CfxforJava/ (It works) Best Regards, Martin Gainty 617-852-7822 - Original Message - From: Barnett, Brian W

[OT] jPowered chart example in Struts

2004-01-24 Thread Barnett, Brian W.
If anyone has implemented jPowered charts in their Struts web app, would you mind sharing some snippets of code from the various affected files on how you got it setup and implemented? Thanks! Brian Barnett - To unsubscribe,

RE: Chart generation Framework

2004-01-20 Thread Barnett, Brian W.
I recently did a little research on charting tools. I went through the cewolf tutorial, http://cewolf.sourceforge.net/, and in the end, got stuck on a type library problem. This is probably due to my lack of experience with Struts/JSP. I can't remember the exact error message I kept getting.

Tag library versioning

2004-01-13 Thread Barnett, Brian W.
I'm a little confused on how tab library versioning works. When I run my Struts web app, the resin console fills up with SAXCompileExceptions, complaining about jsp-version is an unexpected element and short-name is expected, etc., etc. My app seems to run fine, but I'd like to resolve this issue.