Re: Using struts forms as Value Objects: your opinion?

2005-07-10 Thread Borislav Sabev
Rivka Shisman wrote: Hi Erik You said - " My form class fields are always Strings (because of HTTP)" - I'm not sure I anderstand the meaning of this - why do the fields are Strings? I have recently started working with struts and my forms contain int, short, boolean and so on, and it works fi

Re: access entries in MessageResources.properties from java code

2005-07-10 Thread Borislav Sabev
Rivka Shisman wrote: Hi all, I have a MessageResources.properties file that contains all the messages regarding form validation. I wonder what should I do when I have a business/workflow messages (like "This entry already exist in the DB"), should I use the same properties file? If yes - how do

Re: read init parameters in action

2005-07-10 Thread Borislav Sabev
Sure, here it is: 1. this snippet you have to add to your stuts-config.xml className="com.mycompany.myproduct.servlet.InitPlugin"> 2. this is the plugin-code: public class InitPlugin implements org.apache.struts.action.PlugIn { public void destroy() { try { Hibernate

Re: JSP 2D Taglib Released -- Script Java 2D API from your JSP with JavaScript

2005-07-10 Thread James Mitchell
I'm getting an error... HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletE

JSP 2D Taglib Released -- Script Java 2D API from your JSP with JavaScript

2005-07-10 Thread Todd Ditchendorf
I'm proud to announce a JSP taglib that I thought the Struts mailing list might like to hear about. http://ditchnet.org/2d JSP 2D Taglib Released -- Script Java 2D API from your JSP with JavaScript With the Ditchnet JSP 2D Taglib, your web applications now have full access to the Java 2D AP

Re: Session Forms?

2005-07-10 Thread Paul Benedict
> Why would not you stick *all* data including data > that you are editing, into a form bean with session scope? Michael, This is a good question. I've thought about this methodology for years and, for the time being, I only put into the Form object what could be editable. All read only objects

tiles and multipart messages

2005-07-10 Thread Kostas Flokos
Hi, I'm using tiles in my application and created a .jsp to upload a file. As long as my *Action is not part of a tiles configuration, all work as expected. If now this *Action is mapped to a tile that receives the control after the main page controller, then the ActionForm is reset() in betwee

Re: Session Forms?

2005-07-10 Thread Michael Jouravlev
On 7/10/05, P B <[EMAIL PROTECTED]> wrote: > In my web application, user can edit items from their > inventory. When they request to edit an item, I > retrieve from the database many properties - most of > them will be editable by the user, but other is for > display purposes only. > > Is it prope

Session Forms?

2005-07-10 Thread P B
In my web application, user can edit items from their inventory. When they request to edit an item, I retrieve from the database many properties - most of them will be editable by the user, but other is for display purposes only. Is it proper to put this non-form data in the session? That way if v

problem with pdf fonts in jasper

2005-07-10 Thread Grzegorz Stasica
hi, I know this question should be asked on jasperreports http://sourceforge.net/forum but after asking it seems that this group is dead. The problem is that I'm limited to standard 14 fonts for PDF. Everytime I try to use different font in PDF the text is not displayed. My definition is: r

Re: What's wrong? [prepopulating a form...]

2005-07-10 Thread lk
Gotcha Oh poor man :-) The problem was in the form: I used the attribute value="" for the html:text tag from an old form ByE If I try to print on that form the bean polizza_newForm the properties are correct: gives: DynaActionForm[dynaClass=polizza_newForm,nome=test] My form is

Re: Using struts forms as Value Objects: your opinion?

2005-07-10 Thread Wendy Smoak
From: "Rivka Shisman" <[EMAIL PROTECTED]> I have recently started working with struts and my forms contain int, short, boolean and so on, and it works fine. So far... but what happens when you display a text field asking for an integer, and your user types 'ABC'? It may not be a problem in

Re: Preload FormBean

2005-07-10 Thread Wendy Smoak
From: "Sagar Naik" <[EMAIL PROTECTED]> I have to edit some data in the form. So I have to load the text fields in the form with some data values from a Database Table Record. Can I do tht initializing the bean object and give it to struts to display the values ? Yes, though the answer comes fr

What's wrong? [prepopulating a form...]

2005-07-10 Thread lk
Hi, I'm trying to prepopulate a form for editing it and I can't understand what's wrong. From a list of objects I want to edit one. I have an action for that: ^ polizza_newForm is a DynaActionForm defined in the struts-config.xml ^ The action is: impor

RE: access entries in MessageResources.properties from java code

2005-07-10 Thread Rivka Shisman
Hi all, I have a MessageResources.properties file that contains all the messages regarding form validation. I wonder what should I do when I have a business/workflow messages (like "This entry already exist in the DB"), should I use the same properties file? If yes - how do I call it from the busi

RE: Using struts forms as Value Objects: your opinion?

2005-07-10 Thread Rivka Shisman
Hi Erik You said - " My form class fields are always Strings (because of HTTP)" - I'm not sure I anderstand the meaning of this - why do the fields are Strings? I have recently started working with struts and my forms contain int, short, boolean and so on, and it works fine. Is there a problem w