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.BufferedImage)

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

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

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: field property=website depends=url arg0 key=prompt.website/

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

Re: Trouble with DispatchAction and ValidatorActionForm

2005-02-08 Thread Daniel Watrous
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... forward name=failure path=error/ - Original Message - From: Daniel Watrous [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent

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

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 user@struts.apache.org 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

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

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: Struts Users Mailing List user

Re: Trouble with DispatchAction and ValidatorActionForm

2005-02-07 Thread Daniel Watrous
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. - Original Message - From: Daniel Watrous [EMAIL PROTECTED] To: Struts

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

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 user@struts.apache.org Sent: Tuesday, January 18, 2005 7:38 PM Subject: Multiple

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 form/form tag set on a given page, but rather a form may span many pages and requests. Is this correct so far? I think that