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

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

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;prefix=fmt % %@

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 arg position=0/ instead. -Ursprüngliche Nachricht-

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

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

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

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

No bean specified error

2004-04-07 Thread Prasad, Kamakshya
Hi, I have this line in my jsp table logic:iterate id=courseDetailsLocal name=employeeDetailsForm property=courseDetailsArray indexId=ctr tr tdhtml:text name=employeeDetailsForm property='%= courseDetails[ + ctr + ].name %'//td /tr /logic:iterate

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

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

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

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

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

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: logic:iterate name=names id=name trtdbean:write name=name//td/tr /logic:iterate Gives one column trtdname1/td/tr trtdname2/td/tr trtdname3/td/tr

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:

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

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: forum:hasContent content=${attribute}/forum:hasContent If you're not using Tomcat 5 (or some other JSP 2.0 container), then it's a little harder. -Original Message- From: Ricky

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,

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:00:16

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 :)

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 you have

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

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 iBatis

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 from my

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

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

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

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, I am

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

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

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. arg0 key=.. resource=true/false / 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

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

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 logic:messagesPresent tag. And lastly, try to use a simple jsp to make it work first, then use xsl. HTH, Saul -Original

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. arg0 key=.. resource=true/false / in your validation.xml file. And as per my earlier post with this same problem, do you have the

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] wrote

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:

tiles

2004-04-07 Thread Phan, Hung
Hi all, I have a question regarding tiles. One of my page uses a layout like body leftmargin=0 rightmargin=0 bottommargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#E6E6E6 onUnload=closeAllSubwindows() onLoad=initWin(document.forms[0]) table border=1 frame=void

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

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

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

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 checking

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

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

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 action path=/logon forward=/WEB-INF/jsp/index.jsp/ 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

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: 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

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

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]

Re: Problem with Formbean validate method forwarding to input page

2004-04-07 Thread Paul Barry
Maybe you should be handling your security in the request processor. Have a method like this: protected ActionForward processActionPerform( HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping)

RE: DynaAction or Map Backed Form?

2004-04-07 Thread Ray Madigan
Im not sure how to do it with the iterate tag, I use the c:forEach tag in the jstl taglib. It goes something like this: Assume service is a bean with accessors getDocuments ( ) and getId ( ) Assume document is a bean wit accessors getId ( ) and getName ( ) c:forEach var='service'

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

2004-04-07 Thread Todd Bryant
Interesting. I have never looked at the request processor before. The main question I have is - is the formbean populated BEFORE the request processor runs or after? If the form bean is populated before the method you mention, then the request process will still be circumvented by the formbean.

RE: Question about logic:iterator, continue

2004-04-07 Thread Richard Yee
Panchasheel, Use the Logic: testing tags (equal, notEqual, lessEqual, etc.) or the JSTL if tag. Regards, Richard --- Gandle, Panchasheel [EMAIL PROTECTED] wrote: How do I say continue In the Logic:iterator tag Thanks Panchasheel

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

2004-04-07 Thread Ray Madigan
Why don't you tell your action not to validate, and call validate yourself in your action. Seems like you will have all of the control you need. -Original Message- From: Paul Barry [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 3:18 PM To: Struts Users Mailing List Subject:

Module navigation

2004-04-07 Thread Marian Schedenig
In our Struts-/Tile-based web application, we have troubles navigating between modules. A simplified scenario looks like this: Default module - Portal page, login,... Module users - User management Module admin - Administration settings ... All pages are based on one basic Tiles definition,

RE: 'Can't insert page' Error - But it's a tile!

2004-04-07 Thread Avinash Gangadharan
Try this : tiles:insert definition=tiles.content.common.downloadHeader tiles:put name=category value=Webpage / /tiles:insert -Original Message- From: Mark Mandel [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 5:50 PM To: [EMAIL PROTECTED] Subject:

No bean specified error

2004-04-07 Thread Prasad, Kamakshya
Hi, I have this line in my jsp table logic:iterate id=courseDetailsLocal name=employeeDetailsForm property=courseDetailsArray indexId=ctr tr tdhtml:text name=employeeDetailsForm property='%= courseDetails[ + ctr + ].name %'//td /tr /logic:iterate

RE: No bean specified error

2004-04-07 Thread Prasad, Kamakshya
Hi, I have this line in my jsp table logic:iterate id=courseDetailsLocal name=employeeDetailsForm property=courseDetailsArray indexId=ctr tr tdhtml:text name=employeeDetailsForm property='%= courseDetails[ + ctr + ].name %'//td /tr /logic:iterate

Re: Struts and Hibernate

2004-04-07 Thread Mario St-Gelais
David Friedman wrote: What is the contents of your hibernate.properties file (or hibernate.cfg.xml file) and in what directory did yout place it? Also, how did you create/instantiate the SessionFactory? Regards, David I used the hibernate.properties file as per the exemple :

RE: Application Context Variables

2004-04-07 Thread Mark Mandel
Personally I prefer using a ServletContextListener myself. Mark -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, 8 April 2004 12:06 PM To: Struts Users Mailing List Subject: Re: Application Context Variables Sounds good to me. - Original Message

Re: Struts and Hibernate

2004-04-07 Thread Nick Heudecker
It sounds like you didn't configure the primary key generation correctly. I believe that MySQL supports identity keys, not sequences. Your generator tag should look like: generator type=identity/ OR generator type=native/ Go here for more:

Re: Struts and Hibernate

2004-04-07 Thread Mario St-Gelais
Nick Heudecker wrote: It sounds like you didn't configure the primary key generation correctly. I believe that MySQL supports identity keys, not sequences. Your generator tag should look like: generator type=identity/ OR generator type=native/ Go here for more:

Re: Struts and Hibernate

2004-04-07 Thread Nick Heudecker
The next thing I'll suggest is changing your mapping to: id name=id column=id type=java.lang.Long unsaved-value=null If that still doesn't work, your best bet is to hit the Hibernate forums: http://forum.hibernate.org/ hibernate-mapping class name=com.edhand.hibernate1.Item table=item

RE: No bean specified error: Help Please

2004-04-07 Thread kamakshya mishra
Please someone help me on this. kamakshya mishra [EMAIL PROTECTED] wrote:Hi, The action name is the same as in the xml. Actually there are lot of string fields in the form. If i remove this particulat code and submit then it works fine. The form comes back prepouplated with the values in the

RE: Struts and Hibernate

2004-04-07 Thread David Friedman
Nick, Your problem is the type set in your id.../ tag. From (RTFM) the page: http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping- s1-4--generator See the identity description, which reads: identity - supports identity columns in DB2, MySQL, MS SQL Server, Sybase and

Re: Struts and Hibernate

2004-04-07 Thread Mario St-Gelais
David Friedman wrote: Nick, Your problem is the type set in your id.../ tag. From (RTFM) the page: http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping- s1-4--generator See the identity description, which reads: identity - supports identity columns in DB2, MySQL, MS

Re: Struts and Hibernate

2004-04-07 Thread Mario St-Gelais
David Friedman wrote: Nick, Your problem is the type set in your id.../ tag. From (RTFM) the page: http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping- s1-4--generator See the identity description, which reads: identity - supports identity columns in DB2, MySQL, MS

Struts.jar requires entry in weblogic start up script

2004-04-07 Thread Sudhakar G
HI All, Is there any way of avoiding struts.jar entry in the weblogic start up script.Even through the struts.jar is present in the part of war file to load some plug-in files it requires an entry in start up command.Can any one help me out, do deploy the ear without any entry in the start