Action Class - No of instances

2004-04-07 Thread Senthivel U S
Greetings, Thanks Mr Craig and Mr Niall. Yes we are having sub application modules and we are having one common action Class for some action mappings (design based on struts-scaffold - Refer: Struts In Action).I have to check it whether it is for module or for application. Actually What we thoug

Action Class - No of instances

2004-04-07 Thread Senthivel U S
Greetings, I have one more doubt, if one instance per module/application, Is not a performance bottleneck. Rgds, Sen Greetings, Thanks Mr Craig and Mr Niall. Yes we are having sub application modules and we are having one common action Class for some action mappings (design based on struts-s

RE: Action Class - No of instances

2004-04-07 Thread Andrew Hill
No, remember that multiple threads for different requests are going to be simultaneously excuting in the action. (So be sure to keep your code thread-safe (stay away from using class member variables etc...) just like you would with a servlet.)) -Original Message- From: Senthivel U S [mail

SV: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-07 Thread Joe Hertz
Eh, Middlegen and the Hibernate CodeGenerator are a good places to get an idea of what you are going for, but if my experience is any indication, I wouldn't use them for "the real thing", not without a really good refactoring tool. For starters, at least against a MySQL database, MiddleGen didn

R: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-07 Thread Leonardo Francalanci
I don't think iBatis is a real ORM tool: is more an helper library for JDBC. You will always have to write your INSERT/UPDATE/DELETE statements, while Hibernate does that job for you (once written the xml mappings). IMHO hibernate is better if you have a very good db scheme and if you are not goin

SV: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-07 Thread hermod . opstvedt
Hi I agree with your aproach. This is what was in my mind when i wrote response, but forgot to write. XDoclet really shines on some of this stuff onceypu get the hang of it - it will also do a lot of Struts stuff for yu if you bother to put in the struts tags as well. Hermod -Opprinnelig mel

Re: AW: AW: SV: validation with struts 1.2

2004-04-07 Thread Adam Hardy
I just updated my DTD declaration to validator-1.1 and now it is giving me some SAXParseException Attribute "bundle" must be declared for element type "arg0" This is new to me and I'll have to check it out. I now have a test validate.xml with only one form, one field and one arg, and that has t

R: R: struts-faces integration

2004-04-07 Thread Manganotti Francesco \(USI\)
..this is the JSP that gives me the tag nesting error: <%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/fmt";pr

SV: AW: AW: SV: validation with struts 1.2

2004-04-07 Thread hermod . opstvedt
Hi the bundle attribute should be either "true" or "false" . It is not meant to specify which "Resource" bundle to use. If you looked in the dtd : resourceIf set to "false", the key is taken to be a literal value rather than a bundle key. Hermod

AW: AW: AW: SV: validation with struts 1.2

2004-04-07 Thread Otto, Frank
I get no error, but it doesn't find the text in this resource bundle, which I declared. I use the commons-validation-1.1.2.jar (http://www.apache.org/~martinc/validator/v1.1.2/) And I take a look at the dtd. arg0 is deprecated. Use instead. -Ursprüngliche Nachricht- Von: Adam Hardy [m

AW: AW: AW: SV: validation with struts 1.2

2004-04-07 Thread Otto, Frank
Hi, the resource attribute is true or false. the bundle attribute is to use for alternate resource bundle. bundle The resource bundle name that the key should be resolved in. resourceIf set to "false", the key is taken to be a literal value rather than a bundle key.

SV: AW: AW: SV: validation with struts 1.2

2004-04-07 Thread hermod . opstvedt
Hi Sorry typo ! In the validation_1.1.dtd there is no bundle attribute for the field! Where did you get this from ? Hermod -Opprinnelig melding- Fra: Otto, Frank [mailto:[EMAIL PROTECTED] Sendt: 7. april 2004 10:05 Til: 'Struts Users Mailing List' Emne: AW: AW: AW: SV: validation with st

AW: AW: AW: SV: validation with struts 1.2

2004-04-07 Thread Otto, Frank
The field has no bundle attribute, but the msg and arg node. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 7. April 2004 10:15 An: [EMAIL PROTECTED] Betreff: SV: AW: AW: SV: validation with struts 1.2 Hi Sorry typo ! In the validation_1.1

SV: AW: AW: SV: validation with struts 1.2

2004-04-07 Thread hermod . opstvedt
Hi NO, they don't ! Are you sure you are looking at validation_1.1.dtd ? Mine is from last nights build Hermod -Opprinnelig melding- Fra: Otto, Frank [mailto:[EMAIL PROTECTED] Sendt: 7. april 2004 10:18 Til: 'Struts Users Mailing List' Emne: AW: AW: AW: SV: validation with struts 1.2 T

AW: AW: AW: SV: validation with struts 1.2

2004-04-07 Thread Otto, Frank
Please take look at this url: http://jakarta.apache.org/commons/dtds/validator_1_1.dtd Regards, Frank -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 7. April 2004 10:31 An: [EMAIL PROTECTED] Betreff: SV: AW: AW: SV: validation with struts

Re: AW: AW: AW: SV: validation with struts 1.2

2004-04-07 Thread Adam Hardy
OK, Frank, I've got the following below and it's not even attempting to validate. I haven't ruled out silly mistakes yet though. Where did you get the validation.xml from? I'm interested because at no point did I ever read that I should upgrade the dtd doctype to 1.1. With 1.0 everything for m

SV: AW: AW: SV: validation with struts 1.2

2004-04-07 Thread hermod . opstvedt
Hi You are right- In that dtd there is a reference to bundle. I'll have a look at it. Hermod -Opprinnelig melding- Fra: Otto, Frank [mailto:[EMAIL PROTECTED] Sendt: 7. april 2004 10:35 Til: 'Struts Users Mailing List' Emne: AW: AW: AW: SV: validation with struts 1.2 Please take look at

AW: AW: AW: AW: SV: validation with struts 1.2

2004-04-07 Thread Otto, Frank
I have read in this mailing list a mail from Niall Pemberton on Thursday, April 01 with this content: http://www.apache.org/~martinc/struts/v1.2.0/ - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

Re: AW: AW: AW: AW: SV: validation with struts 1.2

2004-04-07 Thread Adam Hardy
I was actually asking about the DTD doctype reference - did you get it from an example? An example validation.xml file? I am checking my problem - my validation works client-side except that I don't get the string from the bundle - just a en_US.blalblabla??? But server-side it is refusing t

AW: AW: AW: AW: AW: SV: validation with struts 1.2

2004-04-07 Thread Otto, Frank
No, I use normally the validator_1_0.dtd, but I need the bundle attribute for a new application. So I'm searching for a new version of commons-validation.jar and I find the link to the new version. I used it, but I got the message, that bundle is not supported by validator_1_0.dtd. Then I have r

Re: validation with struts 1.2

2004-04-07 Thread Adam Hardy
It is now validating server-side as well as client-side for me. Don't know what my server was doing, but it's doing it OK now. But the problem with the bundle is still there. There is a bugzilla issue from about 9 months ago with patches, but I don't think it was committed. Strangely enough the

Re: validation with struts 1.2

2004-04-07 Thread Adam Hardy
I forgot the bugzilla link:: http://issues.apache.org/bugzilla/show_bug.cgi?id=21760 On 04/07/2004 11:20 AM Adam Hardy wrote: It is now validating server-side as well as client-side for me. Don't know what my server was doing, but it's doing it OK now. But the problem with the bundle is still

"No bean specified" error

2004-04-07 Thread Prasad, Kamakshya
Hi, I have this line in my jsp When I am submitting the form it gives me the error java.lang.IllegalArgumentException: No bean specified Could anyone please help me on this? The EmployeeDetailsForm has this code public class EmployeeDetailsF

RE: "No bean specified" error

2004-04-07 Thread Marco Mistroni
Hi, Wild guess... have you checked that the Action class To which you submit the form has a 'name' attribute in the struts-config? Regards marco -Original Message- From: Prasad, Kamakshya [mailto:[EMAIL PROTECTED] Sent: 07 April 2004 10:35 To: Struts Users Mailing List Su

Resource Bundles and Message Table in DB

2004-04-07 Thread Masashi Nakane
Hi ,all I'm using Struts 1.1. and a Database is accessed from both of web application(tomcat5 ,no AP server) on struts and VB client. Message DB table is used from both, which has message id column and message column like "{0} field is required" Does anyone use Resource bundles and DB Table

AW: validation with struts 1.2

2004-04-07 Thread Otto, Frank
I wrote a bug report yesterday. Adam Kramer adds my email address to the this bug report (http://issues.apache.org/bugzilla/show_bug.cgi?id=21760), because it was duplicate. I hope, we will hear from him. Regards, Frank -Ursprüngliche Nachricht- Von: Adam Hardy [mailto:[EMAIL PROTE

Re: AW: validation with struts 1.2

2004-04-07 Thread Adam Hardy
I tried applying his patch to the source and recompiling, but it won't. I'm wondering whether the code in the source has changed since he uploaded his patches. On 04/07/2004 11:45 AM Otto, Frank wrote: I wrote a bug report yesterday. Adam Kramer adds my email address to the this bug report (http

RE: How can I display a table in two columns?

2004-04-07 Thread Daniel Perry
This works ok for that scenario, but what about if you need each item out of the list? eg, to iterate through a list of names: Gives one column name1 name2 name3 name4 Is there an easy way to get: This would seem a fairly common scenario to me! name1name2 name3name4 Daniel. -Ori

LIst v/s Collection

2004-04-07 Thread Vijay.Nair
Hello All, While using logic:iterate in my JSP page if my property that I define in my form is of type Collection rather than of type list it does not seem to be working? Any inputs? Thanks, VJ DISCLAIMER: This message contains privileged and confidential information and is intended

validation.xml

2004-04-07 Thread Zakaria khabot
Hi all, How to call the validator from an Action. - in struts-config I put validate="false", - I am using validation.xml to control erors. - In the action I wrote : ActionErrors errors = new ActionErrors(); errors = form.validate(mapping, request); but it executes the validate method

AW: validation.xml

2004-04-07 Thread Otto, Frank
Hi, you have to extend your form from ValidatorForm. Frank -Ursprüngliche Nachricht- Von: Zakaria khabot [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 7. April 2004 12:56 An: Struts Users Mailing List; Struts Developers List Betreff: validation.xml Hi all, How to call the validator f

RE: validation.xml

2004-04-07 Thread Matthias Wessendorf
did you subclass from ValidatorForm instead of ActionForm ? cheers -Original Message- From: Zakaria khabot [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 12:56 PM To: Struts Users Mailing List; Struts Developers List Subject: validation.xml Hi all, How to call the validator

Re: Resource Bundles and Message Table in DB

2004-04-07 Thread James Mitchell
> But, I am wondering what is the best way to > get message from DB using Struts functionality as much as possible. You can always use DBMessageResources. Google is your friend! -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PR

RE: LIst v/s Collection

2004-04-07 Thread Takhar, Sandeep
should be anything to iterate over. It may work for vectors as well. It works for arrays for sure. sandeep -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 6:39 AM To: [EMAIL PROTECTED] Subject: LIst v/s Collection Hello All, W

RE: validation.xml

2004-04-07 Thread Takhar, Sandeep
and the validate="true" or was that so obvious it didn't need mentioning... sandeep -Original Message- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 7:08 AM To: 'Struts Users Mailing List' Subject: RE: validation.xml did you subclass from ValidatorF

Re: How can I display a table in two columns?

2004-04-07 Thread bOOyah
Daniel Perry wrote: This works ok for that scenario, but what about if you need each item out of the list? eg, to iterate through a list of names: Gives one column name1 name2 name3 name4 Is there an easy way to get: name1name2 name3name4 The best I can come up with (shooting from the hip)

Re: tiles confusion

2004-04-07 Thread Dean A. Hoover
Maybe I should restate the problem... How would one go about creating a reusable layout where the content to be inserted may come from either the application.properties files (in the simplest case) or from another JSP file? Is this impossible? Do I need to duplicate the layout and do the insertion

RE: tiles confusion

2004-04-07 Thread Takhar, Sandeep
I am not sure, but there is a type attribute in the config file. Maybe the suffix of the what you put there is how it defaults? sandeep -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 8:45 AM To: Struts Users Mailing List Subject: Re: ti

Re: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-07 Thread Larry Meadors
You are correct: iBatis is not an ORM tool, but instead simply a tool to exctract your SQL from your java code and map the results of those statements to java objects. Just to be up front, I will tell you now that I am NOT an O/R fan. :-) IMO, non-O/R solutions are better for situations where you

Re: Connection Pooling (How i use...)

2004-04-07 Thread Dean A. Hoover
So, are there implied catches in there for SQLException (I assume there are)? In the innermost try block, does the catch rethrow the SQLException so that it cascades to the outer blocks? Just trying to understand the model. Dean Hoover Larry Meadors wrote: Yes. You really might want to consi

RE: how to nest a taglib in another taglib?

2004-04-07 Thread Karr, David
If you're using Tomcat 5, and you use the Servlet 2.4 schema in your web.xml, then you can just do this: If you're not using Tomcat 5 (or some other JSP 2.0 container), then it's a little harder. > -Original Message- > From: Ricky Lee [mailto:[EMAIL PROTECTED] > Sent: Tuesday, Apri

R: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-07 Thread Leonardo Francalanci
> Just to be up front, I will tell you now that I am NOT an O/R fan. :-) I think that when you have 50 tables in your db and your app is just a big gui front end Hibernate is very good. Suppose in one of this 50 tables a field is added. With iBatis you have to re-write 4 methods (update, insert, d

Re: Connection Pooling (How i use...)

2004-04-07 Thread Marcelo Epstein
Hi all, Closing all ResultSets, Statements, Connection in the finally block fixed my app that stops crashing. Thanks everybody... Marcelo On Wed, 07 Apr 2004 09:00:16 -0400, "Dean A. Hoover" <[EMAIL PROTECTED]> escreveu: > De: "Dean A. Hoover" <[EMAIL PROTECTED]> > Data: Wed, 07 Apr 2004 09:

Re: Field types in ActionForm/DynaForm

2004-04-07 Thread James Mitchell
This needs to be on [EMAIL PROTECTED] -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Yahoo IM:[EMAIL PROTECTED] - Original Message - From: "Stjepan Brbot" <[EMAIL PROTECTED]> To: "STRUTS - Developer" <[EMAIL

AW: Field types in ActionForm/DynaForm

2004-04-07 Thread Andreas Solarik
Hi Stjepan, >From what I understand, you will have a much easier time implementing validation for your forms if you use only strings. For example, receiving an integer value "ABCDEFG" might cause unexpected results. This is just my understanding. If theres more to it, them I'm happy to learn :) A

Re: R: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-07 Thread Larry Meadors
>>> [EMAIL PROTECTED] 04/07/04 6:11 AM >>> >> Just to be up front, I will tell you now that I am NOT an O/R fan. :-) > I think that when you have 50 tables in your db and your app is just a big > gui front end Hibernate is very good. Suppose in one of this 50 tables > a field is added. With iBatis

RE: Question about logic:iterator, indexId and hidden fields

2004-04-07 Thread Eric Hodges
I don't nest forms. I iterate over a list and each element in the list gets its own form. They are not nested within another form. -Original Message- From: Curtis Taylor [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 6:07 PM To: Struts Users Mailing List Subject: Re: Question ab

Re: Connection Pooling (How i use...)

2004-04-07 Thread Larry Meadors
Depends on your situation. If the SQL Exceptions are expected (i.e., a trigger could fail) then yes, you will want to catch that and send the message back to the user. However, if you are thinking JDBC is the way to go, you really should use something like iBATIS that hides this kind of stuff fr

R: R: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-07 Thread Leonardo Francalanci
> > lazy loading > > ...which has been in iBATIS for a long time. You can define those in > your sql map and it will do it just fine. :-) > Ops, I missed that! In fact, it has been added May 21, 2003 ( 1.2.5-Beta2) Very good! i'm going to download the manual (again) and read it because now iBat

tiles and tomcat 5

2004-04-07 Thread Paulo Alvim
Hi! I've been working for two entire days trying to move my "Struts RC1/Tiles" based apps (I have to use struts RC1 from Feb 22 2003) from Tomcat 4.0.24 to Tomcat 5.0.19 but I'm having performance problems related to "Tiles includes". Tomcat 5 is taking about 3-4 seconds to render each "tile" fro

Re: AW: Field types in ActionForm/DynaForm

2004-04-07 Thread bOOyah
Andreas Solarik wrote: Hi Stjepan, From what I understand, you will have a much easier time implementing validation for your forms if you use only strings. For example, receiving an integer value "ABCDEFG" might cause unexpected results. This is just my understanding. If theres more to it, them I

Tiles basics

2004-04-07 Thread Mathew, Manoj
I been working on struts for the more than a year now. I am more in to Dyna action forms and validator stuffs. But never got a chance to work on Tiles. So thought of trying it out. I need some basics on that like. 1. Which bundle I need to install 2. what are entries I need in the class path to

Re: Tiles basics

2004-04-07 Thread yoge
http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html Mathew, Manoj wrote: I been working on struts for the more than a year now. I am more in to Dyna action forms and validator stuffs. But never got a chance to work on Tiles. So thought of trying it out. I need some basics on that

Bad Class Version while compiling JSP Files on Tomcat

2004-04-07 Thread JavaNetIn
I have j2sdk1.4.2. Exact version information as follows. java version "1.4.2" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28) Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode) On Tomcat 4.0-b7, Tomcat 5.0.7 & Tomcat 5.0.19 JSP pages couldn't compile while servlets works f

Need advice on design decisions and architecture issues.

2004-04-07 Thread Skip Hollowell
I am not sure if this is an acceptable forum for a question like this but I need some advice on how to proceed with a design for an application. Some of you (Andy, Niall) have helped on a few things already regarding the DynaValidator stuff. Let me describe the app first, and some of the things t

Problem with struts validator

2004-04-07 Thread Marco Mistroni
Hi all, I am experiencing problems with struts-validator, in that it seems That the validation is not done at all. I have created a form (named contactFomr) that extends DynaValidatorForm.

RE: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-07 Thread Mathew Ring
Two comments: 1) I'm using Ibatis SQLMaps on a smallish web project and they're great. I had a basic persistence layer working in an hour. I think they're a good middle ground between JDBC and full-on O/R mapping. Sometimes working directly with the SQL is an advantage, especially when dealing wit

Re: resource file configuration

2004-04-07 Thread Kumar M
Why are you storing the message resources bundle under the MESSAGE key? I am not sure what impact this would have. Try removing that line (so that the default key gets used). Also make sure that resources file is in the correct location/classpath. [EMAIL PROTECTED] wrote: I'm having a problem

RE: Problem with struts validator

2004-04-07 Thread Saul Q Yuan
A quick question, have you set validate="true" in your action mapping? Saul > -Original Message- > From: Marco Mistroni [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 07, 2004 11:31 AM > To: 'Struts Users Mailing List' > Subject: Problem with struts validator > > > Hi all, >

Problem with DynaValidatorForm

2004-04-07 Thread MARU, SOHIL (SBCSI)
Hi, I am a newbie to using the struts framework and am trying to get Validation framework to work. It seems to be working fine,ie if error checks fail it redirects me to the page where it should but does not display the errors. I have read over the archives and corrected couple of things I wa

RE: Problem with struts validator

2004-04-07 Thread Marco Mistroni
Yes I have also done some modifications, to try to write my own validate method, and it gets called successfully. I made my form extends DynaValidatorForm , I am calling super.validate as well as doing some processing afterwards.. Well, It seems that super.validate results in nothing... I hav

Easily printing out session values

2004-04-07 Thread Andy Engle
Hi all, Is there a way to simply print out session values, such as through the bean:write tag or something like that? If there is, could you please share? It seems like it should be easily done, but I can't find anything that describes how to. Thanks! Andy --

RE: Problem with struts validator

2004-04-07 Thread Saul Q Yuan
One thing I noticed is you're missing the argument for the required message, ie. in your validation.xml file. > -Original Message- > From: Marco Mistroni [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 07, 2004 11:57 AM > To: 'Struts Users Mailing List' > Subject: RE: Problem with st

Re: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-07 Thread Vic Cekvenich
IMO, O/R is ok for small projects with few users, or for hello world. Once you have a complex system or lots of users, one should use E/R (such as iBatis) so that you can have fine grain control of the SQL. Some developers think that one can solve data model layer issues in Java. The more comple

RE: Problem with DynaValidatorForm

2004-04-07 Thread Saul Q Yuan
Hi, Two thoughts. First, do you have the struts tag declaration in your jsp? second, if you want to display error messages, I think you should set message="false" in your -Original Message- > From: MARU, SOHIL (SBCSI) [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 07, 2004 11:53 AM >

RE: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-07 Thread Larry Meadors
I have had great success treating the lobs as byte[] (at least w/ M$SQL). Larry >>> [EMAIL PROTECTED] 04/07/04 9:38 AM >>> 1) I'm using Ibatis SQLMaps on a smallish web project and they're great. I had a basic persistence layer working in an hour. I think they're a good middle ground between JDBC

RE: Problem with struts validator

2004-04-07 Thread Marco Mistroni
Hi, But the arg0 isnt supposed to be present if your message Needs a parameter? Regards marco -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: 07 April 2004 17:04 To: 'Struts Users Mailing List' Subject: RE: Problem with struts validator One thing I no

Re: Problem with struts validator

2004-04-07 Thread Skip Hollowell
"Saul Q Yuan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > One thing I noticed is you're missing the argument for the required > message, ie. > in your validation.xml file. > > And as per my earlier post with this same problem, do you have the tag in your jsp to actually show th

Re: Easily printing out session values

2004-04-07 Thread James Mitchell
Here's a nice little debug.jsp that I use in my footer... -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Yahoo IM:[EMAIL PROTECTED] - Original Message - From: "Andy Engle" <[EMAIL PROTECTED]> To: <[EMAIL PR

RE: Problem with struts validator

2004-04-07 Thread Marco Mistroni
HI, Yes, also the html:error tag is there. Regards marco -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Skip Hollowell Sent: 07 April 2004 17:29 To: [EMAIL PROTECTED] Subject: Re: Problem with struts validator "Saul Q Yuan" <[EMAIL PROTECTED]> wr

Re: Easily printing out session values

2004-04-07 Thread James Mitchell
Seems the attachment was stripped... Here it is: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld"prefix="html" %> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="/WEB-INF/struts-bean.tld"prefix=

RE: R: ORM Tools (Ibatis, Hibernate, OJB....)

2004-04-07 Thread Tuncay Baskan \(Yazilim Muh. - Proje Gel. ve Uyg. Gr.\)
> -Original Message- > From: Larry Meadors [mailto:[EMAIL PROTECTED] > Sent: 07 Nisan 2004 Çarşamba 16:52 > To: [EMAIL PROTECTED] > Subject: Re: R: ORM Tools (Ibatis, Hibernate, OJB) > > >>> [EMAIL PROTECTED] 04/07/04 6:11 AM >>> > >> Just to be up front, I will tell you now that I am

validation.xml

2004-04-07 Thread Zakaria khabot
Hi all, I start runnig my application with an Action (action.do) which access to the database to get a collection and send it to the JSP. The problem is : when I put validate ="true" in struts-config an error is detected (because fields in the JSP are blank) so the collection is null and the JSP

Re: Easily printing out session values

2004-04-07 Thread Richard Yee
Andy, Put this in your jsp page. If you create a JSP template file that includes this code and then use it as a basis for developing new JSP pages, you will be able to see what is in your request, session and ActionMessages. I found it in this article on javaboutique by Keld H. Hanson: http://javab

tiles

2004-04-07 Thread Phan, Hung
Hi all, I have a question regarding tiles. One of my page uses a layout like It has a classic layout (top, menu, and body). When you se

RE: Problem with struts validator / solved

2004-04-07 Thread Marco Mistroni
Hi guys, Problem solved I am using WSAD for developing app, and I have copied the validator xml files from some struts download.. and it was not working Then I found an article on the web on using validator in WSAD, I replaced The xml files content with what the article was sa

Container vs application managed security - Role checking

2004-04-07 Thread Tom Bednarz
After reading lots of online docs and parts of 'Struts in Action' I decided to stay with my implementation of application managed security. However I like to make use of a new feature introduced in Struts 1.1: role checking for actions. As far as I understand it, I need to make my own implementa

RE: Container vs application managed security - Role checking

2004-04-07 Thread Saul Q Yuan
The class goes with your app, and you need to specify that in the following tag in your struts-confi.xml file: So Struts knows. Saul > -Original Message- > From: Tom Bednarz [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 07, 2004 1:09 PM > To: Struts Users Mailing List > Subject

Re: HashMap of Vectors and Indexed Properies

2004-04-07 Thread Craig Tataryn
Adam, the problem is not so much with displaying the values in the nested objects, it's having struts update the nested values from a form control to the actual nested object. That is, if I have a textbox which represents the value for address(texas)[0].street1, when the user submits a value fo

link to 1.1 api?

2004-04-07 Thread Janice
Hello, Is the api for 1.1 available anywhere other than in the source? I can find 1.2 dev and 1.0, but not 1.1. Thanks, Janice

Struts Form Validation

2004-04-07 Thread Ray Madigan
I have a problem that I cannot see why it behaves the way it does, and was hoping a couple more eyeballs might help, thanks! I have a jsp that has A couple of input controls including username When the user types in all of the fields correcly this work fine. The execute method of action si

Problem with Formbean validate method forwarding to input page

2004-04-07 Thread Todd Bryant
I have need for every page in my web app to be secure. What I originally did was extend the Action class to make a secure action class. The SecureAction's perform method validates that the user is logged in and if not, sends them to the login page. All actions in my app extend SecureAction. To prot

Re: Container vs application managed security - Role checking

2004-04-07 Thread Tom Bednarz
Many thanks for that information. Exactly what I was looking for! Tom - Original Message - From: "Saul Q Yuan" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, April 07, 2004 7:29 PM Subject: RE: Container vs application managed security - Role ch

validator one of multiple fields required

2004-04-07 Thread Paul Barry
Is there an easy way to check that at least one of multiple fields is filled in with the validator? Kind of like: if(username != null || firstname != null || lastname != null) - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

RE: validator one of multiple fields required

2004-04-07 Thread Saul Q Yuan
validwhen is suppose to do that. http://jakarta.apache.org/struts/userGuide/dev_validator.html Saul > -Original Message- > From: Paul Barry [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 07, 2004 3:18 PM > To: [EMAIL PROTECTED] > Subject: validator one of multiple fields required >

DynaAction or Map Backed Form?

2004-04-07 Thread Amin Lalji
Hello All, I have the following scenario: I need to populate a form using a runtime generated set of form properties... Essentially I have two collections I pull from a database Services (serviceID,serviceName) Documents (documentID,documentName) I want to populate a set of che

RE: DynaAction or Map Backed Form?

2004-04-07 Thread Amin Lalji
Sorry... to add... Each Service may have a unknown set of documents... E.g. Services: 001 Catering 002 Party Documents: 001 Contract 002 Deposit Should yield: Contract Deposit Contract Deposit Thanks, /A -Original Message- From: Amin Lalji [

Re: Easily printing out session values

2004-04-07 Thread Niall Pemberton
You could use the page tag to expose the session as a variable: The you could use for example Niall - Original Message - From: "Andy Engle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 07, 2004 5:03 PM Subject: Easily printing out session values > Hi

RE: Problem with DynaValidatorForm

2004-04-07 Thread MARU, SOHIL (SBCSI)
Finally got it figured out, was pretty simple and a small oversight that cost me quite some time, maybe this might help someone. I had the the resource file name in struts-config.xml as ApplicationResources.properties, I changed that to ApplicationResources and it started working. Thanks for your h

Global forwards not working

2004-04-07 Thread MARU, SOHIL (SBCSI)
Hello All, I have the following forwards definition in my struts-config.xml The directory jsp is under my TOMCAT_ROOT directory and it does have the index.jsp. I have made an entry in TOMCAT's server.xml as follows And the directory jsp is under TOMCAT_RO

RE: DynaAction or Map Backed Form?

2004-04-07 Thread Ray Madigan
It isn't clear what you have to work with. Is services a map of some sort, or is it a collection. Either way you should use the iterate tag in the logic tag set. If you could explain the data structure better, it would be easier to help. -Original Message- From: Amin Lalji [mailto:[EMA

Re: link to 1.1 api?

2004-04-07 Thread Erik Price
On Wednesday, April 07, 2004, at 01:40PM, Janice <[EMAIL PROTECTED]> wrote: >Hello, > >Is the api for 1.1 available anywhere other than in the source? I can find 1.2 dev >and 1.0, but not 1.1. AFAIK you have to download it as a package from Sun's site... that's how we do it, anyways.

RE: Global forwards not working

2004-04-07 Thread MARU, SOHIL (SBCSI)
I got it to work by using the following as action And adding http://localhost:8080/loa/logon.do However the global forward did not work. Am I doing something incorrect I am doing with that or is it supposed to work only with actions? -Original Message- From: MARU, SOHIL (

RE: DynaAction or Map Backed Form?

2004-04-07 Thread Amin Lalji
Here is the Data structure: I have two tables (Services, Documents) I hit the database and pull two separate Collections. I need to iterate over both collections... here is the relationship: ServiceID ServiceName Documents DocumentID

Re: Problem with Formbean validate method forwarding to input page

2004-04-07 Thread Tin Pham
If you are using struts, why go back to a .jsp page? You should be going back to a .do page. Since the .do is a struts action it will be able to get to your jsp page. "Todd Bryant" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have need for every page in my web app to be secure

Re: tiles

2004-04-07 Thread Tin Pham
Well it is technically possible if you start using frames or inline frames, but that is a whole other ballpark I do not recommend getting into. What you are asking is not possible because you have to reload the entire page. I do this in all my apps, but I do not get a flash. It may be your page i

Re: Problem with Formbean validate method forwarding to input page

2004-04-07 Thread Paul Barry
Make your input action an error page, which just has the error and no sensitive data and make a success forward that you only send the user to if everything checks out. Todd Bryant wrote: I have need for every page in my web app to be secure. What I originally did was extend the Action class to

RE: Problem with Formbean validate method forwarding to input pag e

2004-04-07 Thread Todd Bryant
That is a good question. The problem is the way struts processes requests. The first thing struts does when receiving a request to an action is to fill in the formbean associated with the action. Then it runs the validate() method of the formbean. If the method returns a non-empty ActionErrors obje

RE: Problem with Formbean validate method forwarding to input pag e

2004-04-07 Thread Todd Bryant
That is a good suggestion, and I had thought of that, but the problem is that a user would have to go from the error page back to the page they were on. This would make it prohibitively difficult to interact with this particular app (too many clicks). -Original Message- From: Paul Barry [

RE: Question about logic:iterator, continue

2004-04-07 Thread Gandle, Panchasheel
How do I say continue In the Logic:iterator tag Thanks Panchasheel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

  1   2   >