binary view

2005-04-18 Thread Daniel Watrous
I have an action in my application that generates a PNG image from some text stored in a session object. My view is very simple: <[EMAIL PROTECTED] contentType="image/png"%> <% java.io.OutputStream os = response.getOutputStream(); java.awt.image.BufferedImage buffer = (java.awt.image.BufferedImag

Hibernate Struts Example

2005-03-07 Thread Daniel Watrous
I have written a very simple shopcart application using Struts and Hibernate. I looked quite a bit for a decent tutorial and example but found nothing, so I put this together. For anyone else wondering how to integrate Hibernate and Struts, here is an example: http://www.simplecart.org The source

Re: Can forms inherit from other forms

2005-02-10 Thread Daniel Watrous
I'm not sure if I gather exactly what you are trying to do. I have a set of classes (Party which is inherited by Person, Family, Organization, etc.) and in general they share the same fields. I am using validation. I chose to write one PartyForm that extends ValidatorActionForm. This way I c

Re: Hibernate object relational mapping

2005-02-10 Thread Daniel Watrous
Hibernate 3 (now in beta) will support stored procedures. I think they may even be available in the current 2.x branch. DW - Original Message - From: "Brian McGovern" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" ; "Soaring Eagle" <[EMAIL PROTECTED]> Sent: Thursday, February 10,

Re: Hibernate object relational mapping

2005-02-10 Thread Daniel Watrous
Brian, I use hibernate for a couple of reasons, some of which have already been mentioned. In some cases using hibernates sophisticated caching system can greatly improve the speed of an application. I have also found that the more I can think about the OBJECTS in my application without the co

Re: URL pattern for validation

2005-02-09 Thread Daniel Watrous
I have found that the only url that passes validation in the struts package is a url that references a specific page. For example http://www.maintainfit.com/ will not pass but http://www.maintainfit.com/index.php will pass. I suspected that the nofragments set to false would allow the first u

URL pattern for validation

2005-02-09 Thread Daniel Watrous
Hello, I am trying to use the URL validation for a form in my application. It always fails and so I'm not sure that I understand what it expects to see. In my validation.xml I have the following: allowallschemes

Re: Trouble with DispatchAction and ValidatorActionForm

2005-02-09 Thread Daniel Watrous
- From: "Daniel Watrous" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, February 08, 2005 3:37 PM Subject: Re: Trouble with DispatchAction and ValidatorActionForm Thanks for the advice! I have enabled debug and found as you suggested these lines at the

Re: Can't put scriptlet into onmouseover

2005-02-08 Thread Daniel Watrous
Neil, It seems that the approach to take would be to modify (or replace through inheritance) the link tag. This way you could eliminate the scriplet in your page and centralize your management of images too. I'm not sure that scriptlets are permitted inside jsp tags. The idea of the tag is th

Re: Trouble with DispatchAction and ValidatorActionForm

2005-02-08 Thread Daniel Watrous
hould tell you. Niall P.S. In your struts config, you have a "failure" forward for the mapping that doesn't look like a proper path - although the code you say your using doesn't show it being used... - Original Message - From: "Daniel Watrous" <[EMAIL PR

Re: Trouble with DispatchAction and ValidatorActionForm

2005-02-07 Thread Daniel Watrous
ebruary 07, 2005 2:19 PM Subject: Re: Trouble with DispatchAction and ValidatorActionForm Looks to me like your missing a "/" off your input parameter ---> input="manage_stake.jsp"> Niall P.S. don't forget to set validate back to "true". - Origina

Re: Trouble with DispatchAction and ValidatorActionForm

2005-02-07 Thread Daniel Watrous
ers Mailing List" Sent: Monday, February 07, 2005 1:41 PM Subject: Re: Trouble with DispatchAction and ValidatorActionForm Most problems people experience are self-inflicted :-) - Original Message - From: "Daniel Watrous" <[EMAIL PROTECTED]> To: "Struts Users Maili

Re: Trouble with DispatchAction and ValidatorActionForm

2005-02-07 Thread Daniel Watrous
by adding 'validate="false"' to my action mapping the page now loads. Is there some undocumented incompatibility when using DispatchAction and ValidatorActionForm together? DW - Original Message - From: "Daniel Watrous" <[EMAIL PROTECTED]> To: "

Re: Session Scope Action form memeory usage??

2005-02-07 Thread Daniel Watrous
How big are your ActionForms and how many forms are there? DW - Original Message - From: "Jason Long" <[EMAIL PROTECTED]> To: Sent: Monday, February 07, 2005 1:17 PM Subject: Session Scope Action form memeory usage?? I am currently storing all of my action forms in session scope. My ap

Trouble with DispatchAction and ValidatorActionForm

2005-02-07 Thread Daniel Watrous
Hello All, I keep getting a BLANK PAGE, with NO ERRORS. Any recommendations are appreciated... I am interested in building an Action that allows me to add a database record and edit existing records. Since both actions deal with the same table I want to use the DispatchAction and keep the add

Re: Suggestings for ISP Hosting that has Hibernate included in a Plan?

2005-02-07 Thread Daniel Watrous
Try kgbinternet.com DW - Original Message - From: "Sheehan, Andrew" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, February 07, 2005 1:00 PM Subject: Suggestings for ISP Hosting that has Hibernate included in a Plan? Hi All, I'm looking for an ISP that supports Hibern

Re: Multiple select/update from the Listing page

2005-01-18 Thread Daniel Watrous
I think that this article will tell you what you want to know. http://javaboutique.internet.com/tutorials/strutsform/ Daniel - Original Message - From: "Yen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, January 18, 2005 7:38 PM Subject: Multiple select/update from

validator vs business logic

2005-01-18 Thread Daniel Watrous
Hello All, As I am working through the details of my first Struts application I am getting a little stuck on the Validator idea. It would seem that I can implement each form in my application as EITHER an ActionForm or a ValidatorForm. The action form has a validate method included for the pu

questions about ActionForm, ValidatorForm, etc.

2005-01-11 Thread Daniel Watrous
It would seem that every form in my web application requires a form class (JavaBean). I think I understand that a Form is a loose term, not necessarily referring to one tag set on a given page, but rather a form may span many pages and requests. Is this correct so far? I think that I also un