Checkbox problem

2004-01-31 Thread Janarthan Sathiamurthy
Hi Group, I am using Struts 1.1 version. I have a page in which i display a set of checkboxes(10 checkboxes to be specific). All the checkboxes have the same name and have different values. I have an ActionForm for this. In the ActionForm, i have a String[] checkBoxArr to represent these chec

Date comparison

2004-01-31 Thread jeichels
To start off, thank you who can help. I have looked through examples, docs, etc. The forum "almost" helped. The end problem is that I am doing a addLessThan on a datetime db field using the PB and it is failing likely because of a type casting problem. I am using Timestamp in my java code.

Re: What does "do" stand for in .do files

2004-01-31 Thread Otávio Augusto
Would you show a very simple description on how to do it? I thought I'd have problems with the ActionServlet...but if you say it works fine, great! Thanks ;) Otávio Augusto On Sat, 31 Jan 2004 19:04:58 -0700 Matt Raible <[EMAIL PROTECTED]> wrote: > Yes, you can use any extension you like. I'm

Multiple Action invokations in a single JSP / request via *include*?

2004-01-31 Thread Timo --Blazko-- Boewing
Hello all, For long time now i am trying to make several invokations of Struts Actions whose outputs are to be rendered into one single JSP using JSTL's c:import or jsp:import. However, when the first Action called reaches a larger response length (bytes); the request gets cut; thus the page is no

Re: What does "do" stand for in .do files

2004-01-31 Thread Matt Raible
Yes, you can use any extension you like. I'm currently using .cfm to integrate a Struts app into a Cold Fusion website. Matt On Jan 31, 2004, at 6:15 PM, Otávio Augusto wrote: So, just to complement the discussion, is it possible to use any other extension rather than .do? Changing it in the

Re: What does "do" stand for in .do files

2004-01-31 Thread Otávio Augusto
So, just to complement the discussion, is it possible to use any other extension rather than .do? Changing it in the web.xml file makes that possible? Thanks Otávio Augusto On Sat, 31 Jan 2004 00:38:03 -0800 "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote: > Quoting "Gopalakrishnan, Jayesh" <[

Re: Parameter ???

2004-01-31 Thread Otávio Augusto
Don't use the "ção" expression. Is that possible? HTH Otávio Augusto On Thu, 29 Jan 2004 19:42:51 -0200 "Mauricio T. Ferraz" <[EMAIL PROTECTED]> wrote: > How can I compare a parameter in my URL (someAction.do?type=Alteração) with > the tag do something > > > The problem is the "ção" . How can

Re: request attributes and failed validation

2004-01-31 Thread Ian Joyce
This was exactly what I was looking for. Thanks. If anyone is interested in details I'd be happy to share... >>> [EMAIL PROTECTED] 01/31/04 03:59 AM >>> This is the reasons I sometimes have an action in my "input" action attribute. What I mean is: ... I sometimes (often?) use t

Re: bug in latest validator-rules.xml ?

2004-01-31 Thread Joe Germuska
At 11:54 AM -0600 1/30/04, Matt Bathje wrote: Joe - this is working fine for me with the 1/13/2004 nightly build. I have tried with commons-validator-1.1.1.jar and with whatever version the commons-validator.jar in the 1/13 nightly build of struts is. Validation worked right out of the box - all I

Processing a large number of records

2004-01-31 Thread Zoran Avtarovski
I am building a feature into my app that will allow users to generate printable results from data. The number of results is in the thousands and the problem I'm having is that the http request timeouts before the data processing is complete. The method I've adopted is to take a arrayList of data o

Re: Response not XHTML-comliant when using

2004-01-31 Thread Michael McGrady
I have run into similar difficulties with Tiles and have just made do. I welcome all insights in this area. Glad this issue is getting air. At 07:59 AM 1/31/2004, you wrote: Thanks for the anwers so far. But it is not working for me, because I still have this extra tags included. I have don

Re: request attributes and failed validation

2004-01-31 Thread Michael McGrady
Egg-zackly, Hubert. Nice work! Also, in an action we can go anywhere programmatically that we want, so there is no restriction by the input attribute, only a possibility. Wherever the "cursor" is in the course of the request's way to a response, we can go wherever we like and have whatever w

Detect messages with Jstl

2004-01-31 Thread Axel Wilhelm Berle
Hi everybody! I am experimenting with the tags of Struts 1.1. My problem is that I need to discover if there are any messages. Of course, there is the tag, but I am trying to avoid the logic tag library. So my question is: What would be the elegant way to discover the presence of messages using

indexed checkbox and set method

2004-01-31 Thread Emmanuel
I want to use a form that looks like this : .. I made my form bean with this get : public class AddRACIForm extends ActionForm { private List prop = new ArrayList(); .. public void setIndexProp(int key, Object myobject) { this.prop.set(key, myobject); } } But if I check both boxes "value1

Re: Response not XHTML-comliant when using

2004-01-31 Thread Andreas Amstutz
Thanks for the anwers so far. But it is not working for me, because I still have this extra tags included. I have done the following xperiments: <%@ include file="../includes/navigation.jsp" %> All of them included extra I simply do not get it! Maybe some of you can put some light on this

list tag validation

2004-01-31 Thread Mailing List
Dear All; I wanna to validate a list box if it's empty or not. Obviously using javascript will solve the problem, but I want to do it via Validation Framework. Is there any way to validate a select box if it has any options or not in validation.xml? Thank you Nafise

RE: Using "bean:write" as a tag's value atrribute

2004-01-31 Thread Mailing List
Thank you very much Bean:define solved the problem -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 3:45 PM To: Struts Users Mailing List Subject: Re: Using "bean:write" as a tag's value atrribute Nico. > > Dear All; > > Us

AW: SecurityFilter with Struts

2004-01-31 Thread Dirk Manske (Service Respond)
thanks max. Now I have done it this way: I have a struts login form which submits to a LoginAction. There I check the user from a db and store the data in a session. The LoginAction forwards to the main page which is secured. SecurityFilter looks now for a file which I titled j_security_check.jsp.

Business Exception and JSP

2004-01-31 Thread Namasivayam, Sudhakar (Cognizant)
Title: Business Exception and JSP Hi all,   I would want to display the business exception that are thrown to a separate jsp page.  Please suggest some way in which i can approach this Thanks in advance, Sudhakar This e-mail and any files transmitted with it are for the sole use

Populating a DynaActionForm with a complex object graph

2004-01-31 Thread Doug Dixon
Hi I'm trying to populate a DynaActionForm dynamically, using this how-to as a starting point: http://www.developer.com/java/other/article.php/2233591 Because the number of elements in my form can vary at runtime, I take the advice near the bottom of the article: """ You can even dynamically spe

Re: request attributes and failed validation

2004-01-31 Thread Hubert Rabago
This is the reasons I sometimes have an action in my "input" action attribute. What I mean is: ... I sometimes (often?) use the Action that generated the form as my input because my form has controls that need to be initialized (like your drop downs). Using an Action as "input" som

Re: request attributes and failed validation

2004-01-31 Thread Michael McGrady
I assume you want to do this after the validation fails, i.e. that timing (when) not placement (where) is the issue. Exactly how you want to do this depends on the details of your application. Not knowing these details makes it difficult, but just guessing would lead me to think that having s

RE: What does "do" stand for in .do files

2004-01-31 Thread Craig R. McClanahan
Quoting "Gopalakrishnan, Jayesh" <[EMAIL PROTECTED]>: > The "do" is insignificant, its just what all the sample applications use and > has somehow stayed on. In the technical sense ("could I use "foo" instead of "do") you are absolutely right ... there is no intrinsic meaning to "do". However, f

Re: request attributes and failed validation

2004-01-31 Thread Ian Joyce
It's not slow, the lists are created from data from a database. I am assuming when you say 'do it again' you mean add these Lists to the request. Where should this be done at? >>> [EMAIL PROTECTED] 01/31/04 01:48 AM >>> One way is to put them temporarily in the session. But, why not just do i

Re: request attributes and failed validation

2004-01-31 Thread Michael McGrady
One way is to put them temporarily in the session. But, why not just do it again? Is it too slow? At 11:28 PM 1/30/2004, you wrote: In my Action I am populating an ActionForm with data from a database. I am also setting some additional request attributes with Lists of beans. The purpose of

request attributes and failed validation

2004-01-31 Thread Ian Joyce
In my Action I am populating an ActionForm with data from a database. I am also setting some additional request attributes with Lists of beans. The purpose of these Lists are to create various drop down boxes in the form. This works well, however when the form is submitted and validation fail