RE: Multiple Forms per Submits

2004-05-18 Thread David Friedman
Hey James, Why not nest your form beans inside another, main form bean? Then you could access them using dot notation mainBean.thatBean.thisProperty, mainBean.someOtherBean.thatOtherProperty, etc. Regards, David -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Tu

RE: Tiles and changing the title based on content

2004-05-21 Thread David Friedman
Tim, Why not use a TilesAction (org.apache.struts.tiles.action package) and change/set tiles attributes using the putAttribute() method of the ComponentContext object. For more details, see the advances tiles PDF. -David -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED]

RE: Tiles and changing the title based on content

2004-05-22 Thread David Friedman
that would handle the default behaviour that I want the pages to have, and other actions would have to override this. If I did this, is there an appropriate method to do this default behaviour that happens before the execute method? Tim > -----Original Message- > From: David Friedman [mai

RE: Multi-page form: DynaValidatorForm.setPage(..) not called?

2004-05-24 Thread David Friedman
Kevin, How is the "page" a hidden variable in your jsp? Do you use (with or without value="someActualPageNumber") OR do you use a regular html (not JSP) tag, which, of course, would never be populated? Since I use different JSP's in my multi-page validations (one for each screen), I recommend y

RE: Struts - not compatible with IE 5.2 on MacIntosh???

2004-05-26 Thread David Friedman
Kendell, Have you turned on Javascript debugging (if it is available) in your Mac IE to see if it has any issues with the Javascript itself? Regards, David -Original Message- From: None None [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 10:27 PM To: [EMAIL PROTECTED] Subject: R

RE: Best way to connect to Database in struts

2004-05-27 Thread David Friedman
Next vote: Hibernate! (www.hibernate.org) Regards, David -Original Message- From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] Sent: Thursday, May 27, 2004 1:49 PM To: 'Struts Users Mailing List' Subject: RE: Best way to connect to Database in struts Use iBATIS SqlMaps and Dao framework.

RE: is OJB a good choice for Modeling ?

2004-05-28 Thread David Friedman
Now, now IMO Hibernate +1. :) -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 4:47 AM To: Struts Users Mailing List Subject: RE: is OJB a good choice for Modeling ? IMO, ibatis +1 >-Original Message- >From: Zaid [mailto:[EMAIL PROTE

RE: cant find hibernate2.jar file when downloading Hibernate

2004-05-31 Thread David Friedman
> I know that this question is out of struts, however, > I like to you guys, as u might have good experience. > > I downloaded hibernate-2.1, and in the installation it > says that there is a file called hibernate2.ja, however > I cant find this file. any advise ? First, it is usually in the main

RE: Struts/tiles: Run-time definition of which tile to include

2004-05-31 Thread David Friedman
Why not use two different put (or add) statements with a 'role=""' attribute? One for a role logged in, one for all other roles (might need blank quotes "" to make that work). If course, if you're not using container based authentication (JAAS), this probably won't work for you. Does that fit yo

RE: Struts/tiles: Run-time definition of which tile to include

2004-05-31 Thread David Friedman
A black whole? There are good examples in the tiles advanced features pdf listed linked to from the Struts site under the tiles tag developer guide (bottom of the page): http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf I didn't mention it because you described wanting a file-based co

RE: Struts/tiles: Run-time definition of which tile to include

2004-06-01 Thread David Friedman
If it is only "logged in" versus "not logged in", why not use this simple 2-step process: 1. Set the tiles:put, tiles:add, etc. in your tiles xml file to be the "not logged in" page. 2. In your action, subclass the TilesAction (class org.apache.struts.tiles.actions.TilesAction) and, in it's exec

RE: Problem in Client Side Validation in Struts

2004-06-05 Thread David Friedman
The form should have an onSubmit setting to invoke that javascript function. Have you assured that the web page you see in the browser: a) has the onsubmit listing your validation form function b) has the require() javascript function c) has the form named javascript function d) isn't showing any

RE: Newbie-Q regarding tiles

2004-06-05 Thread David Friedman
Sangeetha, Your error suggests a redirect is occurring, not a forward. A tile cannot be seen from the web, only from inside the struts framework, hence that error messager. I recommend you replace the contents of your welcome file with code to pull in and insert the tile, which goes something

RE: Hibernate Session to User Session

2004-06-07 Thread David Friedman
It's not very process intensive if you are using a connection pool where it just hands you an already-open connection. Hibernate can use a few different connection pools including JCS, C3P0, OSCache, etc. Regards, David -Original Message- From: Riyad Kalla [mailto:[EMAIL PROTECTED] Se

RE: Tiles: Use layout definitions from config within jsp?

2004-06-07 Thread David Friedman
I just posted about this a few days ago... You should read section 4.1.1 of the Tiles Advanced Features (link at bottom of the page of the struts site, section on the Tiles User Guide) which gives examples like so: <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> I do something like

RE: ValidatorForm vs ValidatorActionForm

2004-06-07 Thread David Friedman
Navjot, One validates based upon the action mapping so you can make /update.do and /create.do use the same Action class but have different validation rules. The other is based on the form itself so any Actions using that form would have the exact same validation methods. Regards, David -Orig

RE: Tiles: Use layout definitions from config within jsp? (Corrected + Working Answer)

2004-06-08 Thread David Friedman
Matt, Yes, I had the syntax wrong: <%@ taglib uri="struts-tiles" prefix="tiles" %> You can also override pieces using "tiles:put" statements in your JSP. This works (just tested it on Struts v1.1 + Tomcat). I found the correct syntax in the User and Developer Guides -> "Tiles Tags" -> "Tiles

RE:

2004-06-09 Thread David Friedman
I think Ram means add a 'value="Last Post Date"' or other text key to match. I also suppose that using Struts-EL (Expression Language), you could pull that value from a bean so you could change the value on the fly or based upon some other data. Not that I use Struts-EL. Regards, David -Orig

RE: Error Message: Tile path=".thread.Form" Does Not Start with a "/" Character

2004-06-09 Thread David Friedman
Do you have the tiles plugin setup properly in your struts-config.xml file? Or, if you are using a version earlier than V1.1, did you change the controller to a Tiles controller? Regards, David -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004

RE: Error Message: Tile path=".thread.Form" Does Not Start with a "/" Character

2004-06-09 Thread David Friedman
ot;/" Character I have successfully displayed many JSPs using tiles in my application. This path=".thread.Form" is the only one gives me this problem. Therefore, I think the tiles plugin is set up properly in my struts-config.xml. Regards, Caroline --- David Friedman <[EMAIL

RE: Error Message: Tile path=".thread.Form" Does Not Start with a "/" Character

2004-06-09 Thread David Friedman
Then, in my struts-config.xml, I have: and .thread.Form is a tile. Regards, Caroline --- David Friedman <[EMAIL PROTECTED]> wrote: > How are you trying to execute the forward > in your action? > > -David > > -Original Message- >

RE: html:img Tag Problem

2004-06-09 Thread David Friedman
I don't see your closing backslash greater than, />, to end the tag such as: Regards, David -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 1:09 AM To: [EMAIL PROTECTED] Subject: html:img Tag Problem In my JSP, I have a html:img tag: and

RE: Error Message: Tile path=".thread.Form" Does Not Start with a "/" Character

2004-06-09 Thread David Friedman
. Regards, Caroline --- David Friedman <[EMAIL PROTECTED]> wrote: > I wasn't actually asking for the JSP. > I was saying that Struts can complain > about slashes being missing if Tiles > isn't configured or is invoked properly. > I've seen something like your message &

RE: Error Message: Tile path=".thread.Form" Does Not Start with a "/" Character

2004-06-10 Thread David Friedman
Martin, The tile was defined in her included data with dot notation not slashes. I use dot notation myself so I know she's not crazy. Why did you suggest using slashes in the forward path when she has a tile defined with dots/periods? Regards, David -Original Message- From: Martin Gaint

RE: The Same Action With and Without a Form

2004-06-16 Thread David Friedman
Caroline, You could always reference the API to check your method name and parameters. The Commons BeanUtils API can be found here: http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils /BeanUtils.html The api states the method and parameter are: --- s

RE: Specifying JAAS permission on a per-action basis

2004-06-17 Thread David Friedman
Pow2ACL http://pow2acl.sourceforge.net/index.html might fit your JAAS high-end needs. It also integrates with Struts. Regards, David -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 9:02 AM To: 'Struts Users Mailing List' Subject: Specifyin

RE: Problems with tiles...

2004-06-17 Thread David Friedman
Why are you doing a tiles:getAsString inside the tiles:put in your JSP? I use it as a normal tag, not within a tiles:put block. Just my $.02 worth. Regards, David -Original Message- From: Thiago Souza [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 1:40 PM To: [EMAIL PROTECTED]

RE: Sharing session beetwen HTTP and HTTPS

2004-06-18 Thread David Friedman
SSLExt: http://sslext.sourceforge.net -Original Message- From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 2:33 AM To: 'Struts Users Mailing List' Subject: Sharing session beetwen HTTP and HTTPS Hi all, We are triying to switch application state from HT

RE: generators for struts

2004-06-24 Thread David Friedman
+1 ---> I use xdoclet w/Struts/DisplayTag/Hibernate inside Eclipse v2.1.3 -David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 4:42 AM To: [EMAIL PROTECTED] Subject: Re: generators for struts Check http://xdoclet.sourceforge.net/x

RE: How to implements Role Based Access Control in Struts ?

2004-06-24 Thread David Friedman
>From a database? Pow2ACL. http://pow2acl.sourceforge.net -Original Message- From: javen fang [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:41 PM To: Struts Users Mailing List Subject: Re: How to implements Role Based Access Control in Struts ? Thank you, bill. I have seen

RE: Recommend Struts Plugins for Eclipse?

2004-06-25 Thread David Friedman
I have two favorites a) The JBoss IDE PlugIn for it's XDoclet support of Struts b) The Sysdeo Tomcat plug-In to control Tomcat Occasionally, I'll use c) "Hibernate Synchronizer" d) "Hibernator" e) the http://www.pnehrer.com/ "RSS" module f) the Brosinski regex tester http://brosinski.com/stephan/

RE: How to integrate Tomcat server with Apache webserver pls urgent

2004-06-29 Thread David Friedman
Use the JK2 connector: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/ I've done it. The connector is available for download on the standard Tomcat download are: http://jakarta.apache.org/site/binindex.cgi Under the title "Tomcat Connectors" you'll find JK 1.2 and 2 connectors for various p

RE: How to extract columnNames values

2004-07-13 Thread David Friedman
Indra, I believe you want the latest verion of Hibernate which has some Metadata available which should have the column names. I've never used it so you might want to check out the hibernate forums on hibernate.org. Regards, David -Original Message- From: Indra Gunawan [mailto:[EMAIL PR

RE: Looking for Multiple file upload at once example

2004-07-20 Thread David Friedman
RE: Looking for Multiple file upload at once examplePaul, I'm cc'ing the list so other can learn about this. The problem is (unless it has been solved and I haven't heard about it) with the commons file uploads cannot upload multiple files as the very same form field name. Your velocity template

RE: Looking for Multiple file upload at once example

2004-07-20 Thread David Friedman
The "Robert Priest" example from the above link is a better explanation than my writing it down. Regards, David -Original Message- From: Perliti Scorzoni Paolo [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 11:08 AM To: David Friedman Subject: R: Looking for Multip

RE: [OT] Cvs windows

2004-07-27 Thread David Friedman
Use Eclipse's CVS integration and do your java/jsp/struts in that under CVS control! Regards David -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 27, 2004 12:54 PM To: Struts Users Mailing List Subject: Re: [OT] Cvs windows Tourtoise seems to dig cvsnt

RE: Hibernate

2004-07-27 Thread David Friedman
Shailender, You wrote your tables have over 10 Million records but the big question is, how many records is your query ACTUALLY RETURNing to you? I ask this because some types of Hibernate Queries iterate through records while other types load all records (that the database returned as you query

RE: Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread David Friedman
Geeta, I read Ricardo's message differently in that the new login would come from another machine, so the session wouldn't be shared and invalidated as you wrote below. ough, technically, it (the session) could be shared across computers if cookies were turned off and they had the same jsessionid

RE: Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread David Friedman
Ricardo, I can't think of any easy way to do that strictly within JAAS, but you didn't write if you were using JAAS. If you are using an Account object (of some sort) in the Session context, here is an idea for you: Have an application-scope object containing a map of usernames (or id numbers).

RE: File Upload

2004-07-29 Thread David Friedman
Shailender, Should I ask if the file is taking so long due to bandwidth issues such as trying to send it up over a 50kbps modem versus a cable modem, DSL, or other speedy connection? For the compression program I would recommend a zip variant since you can find them as zip/unzip on Linux/Mac plat

RE: OT/ Tomcat, Hibernate and MYSQL problem

2004-07-30 Thread David Friedman
Be careful if you use Hibernate with C3P0. If you're not using the latest Hibernate, the C3P0 connection pools may never be closed if you shut down only your webapp (not your whole Application Server). In early Betas of Hibernate v2.1.3 I had problems where my C3P0 pools weren't closing down when

RE: OT/ Tomcat, Hibernate and MYSQL problem

2004-07-31 Thread David Friedman
Marco, I had the same problem and I think I've tracked down what I did (I didn't document my solution properly) to fix it. Before I mention that, I would like to point out that I recall an issue with the MySQL connection drivers where autoCommit and autoReconnect wouldn't play together well and t

RE: Excel File Conversion

2004-08-05 Thread David Friedman
Are you talking about showing data in your JSP in an HTML table? Check out the export to Excel functions of displaytag: www.displaytag.org. For a specific example, the direct link is: http://www.displaytag.org/example-export.jsp Regards, David P.S. If you use tiles, read the work-around (header

RE: mapping an action twice with Xdoclet

2004-08-06 Thread David Friedman
I believe I've put two @struts.action declarations in one Java file for XDoclet and it put two entries in my struts-config.xml file. (Under eclipse/Xdoclet). If it helps, I updated the plug-in jars for the latest stable version in the Eclipse XDoclet folders (they were a version or two behind).

RE: pdf quirk

2004-08-06 Thread David Friedman
Sounds like you're including items from a regular (HTTP) and a secure (HTTPS) site. I had that message once but I was inadvertantly loading images from the HTTP site while the page was on the HTTPS site. What are all of your URLS in the rendered page before you hit the submit button? And what is

RE: using tiles with dynamic links

2004-08-10 Thread David Friedman
Well, why not use the pre-existing Jakarta Scrape taglib in your tile piece? To substitute in specific urls, you could use a tilesAction to set the included Tile which would probably require a hard-coded URL within each specific tile. Or, if your server supports EL, you could probably just insert

RE: Taglibs generating lots of warning messages

2004-08-11 Thread David Friedman
I used to turn on/off the logging for various modules (or everything) using the commons logging. Check that out. I used SimpleLog and turned everything off. Then, I used debug or info for the modules I'm interested in. http://jakarta.apache/org/commons/logging I think I turned it all off in my

RE: jdk 1.4.x support

2004-08-12 Thread David Friedman
Funny, kids. I'm on Struts v1.1 with Jdk 1.4.2_04_B05. Though I think the latest stable JDK is 1.4.2_05. Regards, David -Original Message- From: Yakov Belov [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 1:44 AM To: Struts Users Mailing List Subject: Re: jdk 1.4.x support Mor

RE: About Tiles

2004-08-17 Thread David Friedman
Koon, You can use a TilesAction to modify a part of your tile to display the appropriate HTML, JSP or tiles sub-page as well as fill in pieces such as "username", shopping cart totals, etc., such as those that might be stored in the user's session. Regards, David -Original Message- From:

RE: About Tiles

2004-08-17 Thread David Friedman
Try skimming through the "Tiles Advanced Features by Cedric Dumoulin" listed on the Strut site under this page: http://struts.apache.org/userGuide/dev_tiles.html The direct link to that PDF guide is: http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf Regards, David -Original Messag

RE: Relaod struts-config.xml

2004-08-17 Thread David Friedman
See the Struts (in my V1.1 documentation) class org.apache.struts.tiles.actions.ReloadDefinitionsAction. It looks like you just set a path, put that as the class action, and Viola! tiles then reloads automatically. Personally, I've never needed to reload my tiles. Regards, David -Original M

RE: Uploading Multiple Files

2004-08-17 Thread David Friedman
Steven, You should check the archives of this list. There were discussions in the last 3 weeks (or sooner) about it. I recall that thread covered uploading multiple files using indexed field names, that you can only upload one file per upload tag (just not supported in the Jakarta Commons Upl

RE: how to print out html with bean tag

2004-08-18 Thread David Friedman
Use a Bean:write with filter=false tag. Why did you write "on" and "off"? Are you giving those as your flags to the "filter" attribute? Docs for "bean:write" read: filter - If this attribute is set to true, the rendered property value will be filtered for characters that are sensitive in HTML, an

RE: Help on Action implementing thread for checking user registration thru email?

2004-08-18 Thread David Friedman
Just pop it into the Quartz scheduler. I've read about it and remember someone saying there was a Struts PlugIn for it. You could have it check hourly or exactly 24 hours after a registration. See: http://www.opensymphony.com/quartz And, should you want a pre-made plugIn http://demo.jgsulli

RE: Learning the basics

2004-08-18 Thread David Friedman
+1 for Struts In Action. I have it sitting on my desktop's case. :) Regards, David -Original Message- From: Jesse Alexander (KXT) [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 2:29 AM To: 'Struts Users Mailing List' Subject: RE: Learning the basics Have you looked at "Strut

RE: ValidatorForm issue

2004-08-25 Thread David Friedman
+1 Vic's on target when it comes to validating. This is an especially useful tactic when using DispatchActions for CRUD (Create Read Update Delete) actions. Regards, David -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic Sent: Wednesday, August 25, 2004 9:49 PM

RE: Question about upload multi files ???

2004-08-26 Thread David Friedman
Eric, You should do a search on the list. I remember reading, many months ago, that this wasn't possible with the Commons FileUpload - you have to use multiple file fields (one per file to upload), not select multiple files for one file field. Regards, David -Original Message- From: Eri

RE: Tiles - proper way for choosing a tile dynamically

2004-08-27 Thread David Friedman
Janne, You could set everything dynamically in the tile using something like this (don't quote me if you like it, just look it up!): public class TestAction extends TilesAction { public ActionForward execute(ComponentContext context, ActionMapping mapping, ActionFo

RE: Problems with Struts - newbie

2004-08-27 Thread David Friedman
Dear S.C.S, You listed a struts-config.xml message resource as "Embragec" so it needs to find a file "WEB-INF\classes\Embragec.properties" yet you didn't list that file with sample contents. Instead, you seem to have listed "Embragec" as a JDBC (container level) resource. I don't believe Struts

RE: skipping validation rules file from '/WEB-INF/validation.xml'

2004-09-01 Thread David Friedman
Jen, What is the entry in your struts-config.xml for validation? Is there a WEB-INF/validation.xml or WEB-INF/validations.xml? Regards, David -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 2:16 PM To: [EMAIL PROTECTED] Subject: skippi

RE: skipping validation rules file from '/WEB-INF/validation.xml'

2004-09-01 Thread David Friedman
27; Thanks for replying to my question. The validation entry in my struts-config.xml looks like: Currently, I do not have either validator-rules.xml or validation.xml file in the WEB-INF directory. Is it the cause of that message that appears in the Tomcat console? --- David F

RE: validate in ActionForm not working for errors

2004-09-01 Thread David Friedman
Are you sure the URL of the submit (when there are errors) isn't redirectly somewhere? Have you verified that the url is still /login.do when an error is submitted in your browser's URL location bar? Regards, David -Original Message- From: Saurabh Bhatla [mailto:[EMAIL PROTECTED] Sent: M

RE: form validation

2004-09-01 Thread David Friedman
Albert, The has an "input" parameter which the validate="true" will go to if any validation fails. That should be a JSP (/index.jsp), tile (.some.Tile.Name), or action (/index). Regards, David -Original Message- From: Leung, Albert [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 0

RE: form validation

2004-09-01 Thread David Friedman
Albert, When all that is correctly setup, I've only ever had problems with a misspelled forward inside my action or missing JSP/html/other pages. I've had a blank page show up when the forward was "intup" and I meant "input". Have you checked the code in your action? Have you turned on the loggin

RE: form validation (How to setup commons-logging to debug)

2004-09-01 Thread David Friedman
ow me how to turn on debugging and commons logging. Regards, Albert -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 3:35 PM To: Struts Users Mailing List Subject: RE: form validation Albert, When all that is correctly setup, I&#

RE: Hibernate VS ibatis, which is better?

2004-09-01 Thread David Friedman
+1 on the "Why should I use Spring" and "beat me over the head until I use it" statement. :) -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 4:47 PM To: 'Struts Users Mailing List' Subject: RE: Hibernate VS ibatis, which is better? I love

RE: form validation (How to setup commons-logging to debug)

2004-09-01 Thread David Friedman
List Subject: RE: form validation (How to setup commons-logging to debug) I'm sorry. I've check the documentation at the Jakarta site and I still don't know what you mean by org.apache.commons.logging.simplelog.log.SOMECLASS=LEVEL What is the SOMECLASS? -Original Message- F

RE: Hibernate VS ibatis, which is better?

2004-09-01 Thread David Friedman
umann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 4:53 PM To: Struts Users Mailing List Subject: Re: Hibernate VS ibatis, which is better? "Hibernate, making the hard things harder, and the easy things more difficult":) David Friedman wrote: > +1 on the "Why should

RE: Hibernate VS ibatis, which is better?

2004-09-01 Thread David Friedman
FYI... Hibernate has a createSQLQuery method in the Session class plus allows for named SQL Queries from a configuration file so you can have it fill in the "?"'d (question marked) parameters. Regards, David -Original Message- From: Nail, Evan Burke [mailto:[EMAIL PROTECTED] Sent: Wednes

RE: smart forwarding: page 253 - doesn't work

2004-04-02 Thread David Friedman
In the author's online section of www.manning.com/husted, you can search on "submit name=" and it is pointed out as a book error. Plus, you should use the standard html:submit "property" attribute instead of the mistyped "name" attribute. The direct link to the article in the manning website is:

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

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: Struts and Hibernate - this means you, Mario! :)

2004-04-07 Thread David Friedman
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 &quo

RE: Retrieve Data from Validation

2004-04-11 Thread David Friedman
Rafael, Are you using the html:text, html:textarea and other tags? They should automatically re-populate the appropriate answer. Can you give us some relevant form code examples from a troublesome JSP? Regards, David -Original Message- From: Rafael Chiarinelli [mailto:[EMAIL PROTECTED]

RE: Retrieve Data from Validation

2004-04-11 Thread David Friedman
Incluir Usuário Cancelar

RE: basic problem in java

2004-04-17 Thread David Friedman
What is your CLASSPATH variable set to and is java installed in c:\biren\java? Regards, David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, April 17, 2004 2:47 AM To: Struts Users Mailing List Subject: basic problem in java Hi,

RE: basic problem in java (likely is a CLASSPATH problems on Windows)

2004-04-18 Thread David Friedman
TED] wrote: > My Classpath variable is set to : > C:\jdk1.3.1\bin;c:\jdk1.3.1\lib\tools.jar;c:\jdk1.3.1\lib\rt.jar;c:\Drivers\ classes111.zip;c:\Drivers\classes12.zip;c:\Drivers;c:\biren\java > > JDK is installed > > C:\jdk1.3.1 > > can you please help me ?? >

RE: basic problem in java

2004-04-20 Thread David Friedman
"David Friedman" <[EMAIL PROTECTED]> 17-04-04 08:54 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "Struts Users Mailing List" <[EMAIL PROTECTED]> cc

RE: basic problem in java

2004-04-20 Thread David Friedman
ritpal Dhaliwal -Original Message----- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 2:09 PM To: Struts Users Mailing List Subject: RE: basic problem in java So Birendar, What was your problem? I never saw a post about you resolving it. (and, curiosity killed the cat)

RE: Struts and Hibernate

2004-04-21 Thread David Friedman
ect=true > -Original Message- > From: Mario St-Gelais [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 08, 2004 1:08 AM > To: Struts Users Mailing List > Subject: Re: Struts and Hibernate > > > David Friedman wrote: > > >Nick, > > > >

RE: Struts and Hibernate

2004-04-21 Thread David Friedman
sses/com/edhand/whatever.java Regards, David -Original Message- From: Mario St-Gelais [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 10:14 PM To: Struts Users Mailing List Subject: Re: Struts and Hibernate David Friedman wrote: >Mario, > >Where is your hibernate.properties f

RE: basic problem in java

2004-04-21 Thread David Friedman
public class test{ public static void main(arg [] String ){ System.out .println("My Apologies To all"); } } Birendar Singh Waldiya Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com "David Friedman" <[EMAIL PROTECTED]> 21-0

RE: basic problem in java

2004-04-21 Thread David Friedman
y but David im sorry i dont know "dir / x " and what is 8.3 directory names ?? I will correct the classpath surely. Birendar Singh Waldiya "David Friedman" <[EMAIL PROTECTED]> 22-04-04 11:19 AM Please respond to "

RE: Hibernate 2.1.X and Struts 1.2

2004-04-22 Thread David Friedman
Do you have any hibernate related messages in any of your logs? And the one or two lines above/below NoClassDefFoundError? Regards, David -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Thursday, April 22, 2004 5:02 PM To: 'Struts Users Mailing List' Subject: RE: Hiber

RE: Multiple Action Servlet Mappings

2004-04-22 Thread David Friedman
Toby, Struts ActionServlet only allow configuration for one mapping. From your experiments, the last one in the web.xml sounds like it takes precedence and resets internal ActionServlet settings for the latest mapping. Think of it this way: If you had two mappings, how would you make the html:fo

RE: Hibernate 2.1.X and Struts 1.2

2004-04-22 Thread David Friedman
va:256) I know it successfully reads my hibernate config, because it will complain about classes that attempt to refer to unmentioned .hbm.xml files. It still works great under 2.0.3 > -Original Message- > From: David Friedman [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 22

RE: Hibernate 2.1.X and Struts 1.2

2004-04-22 Thread David Friedman
/../javalibs/hibernate-2.1/eg ../../javalibs/hibernate-2.1/src ../../javalibs/hibernate-2.1/test ../../javalibs/hibernate-2.1/doc/api > -Original Message- > From: David Friedman [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 22, 2004 10:47 PM > To: S

RE: generate struts ActionForm & strut's jsp from hibernate's mapping

2004-04-22 Thread David Friedman
What's wrong with the hibernate extension tools and the Code Generator that creates .java files from the hbm.xml files you give it? See: http://prdownloads.sourceforge.net/hibernate/?sort_by=date&sort=desc Item: hibernate-extensions-2.1.zip (or the 2.0.2 zip file for 2.0.X versions) I've only use

RE: Hibernate 2.1.X and Struts 1.2

2004-04-22 Thread David Friedman
avalibs/hibernate-2.1/lib/commons-lang-1.0.1.jar] > [../../javalibs/hibernate-2.1/lib/xalan-2.4.0.jar] > [../../javalibs/hibernate-2.1/lib/ehcache-0.6.jar] > [../../javalibs/hibernate-2.1/hibernate2.jar] > > [../../javalibs/hibernate-2.1/lib/commons-dbcp-1.1.jar] > > [../../j

RE: generate struts ActionForm & strut's jsp from hibernate's mapping

2004-04-22 Thread David Friedman
ame, age) become String. Then in the AddPerson.jsp I will have something repeated like this: Is there anyone outthere who makes tool for such thing? It should not be very difficult to make one, but I just want to avoid reinvent the wheel. regards, Dion -Original Message- From: David Fried

RE: generate struts ActionForm & strut's jsp from hibernate's mapping

2004-04-23 Thread David Friedman
d ActionForm before, I'll look at it then. Thanks for your opinions. regards, ~dion -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Friday, April 23, 2004 2:03 PM To: Struts Users Mailing List Subject: RE: generate struts ActionForm & strut's jsp from h

RE: generate struts ActionForm & strut's jsp from hibernate's map ping

2004-04-23 Thread David Friedman
astName, age) > become String. > > Then in the AddPerson.jsp I will have something repeated like this: > > > > > Is there anyone outthere who makes tool for such thing? > It should not be very difficult to make one, but I just want to avoid > reinvent the wheel. &g

RE: background process

2004-05-03 Thread David Friedman
I haven't used it yet, but I suppose you could create a one-time (or repeating) job from within your Action into the Quartz scheduling engine (free): (http://www.opensymphony.com/quartz/features.html) Regards, David -Original Message- From: Bryan Hunt [mailto:[EMAIL PROTECTED] Sent: Mon

RE: Action 2.0 xdoclet?

2006-05-24 Thread David Friedman
I haven't tried it but since webwork is Struts 2.0, won't the Xdoclet Webwork tags do most of the job (except for any brand new Action 2.0 specific add-ons to WebWork): http://xdoclet.sourceforge.net/xdoclet/tags/webwork-tags.html Regards, David -Original Message- From: Emmanouil Batsis

RE: display tag ??

2006-05-24 Thread David Friedman
I think your JSP skills are a little rusty because the JSP page source code you included spelled it out for you: 1) Import the class org.displaytag.sample: request.setAttribute( "test", new ReportList(6) ); 3) Use a displaytag table on the object (in whatever scope) named "test": It m

RE: display tag ??

2006-05-24 Thread David Friedman
de of that web site : http://displaytag.homeip.net/displaytag-examples-1.1/example-nocolumns.jsp David Friedman <[EMAIL PROTECTED]> wrote: I think your JSP skills are a little rusty because the JSP page source code you included spelled it out for you: 1) Import the class org.displ

RE: urgent

2006-05-25 Thread David Friedman
I'll chime in like everyone else plus give you alternatives: Have you even looked at the DisplayTag documentation, live examples or looked at the configuration information? The examples show the alternating row css coloring is automatic (even[row]/odd[row] css styles) while the configuration page

RE: Hi, need of help

2006-05-26 Thread David Friedman
Maybe we should ask if he is going to use Action 1 (Classic) or Action 2 (Webwork). Or is he going wild and going to use JSF/Shale. I wonder if he's confused after reading this so I won't even mention Streks for Annotations. I'm soo evil for mentioning this. LOL. Regards, David -Original

RE: struts not forwarding after action

2006-05-30 Thread David Friedman
Homero, Often, people starting with Struts see blank pages if they use the wrong method in their Action class. Are you using perform() instead of execute() as your method? Your struts-config.xml file suggests you are using an outdated book because it lists your config DTD as version 1.0, not som

RE: Maven + Struts

2006-05-31 Thread David Friedman
Your error suggests your war file doesn't have the appropriate struts .jar file(s) in /WEB-INF/lib. I had a similar Maven problem until I double checked I was using the proper Maven directory structure AND had appropriate pom.xml project dependencies. Have you double checked that Maven put your .

  1   2   3   >