RE: Displaying a dynamically created Image.

2002-07-05 Thread Graham Lounder
You can read in any file and encode it to jpeg and send it as a response. Look up the Java Advanced Imaging API to find the JPEG Encoder/Decoder. You will also have to set your content type to image/jpeg. Here is a sample function I use to send my generated map image to the client. private

Re: Trouble loading struts-config.xml : Not Registrated, use system Identifier

2002-07-05 Thread Adolfo Miguelez
Hi, I run in the same issue in the begining. For some reasons, if you find out why, please let me know, VAJ VM is no able to get the file from 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd' I read some where that under firewalls there are trobles. What I did was placing an

AW: IllegalArgumentException: argument type mismatch

2002-07-05 Thread Efftinge, Sven
Sometimes it helps to write it down the Problem is java.util.Date, I have to use java.sql.Date (i have no Idea what this has to do with sql) thanks anyway, Sven -Ursprüngliche Nachricht- Von: Efftinge, Sven [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 5. Juli 2002 13:41 An: 'Struts

RE: Login process

2002-07-05 Thread Heligon Sandra
Hi James, Thanks for your help about login and JSP in general. Learning Struts requires time and I forgot that JSP exist without Action mechanism. So we can call them with basic URLs. I looked at your example but for each Action class you make the following login test: // Is there a

RE: logic:iterate populating with multiple String[]

2002-07-05 Thread Kamholz, Keith (corp-staff) USX
I'm not sure if I'm understanding what you're trying to do, but I'm doing something similar. I decided not to use an array for each property. I have a bean that holds the info for an entry, and then in the action I add that bean to an EntryHolder object that stores lists of entries. Then I

RE: Login process

2002-07-05 Thread Jacob Hookom
For my app's login, I created a RequestStack object and a custom tag that I could put at the top of my JSPs. The custom tag checks the session, if invalid then the tag pushes the requested page onto the stack and forwards the user to the login page. For the login action, if there is no

IllegalArgumentException: argument type mismatch

2002-07-05 Thread Efftinge, Sven
Hi, i have an ActionForm wich has only one Attribute. This Attribute is a DataObject (a serializable Bean wich presents the Data of an EntityBean). // ActionForm public class AccountGruppeForm extends ActionForm { private AccountGruppeData accountGruppe = new AccountGruppeData();

nested:iterate and maps

2002-07-05 Thread Jon.Ridgway
Hi All, I'm getting an error when using the nested:iterate tag to iterate over a map. The error tells me that the map is not indexed! Does the nested:iterate tag support maps? Jon Ridgway The contents of this email are intended only for the named addressees and may contain confidential

Should I move to Struts 1.1 beta? How and why?

2002-07-05 Thread Karim Saloojee
Hi I am fairly new to Struts and have been working on Struts 1.0. We have started a new project and have done some (about 10%) of the work in Struts 1.0. Struts 1.1 seems to have a lot of new functionality that would make our lives much simpler, particularly ActionForms. The questions I have

Re: Struts Validation - Stop on fail?

2002-07-05 Thread @Basebeans.com
Subject: Re: Struts Validation - Stop on fail? From: Andrej Sobkowski [EMAIL PROTECTED] === Hello, Padma Ginnaram replied to me directly (thanks!) so here is the message in case someone was having a similar problem: --- From Padma's message [...] If a validator depends on other validators, it

Recovering from form validation errors

2002-07-05 Thread Michael
I am validating fields in my ActionForm using the validate() method. Upon finding errors, I return a populated ActionErrors object. When the thread of control is passed back to the input JSP, a List of users used to populate an html:select is no longer in the request object (since this is a

Calls another action from one action?

2002-07-05 Thread @Basebeans.com
Subject: Calls another action from one action? From: Hu Ji Rong [EMAIL PROTECTED] === Hi, As I described in my previous post: Question on implementation with frames, I have some links pointing to some pages in which all form fields actually belong to the same domain object, eg. Airport has

Re: how to search this list's archives

2002-07-05 Thread Jonathan Fuerth
On Fri, Jul 05, 2002 at 10:53:13AM +0100, Jim Clayson wrote: I don't know how to use the search! I mean I use the search by plonking words in the text input box but I'm wondering whether I'm using a spaceship to go and buy bread on the corner - if you know what I mean. How sophisticated is

RE: should I use form bean and javabean for the same data?

2002-07-05 Thread Jim Clayson
Thanks for that! Jim -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: 05 July 2002 12:56 To: Struts Users Mailing List Subject: RE: should I use form bean and javabean for the same data? Chapter 6 of Chuck's book discusses the model layer with regard to Struts

Re: [Struts Tips] #2 - Use DispatchAction to organize related operations

2002-07-05 Thread @Basebeans.com
Subject: Re: [Struts Tips] #2 - Use DispatchAction to organize related operations From: Sebastian Millies [EMAIL PROTECTED] === It's a little late, but I only got to see this posting just now. I've got a question about this approach: why not just define different actions in struts-config.xml

2 html:select on the same page Error

2002-07-05 Thread Toni Nehme
Hi, I have 2 html:select on the same page. Selection of any item of the first combobox will dynamically populate the second. I have it working fine. Now, the dependant combobox, I select different item and click the submit button. I got the value of the first combobox correct. but the

Re: Recovering from form validation errors

2002-07-05 Thread Joe Germuska
At 10:46 AM -0400 2002/07/05, Michael wrote: I am validating fields in my ActionForm using the validate() method. Upon finding errors, I return a populated ActionErrors object. When the thread of control is passed back to the input JSP, a List of users used to populate an html:select is no

DynaActionForm and Nested property -- (to Craig)

2002-07-05 Thread Boyalla, Raveendra
Hi Craig, this is my form bean. form-bean name=addPCCompanyForm type=org.apache.struts.action.DynaActionForm form-property name=pcCompany type=rb.pc.vo.pcCompanies.PCCompanyVO/ /form-bean and in form html:text

Re: Recovering from form validation errors

2002-07-05 Thread Michael
Thanks for the reply. I had just moved my validation code out of the Action to clean it up a bit. I hadn't thought of calling validate() from the action, though. - Original Message - From: Joe Germuska [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July

RE: DynaActionForm and Nested property

2002-07-05 Thread Boyalla, Raveendra
Hi this is my form bean. form-bean name=addPCCompanyForm type=org.apache.struts.action.DynaActionForm form-property name=pcCompany type=rb.pc.vo.pcCompanies.PCCompanyVO/ /form-bean and in JSP html:text

RE: How do I share ActionForm between multiple JSPs?

2002-07-05 Thread Robert Taylor
Define different action mappings that both map to the same DispatchAction. Each mapping will have the appropriate input attribute which will return the user to the correct JSP page from which the validation error occurred. robert -Original Message- From: Michael [mailto:[EMAIL

Re: Object Relational Bridge is great !

2002-07-05 Thread Adam Hardy
Hi Fabrice, did you check out JDO? If so, why didn't you prefer it? fabrice dewasmes wrote: Hi, no problem this time but i'd like to applause chuck Cavaness with both hands for the public review of his struts book. Chuck, you're clairvoyant : using Object relational bridge is a great

Re[2] Trouble loading struts-config.xml : Not Registrated, use system Identifier

2002-07-05 Thread pierre jauffret
Thank you for your so quick response , Well, i tried your solution by placing the dtds in my classpath : but it didn't work at first. so i changed in the struts-config.xml file the DOCTYPE: the original one: !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration

how to render query string in html:link

2002-07-05 Thread Billy Ng
Hi folks, Would anybody please provide me some sample code for how to make a link with multiple parameters in the href's url with using html:link tag. Thanks in advance! Billy Ng _ Chat with friends online, try MSN Messenger:

RE: how to render query string in html:link

2002-07-05 Thread Billy Ng
It is because I need get the parameter data from a bean. I have tried something like: html:link page=blah.do?param1=%= bean.getFirstArg() %param2=%= bean.getSecondArg() %/ but it won't work. Some said I need to use the param* attributes. I know it is easy for 1 parameter, but I don't know

RE: how to use log4j within struts

2002-07-05 Thread Clay Graham
I wrote a logger class /* * Logger.java * * Created on December 4, 2001, 9:50 AM */ package com.noi.utility.log; import org.apache.log4j.Category; import java.util.Calendar; import java.util.Date; /** * * @author clay * @version */ public class Logger { static private Category

Re: messages with parametric replacements and avoiding scriptlets

2002-07-05 Thread Craig R. McClanahan
On Fri, 5 Jul 2002, Jan Vervecken wrote: Date: Fri, 05 Jul 2002 11:41:19 +0200 From: Jan Vervecken [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: messages with parametric replacements and avoiding scriptlets hi Is there a way to

Re: how to search this list's archives

2002-07-05 Thread Craig R. McClanahan
The Struts home page (http://jakarta.apache.org/struts/ has a link to my favorite mailing list archive for struts-user: http://nagoya.apache.org/eyebrowse/SummarizeList?listId=42 and there are several others around the net as well -- see the Jakarta mailing list pages for more info, starting

LabelValueBean is 1.0.2 or 1.1b?

2002-07-05 Thread Javier Muguruza
Hi, I am usign struts1.0.2, I saw in the 1.0.2 release notes http://jakarta.apache.org/struts/doc-1.0.2/release-notes-1.0.1.html that LabelValueBean is available. But it is not included in struts.jar, and in the release notes of 1.1.b

Re: AW: IllegalArgumentException: argument type mismatch

2002-07-05 Thread Craig R. McClanahan
On Fri, 5 Jul 2002, Efftinge, Sven wrote: Date: Fri, 5 Jul 2002 13:40:46 +0200 From: Efftinge, Sven [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: AW: IllegalArgumentException: argument type mismatch I

RE: Displaying a dynamically created Image.

2002-07-05 Thread Craig R. McClanahan
On Fri, 5 Jul 2002, David Mulligan wrote: Date: Fri, 5 Jul 2002 14:24:38 +0100 From: David Mulligan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Displaying a dynamically created Image. Use the

Re: AW: Displaying a dynamically created Image.

2002-07-05 Thread Craig R. McClanahan
On Fri, 5 Jul 2002 [EMAIL PROTECTED] wrote: Date: Fri, 5 Jul 2002 15:22:20 +0200 From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: AW: Displaying a dynamically created Image. How do I include this into some JSP/HTML? Actually,

Re: dynamicaly generated forms and ActionForms

2002-07-05 Thread Craig R. McClanahan
On Fri, 5 Jul 2002 [EMAIL PROTECTED] wrote: Date: Fri, 05 Jul 2002 15:39:41 +0200 From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: dynamicaly generated forms and ActionForms I need to dynamicaly generate a jsp form and retrieve

Re: DynaActionForm and Nested property -- (to Craig)

2002-07-05 Thread Craig R. McClanahan
On Fri, 5 Jul 2002, Boyalla, Raveendra wrote: Date: Fri, 5 Jul 2002 11:59:54 -0400 From: Boyalla, Raveendra [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: DynaActionForm and Nested property -- (to Craig)

Re: LabelValueBean is 1.0.2 or 1.1b?

2002-07-05 Thread Craig R. McClanahan
On Fri, 5 Jul 2002, Javier Muguruza wrote: Date: Fri, 5 Jul 2002 19:56:59 +0200 From: Javier Muguruza [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: LabelValueBean is 1.0.2 or 1.1b? Hi, I am usign

Re: LabelValueBean is 1.0.2 or 1.1b?

2002-07-05 Thread Joe Germuska
The LabelValueBean is really a simple class; it's probably almost as easy to write one yourself as it is to move the compiled class from one JAR to another. However, yes, it would probably work to just copy the LabelValueBean.class file between jars. Note that, otherwise, it's generally

RE: how to render query string in html:link

2002-07-05 Thread Joe Germuska
At 9:57 AM -0700 2002/07/05, Billy Ng wrote: It is because I need get the parameter data from a bean. I have tried something like: html:link page=blah.do?param1=%= bean.getFirstArg() %param2=%= bean.getSecondArg() %/ but it won't work. Some said I need to use the param* attributes. I know

Re: DynaActionForm and Nested property -- (to Craig)

2002-07-05 Thread Chuck Cavaness
Raveendra, I was reading your email and just thought I would mention something that I saw that may be a hard bug to find later. When using dynamic forms, you have to set the dynamic attribute to true, like this: form-bean name=addPCCompanyForm dynamic=true

Re: DynaActionForm and Nested property -- (to Craig)

2002-07-05 Thread Craig R. McClanahan
On Fri, 5 Jul 2002, Chuck Cavaness wrote: Date: Fri, 05 Jul 2002 15:32:13 -0400 From: Chuck Cavaness [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: DynaActionForm and Nested property -- (to Craig)

Re: DynaActionForm and Nested property -- (to Craig)

2002-07-05 Thread Chuck Cavaness
Thanks for catching me on that. I looked at the form-bean element twice and still thought there was a custom impl there, but that was actually the type attribute. Sorry for the confusion. chuck At 12:42 PM 7/5/2002 -0700, you wrote: On Fri, 5 Jul 2002, Chuck Cavaness wrote: Date: Fri, 05

Re: struts and multi-valued database

2002-07-05 Thread @Basebeans.com
Subject: Re: struts and multi-valued database From: Wendy S [EMAIL PROTECTED] === Adam Hardy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Hi Wendy, struts doesn't handle the DB access. Thanks Adam! So how are you accessing the DB if you don't have a JDBC driver? JNDI or

Re: Object Relational Bridge is great ? A Basic Problem

2002-07-05 Thread Adolfo Miguelez
Hi, as a newbie in O/R mapping tools, APIs and frameworks I find the following issue. All of the frameworks that I have browsed lacks from a basic problem: The classes that maps the corresponding tables in the database must be manually generated, either by hand (e.g. OJB) or by building the

Re: logic:iterate populating with multiple String[]

2002-07-05 Thread Zayed
Hi Keith, Thanks for your reply. The Problem I am facing is regarding the use of logic:iterate and bean:write tags Let me restate my problem I am developing a WEB-UI for a third party Java Application Therefore I don't have control over the object/s returned. I get two String arrays of