RE: how to nest a taglib in another taglib?

2004-04-07 Thread Greg Ludington
> the "attribute" in the page context. "> i know that has a way to do like this: but there is another way to do it? < You should be able to use the type attribute to avoid having to call toString() in your forum tag: Or, if you are dead set against using multiple tags, you could throw it

Re: Struts and Hibernate

2004-04-07 Thread Joe Hertz
Mario, hibernate config look like? If it's saying the dialect doesn't support identity (and MySQL clearly does -- I use it!), then I'm betting it's the dialect you've specified. What follows is a snippet from my hibernate.properties file. HTH -Joe hibernate.dialect = net.sf.hibernate.dialect

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

Dynamic 'action' on html:form

2004-04-07 Thread Mark Mandel
Hey all, I've got a tile that I want to be able to input the element as the action for the form it contains, but I can't seem to get it to work. I want to be able to do something like this: Tile insert: -- -- My Tile: -- ... "> .. -- But I all I get is errors - usuall

Re: Struts and Hibernate

2004-04-07 Thread Mario St-Gelais
David Friedman wrote: Nick, Your problem is the "type" set in your 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

Re: Struts and Hibernate

2004-04-07 Thread Mario St-Gelais
David Friedman wrote: Nick, Your problem is the "type" set in your 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

RE: Struts and Hibernate - this means you, Mario! :)

2004-04-07 Thread David Friedman
Sorry Nick. Hey Mario, read the docs/primer (a nice way to say RTFM. LOL) Regards, David -Original Message- From: Nick Heudecker [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 12:42 AM To: Struts Users Mailing List Subject: Re: Struts and Hibernate You addressed it to the wro

Re: Struts and Hibernate

2004-04-07 Thread Nick Heudecker
You addressed it to the wrong guy. No worries though. On 2004-Apr-08 00:04, David Friedman wrote: > Nick, > > Your problem is the "type" set in your tag. From (RTFM) the page: > http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping- > s1-4--generator > > See the "identit

RE: Struts and Hibernate

2004-04-07 Thread David Friedman
Nick, Your problem is the "type" set in your 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 Hy

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 Nick Heudecker
The next thing I'll suggest is changing your mapping to: If that still doesn't work, your best bet is to hit the Hibernate forums: http://forum.hibernate.org/ > > > > > > > > type="java.lang.String" /> > > > > Tried both native and identi

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 tag should look like: OR Go here for more: http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping-s1-4--gene

RE: "No bean specified" error

2004-04-07 Thread kamakshya mishra
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 textboxes. But when I include this code, it throws this error. KP "Phil

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 tag should look like: OR Go here for more: http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping-s1-4--generator On 2004-Apr-07

RE: "No bean specified" error

2004-04-07 Thread Philip, Mathew
check . action name should be representing the action mapping in struts-config.xml. Easy way to do is, view the source of the page displayed. Check for the form tag. See what the formbean is hope this helps -Original Message- From: kamakshya mishra [mailto:[EMAIL PROTECTED] Sent: Th

"No bean specified" error

2004-04-07 Thread kamakshya mishra
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 Em

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 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 Niall Pemberton
Sounds good to me. - Original Message - From: "MARU, SOHIL (SBCSI)" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, April 07, 2004 11:52 PM Subject: Application Context Variables Hello, I need to instantiate some objects and store them in appl

RE: "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 EmployeeDe

"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 EmployeeDe

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

2004-04-07 Thread Mark Mandel
Thank you! Worked a treat. The damn book lies I tell you... it lies... Cheers ;o) Mark -Original Message- From: Avinash Gangadharan [mailto:[EMAIL PROTECTED] Sent: Thursday, 8 April 2004 10:57 AM To: Struts Users Mailing List Subject: RE: 'Can't insert page' Error - But it's a tile!

"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: Struts and Hibernate

2004-04-07 Thread David Friedman
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 -Original Message- From: Mario St-Gelais [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07

Struts and Hibernate

2004-04-07 Thread Mario St-Gelais
Ok for half the day now I have been trying to make a small application with Hibernate as I am trying to learn it so I can use it with Struts. I tried an exemple application shown at http://homepage.mac.com/edahand/projects/java/example1.html but I keep getting an error message : net.sf.

how to nest a taglib in another taglib?

2004-04-07 Thread Ricky Lee
hi, thanks for reading.. i have a problem about nest a taglib in another taglib, just like this, what should i do? the "attribute" in the page context. "> i know that has a way to do like this: but there is another way to do it? please help methanks! __

Re: Need advice on design decisions and architecture issues.

2004-04-07 Thread Niall Pemberton
Skip Hollowell wrote: > This app will require a user to log in, and based upon who they are, they > will have certain priveleges in the system. Some of these priveleges may be > modified by a manager at anytime (user has processed their dollar limit for > the day, but needs a higher limit for wh

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

2004-04-07 Thread Avinash Gangadharan
Try this : -Original Message- From: Mark Mandel [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 5:50 PM To: [EMAIL PROTECTED] Subject: 'Can't insert page' Error - But it's a tile! Hey All - This is driving me nuts! I have a tile defined as: --

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

2004-04-07 Thread Mark Mandel
Hey All - This is driving me nuts! I have a tile defined as: -- -- And in my JSP code I am trying to include it by going: -- -- And all I get back is: -- Can't insert page 'tiles.content.common.downloadHeader' : /jsp/tiles/content/webpage/tiles.content.common.downloadHea

RE: RequestProcessor handling http requests

2004-04-07 Thread Tumi Mathibedi
It's a servlet mapping that maps the requests. Please note that "/" in front of your url-pattern is required in order to map the requests correctly. In you case you should replace action *.do With action /*.do All the request that have *.do pattern will be forward to org.apache.strut

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

Application Context Variables

2004-04-07 Thread MARU, SOHIL (SBCSI)
Hello, I need to instantiate some objects and store them in application context in my struts application. I was thinking of just writing a plugin and doing this in the init portion of the plugin. Is this the best option or is there a better or preferred way of doing this? Thanks, Sohil

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

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

2004-04-07 Thread Paul Barry
The form bean is populated by the RequestProcessor, but you can put your logic to validate the session where ever you want. The easiest way to understand it is to just look at the source code for org.apache.struts.action.RequestProcessor. It has a number of processXXX methods, one being proce

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

2004-04-07 Thread Christian Bollmeyer
On Wednesday 07 April 2004 22:43, Tin Pham wrote: +1 Tiles basically is a highly configurable extension to the RequestDispatcher.include() capabilities provided by the Servlet API. Therefore, the entire page has to be rebuilt upon each request, which is done in a flash, but sometimes not without

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 ( ) -Original Message--

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

2004-04-07 Thread Richard Yee
Todd, You should use a Filter for authentication. That way, you can remove all of the logic from your actions and JSP's and handle it in one central place. It is also a good practice to put all of your JSP's under WEB-INF so they can't be accessed directly and to use actions to forward to your JSPs

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.

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

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

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

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

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

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

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

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:

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

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

  1   2   >