Struts DB Access :: Best Practices

2005-03-09 Thread karthikeyan balasubramanian
Hi all, I am planning to use Tomcat/Struts/MySQL in my project. Database operation's can involve more selects and little bit of update/insert operations. I want to know what is the best way to access database using struts. I did a research and found few good ways: 1. Struts using

Re: Struts DB Access :: Best Practices

2005-03-09 Thread Sebastian Hennebrueder
Struts using Hibernate. Hibernate is quite easy to learn and has a large community. Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB karthikeyan balasubramanian wrote: Hi all, I am planning to use Tomcat/Struts/MySQL in

Re: Struts DB Access :: Best Practices

2005-03-09 Thread Vamsee Kanakala
karthikeyan balasubramanian wrote: I want to know what is the best way to access database using struts. This is just one way: http://www.ibatis.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Pass a collection from struts action to javascript validation

2005-03-09 Thread Bing Qiao
Hi, I'm trying to use custom validator on client side. One problem I can't figure out is how to pass a collection or array of strings to a jsp and how to access it from javascript code for the custom validation rules. I thought about using hidden objects. But I'm really new in both javascript and

Re: MVC Frameworks

2005-03-09 Thread Nicolas De Loof
I get such a case recently : we are using Spring as IoC container. On some situation we use a simple AOP interceptor. Our customer have found on the net a benchmark comparing Spring vs AspectJ vs AspectWerkz. The bench result was not good for Spring (compared to AspectWerkz). The technical

How to get the user locale from a jsp

2005-03-09 Thread delbd
Hello How could i get the the user locale, as a page scoped bean, from struts. I know there is a struts util class to get the user locale, but i would like to get it without resorting to the use of a scriptlet. Is there a more elegant way of doing this? I need pass the user selected language

RE: Struts DB Access :: Best Practices

2005-03-09 Thread Günther Wieser
i prefer to use OJB for persistence, because i like the approach of coming from the object world and define the mapping to the database, while hibernate (and others) tend to come from the database and help you generate classes. OJB is very easy to use, and you won't see anything related like PK-FK

[Help] I need tutorial which tells us how to integrate Struts and Hibernet

2005-03-09 Thread Pham Anh Tuan
Hi all, Who can help me or show me where I can get tutorial which tells me how to integrate Struts and Hibernet. thanks for advance Anh Tuan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet

2005-03-09 Thread Sebastian Hennebrueder
On my Website there is a simple Struts Hibernate tutorial using JBOSS as application Server. Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Pham Anh Tuan wrote: Hi all, Who can help me or show me where I can get tutorial

Re: Struts DB Access :: Best Practices

2005-03-09 Thread Sebastian Hennebrueder
I do not completely agree here. You can choose from where you come and to where you go using Hibernate. As other approach I only know EJB and here it depends on the tools you have. With xDoclet your start with the class and go to the db over the mappings. Regards Sebastian Hennebrueder

Re: How to get the user locale from a jsp

2005-03-09 Thread Flemming G. Jensen
You get the local object from the request with the getLocale() method.. --Flemming -Oprindelig meddelelse- From: delbd [EMAIL PROTECTED] Date: Wed, 9 Mar 2005 10:14:36 +0100 To: user@struts.apache.org Subject: How to get the user locale from a jsp Hello How could i get the the user

Re: How to get the user locale from a jsp

2005-03-09 Thread delbd
Unfortunately, this is the locale sent by browser only. Struts store the user locale in session under the key Globals.LOCALE_KEY. There is a util class which get this info from session and, if this is empty, return the browser locale. So it is possible to programmatically change the user

Validation required in Checkbox

2005-03-09 Thread senthil Kumar
Hello all., I have a Two Box called admin and lead. Admin is checked mean lead disabled. admin value is Y and lead value is N When admin is unchecked mean lead should Enabled and vice versa also. I put my code for your reference, if any one changed and give the idea to me. Thankd in advance.

Re: Struts DB Access :: Best Practices

2005-03-09 Thread karthikeyan balasubramanian
Hi all, Thank you all for inputs. Now my list has grown big : 1. Castor 2. JDO 3. iBATIS 4. Hibernate 5. OJB I looked at iBATIS, it seems to be simple and easy to use. I will also check out others and let you know my thoughts. Have a great day. Karthikeyan B On Wed, 09 Mar 2005

RE: Eliminate Setup Actions

2005-03-09 Thread Pilgrim, Peter
-Original Message- From: Ben Taylor [mailto:[EMAIL PROTECTED] Sent: 05 March 2005 08:03 To: Struts Users Mailing List Subject: Eliminate Setup Actions Hi, Can anyone tell me if there is an easy way to put information (required to populate drop down boxes using data from a db)

Struts, ActionForward and Redirect

2005-03-09 Thread Marco Mistroni
Hello all, I have a struts app that needs to call a servlet in another webapplication. I have checked the docs that I can set an ActionForward with setRedirect=true, but when I retrieve it from mapping it returns me null.. So, will it redirect to a page in a different webapp? From

RE: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Pilgrim, Peter
-Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] ==== I have no idea why Craig would say that the RequestProcessor is somehow related to the Template Method pattern. It just isn't. ==== Ithink that the request processor defines a set of method to process

Losing form values after validating

2005-03-09 Thread Fredrik Boström
Hi all. I'm working on a small message-forum project and have stumbled upon many problems along the way, most of which I've been able to more or less solve. To the most recent problem, though, I haven't found any solution despite lots of googling. I'm using a DynaValidatorActionForm to

Re: Validation required in Checkbox

2005-03-09 Thread Jeff Beal
Use a radio box instead of a checkbox. Radio boxes automatically do what you are trying to do, and have the added advantage of being the standard way to do it. On Wed, 9 Mar 2005 16:52:05 +0530, senthil Kumar [EMAIL PROTECTED] wrote: Hello all., I have a Two Box called admin and lead.

AW: Validation required in Checkbox

2005-03-09 Thread Ole Hildebrandt
Hi, I think a radiobutton would could be the better choice: tr td class=colorbean:message key=systemadminconsol.createuser.admin/nbsp; /td td html:radio name=AddUserForm property=modus value=admin tabindex=20 / /td /tr tr td class=colorbean:message

Re: How to get the user locale from a jsp

2005-03-09 Thread Flemming G. Jensen
Well, to be more specific on the question How could I get the user locale,.. Here is what I do in an applications which supports 3 language: 1) All incoming requests are filtered. If the session is new the browsers locale is investigated and stored in a session object alng with other

RE: MVC Frameworks

2005-03-09 Thread Fogleson, Allen
It's not a matter of it impacting the UI, it's a matter of approval of architecture. The client of course approves the entire architecture and though ultimately they allowed Spring it was not specified in the architecture docs as the framework we would use to manage the instantiation. The real

RE: MVC Frameworks

2005-03-09 Thread Fogleson, Allen
Yeap that is the game. I have been a first option kind of guy for a long time. This particular project was not mine at inception, or construction, I ended up with it in my lap at transition time. Unfortunately for me I had to do the apologizing/explaining :) Al -Original Message- From:

RE: Pass a collection from struts action to javascript validation

2005-03-09 Thread Chad Baker
Try this site .. http://www.w3schools.com/, specifically the JavaScript section http://www.w3schools.com/js/default.asp and the JavaScript HTML DOM section http://www.w3schools.com/js/js_obj_htmldom.asp Chad -Original Message- From: Bing Qiao [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Dakota Jack
TEMPLATE! METHOD! TEMPLATE! METHOD! TEMPLATE METHOD! Scheesch! Help! The RequestProcessor is NOT difficult to understand. It is a java CLASS, neither an abstract class nor an interface, which has one principal public method, viz. process(...) which involves a lot of code which is further

Missing field name using validator

2005-03-09 Thread Sébastien GALLET
Hi I've got a problem using validator in struts. If I put the message-resources in global key (key not defined) everything works fine : Validation failed. * The field name2 is required. But if I put it in a custom key (ie person) the field name in error isn't initialize : Validation failed.

Is There a Tool for JSF?

2005-03-09 Thread Caroline Jen
There are many tools that help developing the Struts; for example, EasyStruts, StrutsConsole, StrutsBox. We also have the NitroX, Lomboz, etc. that help debugging. Is there any tool available for JSF? __ Celebrate Yahoo!'s 10th

Re: MVC Frameworks

2005-03-09 Thread Dakota Jack
Whatever the corporate game, it would not be a liability to know the respective merits of various frameworks in making a presentation. If someone with authority or with the money decides they want to do something I don't like, that has never impacted me. The only time I have really suffered is

??????????? in JSP

2005-03-09 Thread Eric Lemle
My app server runs on a unix box and I am getting lots of question marks showing up in my JSP. How do I fix this problem? I downloaded the Programmers File Editor but it doesn't seem to help at all. -Eric - To unsubscribe,

RE: providers which can host a struts web application

2005-03-09 Thread Treviño De la Garza, Isidoro
You can also check out http://www.xpress.com.mx they are cheap and have tomcat servers and other goodies Isidoro Treviño de la Garza Sistemas Accival Desarrollo Ext. 05620 Moncayo Reforma 404 1er piso. -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Tuesday,

Re: Is There a Tool for JSF?

2005-03-09 Thread Bryce Fischer
Caroline Jen wrote: There are many tools that help developing the Struts; for example, EasyStruts, StrutsConsole, StrutsBox. We also have the NitroX, Lomboz, etc. that help debugging. Is there any tool available for JSF? Sun JavaStudio Creator

Re: MVC Frameworks

2005-03-09 Thread Simon Chappell
Actually, it *can* be a liability to mention anything that management don't want spoken of. For example: we're about to start a selection process for a continuous integration tool and someone (name withheld to protect the innocent, but it wasn't me) mentioned (name of tool withheld to protect the

Re: Is There a Tool for JSF?

2005-03-09 Thread Matthias Wessendorf
Also MyEclipseIDE has support for JSF. -Matthias Bryce Fischer wrote: Caroline Jen wrote: There are many tools that help developing the Struts; for example, EasyStruts, StrutsConsole, StrutsBox. We also have the NitroX, Lomboz, etc. that help debugging. Is there any tool available for JSF? Sun

Re: Is There a Tool for JSF?

2005-03-09 Thread Hubert Rabago
Also check out the Products page at jsfcentral.com http://www.jsfcentral.com/products/index.html On Wed, 09 Mar 2005 16:06:12 +0100, Matthias Wessendorf [EMAIL PROTECTED] wrote: Also MyEclipseIDE has support for JSF. -Matthias Bryce Fischer wrote: Caroline Jen wrote:

Re: Is There a Tool for JSF?

2005-03-09 Thread Matthias Wessendorf
and don't forget to look at http://jamesholmes.com/JavaServerFaces/ ;) Hubert Rabago wrote: Also check out the Products page at jsfcentral.com http://www.jsfcentral.com/products/index.html On Wed, 09 Mar 2005 16:06:12 +0100, Matthias Wessendorf [EMAIL PROTECTED] wrote: Also MyEclipseIDE has

RE: Is There a Tool for JSF?

2005-03-09 Thread James Holmes
Hi Caroline, I created a tool called Faces Console 2 years ago that is very similar to Struts Console. It has support for the latest versions of JavaServer Faces. You can find Faces Console and links to just about everything JSF on my site at: http://www.jamesholmes.com/JavaServerFaces/ James

Re: MVC Frameworks

2005-03-09 Thread Woodchuck
no no no, you guys are playing the game wrong. i bring my 32oz Easton (tm) black magic baseball bat to these meetings. i don't have problems getting my way. the truth is weak, we need to help it get heard! woodchuck --- Simon Chappell [EMAIL PROTECTED] wrote: Actually, it *can* be a

Re: MVC Frameworks

2005-03-09 Thread Simon Chappell
I think that's generally frowned upon by most Human Resource departments. On Wed, 9 Mar 2005 07:17:54 -0800 (PST), Woodchuck [EMAIL PROTECTED] wrote: no no no, you guys are playing the game wrong. i bring my 32oz Easton (tm) black magic baseball bat to these meetings. i don't have problems

Servlet and JSP dependencies for Struts, JSF and Shale

2005-03-09 Thread Simon Chappell
I need to pull a document together that lists the JSP and Servlet versions required by each of the available versions of Struts, JSF and Shale. I have looked all over the Struts website and wiki, but I'm not finding what I'm looking for. Can anyone help?

Re: Is There a Tool for JSF?

2005-03-09 Thread Duncan Mills
Check out Oracle JDeveloper 10.1.3 preview - you can download that for free from http://www.oracle.com/technology/software/products/jdev/index.html This has both Struts and JSF visual modeling as well as JSP WYSIWYG editing. ( And no you don't need Oracle Application Server or database to use it

RE: MVC Frameworks

2005-03-09 Thread Fergal O'Shea
A novel way of resolving differences with management, I'd say. I think that's generally frowned upon by most Human Resource departments. On Wed, 9 Mar 2005 07:17:54 -0800 (PST), Woodchuck [EMAIL PROTECTED] wrote: no no no, you guys are playing the game wrong. i bring my 32oz Easton (tm)

Re: Servlet and JSP dependencies for Struts, JSF and Shale

2005-03-09 Thread Hubert Rabago
Try http://struts.apache.org/userGuide/installation.html#Prerequisites - Hubert On Wed, 9 Mar 2005 09:27:06 -0600, Simon Chappell [EMAIL PROTECTED] wrote: I need to pull a document together that lists the JSP and Servlet versions required by each of the available versions of Struts, JSF and

Re: MVC Frameworks

2005-03-09 Thread Dakota Jack
I understand, Simon. Believe me, I do. But, knowing and saying are two different things. On Wed, 9 Mar 2005 09:06:38 -0600, Simon Chappell [EMAIL PROTECTED] wrote: Actually, it *can* be a liability to mention anything that management don't want spoken of. For example: we're about to start a

RE: Is There a Tool for JSF?

2005-03-09 Thread Michael Oliver
We use Exadel's Eclipse4Web http://www.exadel.com/products_eclipse4web.htm Michael Oliver CTO Alarius Systems LLC 3325 N. Nellis Blvd, #1 Las Vegas, NV 89115 Phone:(702)643-7425 Fax:(702)974-0341 *Note new email changed from [EMAIL PROTECTED] -Original Message- From: Caroline Jen

DataSource in

2005-03-09 Thread Jean Stamm
Hello, In a Struts app I use the standard DataSource interface to implement the connection pooling to my DB. I use it in my Actions, calling getDataSource with the request as argument like getDataSource(request, datasourcename). I also have a plug-in which puts an array of beans in the

Re: Struts, ActionForward and Redirect

2005-03-09 Thread Hubert Rabago
I would recheck the config information if I were you. If you can't retrieve it from the mapping, it could be a typo problem. Otherwise, paste your code so we can see what you're dealing with. On Wed, 9 Mar 2005 12:05:07 -, Marco Mistroni [EMAIL PROTECTED] wrote: Hello all, I have

Design problem

2005-03-09 Thread Gaet
Hi, I have page with a list of employees. On that list, if you click on an employee name, I want to redirect to an edit page...easy no? but how to define the complete process into struts-config? Below you will find my actual struts-config but here is my problem : I have defined the

Re: Design problem

2005-03-09 Thread Nicolas De Loof
You should define 2 mappings for detail : a /showEmployeeDetail without validation (or a unique rule employeeId required) a /updateEmployeeDetail with validation. Your action can be a dispatch action if you don't want to have 2 classes. Nico. Gaet a écrit : Hi, I have page with a list of

RE: Struts, ActionForward and Redirect

2005-03-09 Thread Marco Mistroni
Hello, Thanx a lot for reply.. Yes it was a problem in my mappings.. Thanx again and regards marco -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: 09 March 2005 16:00 To: Struts Users Mailing List Subject: Re: Struts, ActionForward and Redirect

Re: Design problem

2005-03-09 Thread Woodchuck
another alternative, if you want to keep your action definition the same (ie. not define any new action) set your action validate to true in struts-config.xml define a hidden input value on your form update this value when the save/update button is clicked (simple javascript) in your action

Re: [ot] Need a webpage that for newsletter sign-ups without internet access?

2005-03-09 Thread amin
Check out http://javascript.internet.com/cookies/address-book.html#source Save it in a cookie, then later on read the cookie, present it as a web page for your data export needs. Amin http://www.cheblogs.com/roller/page/princeamin/ I have an issue I need help with. I currently have a Struts

Arrays/PlSql Tables

2005-03-09 Thread CRANFORD, CHRIS
Has anyone ever successfully returned PL/SQL or Array tables from a JDBC call to a store procedure in Oracle? If so, an example would be helpful. Right now I'm returning ref cursors and thought in some cases it might be more efficient to return a populated pl/sql table of data ...

Re: Servlet and JSP dependencies for Struts, JSF and Shale

2005-03-09 Thread Duncan Mills
For Shale check out the WIKI: http://wiki.apache.org/struts/StrutsShale http://wiki.apache.org/struts/BuildingShale Duncan Simon Chappell wrote: I need to pull a document together that lists the JSP and Servlet versions required by each of the available versions of Struts, JSF and Shale. I have

setupItems posted to Bugzilla

2005-03-09 Thread Frank W. Zammetti
For those that expressed an interest (one or two with baited breath as I recall!), and even for those that didn't catch the previous threads, I just added a Bugzilla ticket for the initial posting of setupItems. In short, this is an addition to Struts (1.2.4) that allows for setup-type

I need help..

2005-03-09 Thread Apte, Dhanashree (Noblestar)
I have a page that needs to display two empty addresses (each address is a combination of street1, street2, city, state, zip) for user input. The Form for that page has a collection of AddressBeans and the jsp iterates over this collection to display the Address section. The Action that displays

Re: Design problem

2005-03-09 Thread Nicolas De Loof
Each mapping have to define a parameter that sets the internal method to be used You can use parameter as the method name : action path=/showEmployeeDetail name=EmployeeForm scope=request validate=false type=com.mycompany.EmployeeAction

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Jeff Beal
Here I go, exposing my ignorance of patterns. (No, I have not read the Gang of Four book on patterns or any other such scriptural reference.) Jack -- Exactly what would have to change in the current RequestProcessor for you to consider it a Template pattern? -- Jeff On Wed, 9 Mar 2005

Re: Design problem

2005-03-09 Thread Rick Reumann
Gaet wrote the following on 3/9/2005 11:04 AM: I have defined the /EmployeeDetail action-mapping with validate equal to false to be able to display the employee detail page without any checkbut if the user made any changes on the employee information in the detailled page, the same action is

Re: Design problem

2005-03-09 Thread Gaet
That's exactly my problem now Rick! I will have a look ! Thanks! - Original Message - From: Rick Reumann [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, March 09, 2005 6:01 PM Subject: Re: Design problem Gaet wrote the following on 3/9/2005

Re: I need help..

2005-03-09 Thread Antony Joseph
You may want to post the jsp, struts-config.xml and action form so that someone can help you. - Original Message - From: Apte, Dhanashree (Noblestar) To: 'Struts Users Mailing List' Subject: I need help.. Date: Wed, 9 Mar 2005 10:55:08 -0600 I have a page that needs to display

Re: Losing form values after validating

2005-03-09 Thread Fredrik Boström
Just for completeness, I'll post some more relevant information about the application. newForm.jsp (partly) logic:equal parameter=action value=thread !-- Create new thread -- h1New Thread/h1 html:form action=/CreateThread html-el:hidden property=author

Re: Struts DB Access :: Best Practices

2005-03-09 Thread Matt Raible
shameless plug Equinox (http://equinox.dev.java.net) allows you to use Struts+Spring and any of the following persistence engines: Hibernate iBATIS JDO (JPOX) OJB Spring JDBC /shameless plug Personally, I like Hibernate when I get to create my schema, and iBATIS when it already exists. iBATIS

Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet

2005-03-09 Thread Matt Raible
AppFuse has tutorials for using Hibernate, XDoclet and Struts. It also uses Spring to glue all the different pieces together: http://raibledesigns.com/appfuse/tutorials Matt On Mar 9, 2005, at 3:18 AM, Pham Anh Tuan wrote: Hi all, Who can help me or show me where I can get tutorial which tells

Re: Losing form values after validating

2005-03-09 Thread Antony Joseph
Try this. The input point to your tile. !-- Process new Category -- actionpath=/CreateCategory type=manegen.forum.CreateCategoryAction name=createForm scope=session input=input forward name=input path=.view.newForm / forward name=success

Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet

2005-03-09 Thread Antony Joseph
Matt, I have you in one of my jokes on the iBATIS forum. - Original Message - From: Matt Raible [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Subject: Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet Date: Wed, 9 Mar 2005 11:11:23

overwriting default tile attribute value

2005-03-09 Thread wo_shi_ni_ba_ba
Hi folks, In my tile definition file I put an attribute with its value, in the jsp that uses this definition I attempted to put the same attribute in with another value. However , the default value always shows up at the end. Is there a way that I can provide a default value for a tile attribute

Re: tiles:insert and tiles:put an attribute and the import it to request scope

2005-03-09 Thread wo_shi_ni_ba_ba
thanks that helps --- Tim Christopher [EMAIL PROTECTED] wrote: Try: http://www.arc-mind.com/papers/advanced-tiles.pdf On Tue, 8 Mar 2005 10:30:58 -0800 (PST), wo_shi_ni_ba_ba [EMAIL PROTECTED] wrote: Tim, thanks for the example. What I really want is to modify the value of the

RE: overwriting default tile attribute value

2005-03-09 Thread Fogleson, Allen
In the tiles-def.xml subclass the common.default, then use an action to forward to the subclassed definition. Of course if you are using the tiles taglib in your jsps... you are going to have to write a bunch of jsp's to do it. Doing it with struts built in support... definition

Re: Eliminate Setup Actions

2005-03-09 Thread Shey Rab Pawo
Many people would suggest that using Actions in Struts would be preferrable whether or not you need to do any setup or any processing in the movement from one page to another in a website. I think of Actions as places to organize what needs to be done (processing the request) and providing any

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Dakota Jack
Hi, Jeff, I am going to say some really intelligent things here, so listen up. ///;-) The Template Method, not Template merely, pattern is really clear, well understood, a matter of public record, and not really a subject of debate. What I think is really irrelevant. The RequestProcessor is

Re: Eliminate Setup Actions

2005-03-09 Thread Frank W. Zammetti
But do you see the point in setup functions *outside* an Action's code that occurs on the forward-level? Meaning, once an Action returns a forward, do some setup based on what forward was returned? If so, check out the Bugzilla ticket I opened today where I provide this functionality, as well as

Re: Losing form values after validating

2005-03-09 Thread Fredrik Boström
Thanks for your comment. I tried what you proposed, replacing the action path with the tile definition name. The result was that the tile didn't know which form to display (because the page containes three forms, one of which is selected according to the action request parameter), and thus

Strange Exception Behavior

2005-03-09 Thread CRANFORD, CHRIS
Has anyone noticed in your struts application that when you call an oracle stored procedure and register an output parameter of type OracleTypes.CURSOR and that function call fails for any reason, any values you may have set in the oracle session will be lost? In our application we typically

RE: Eliminate Setup Actions

2005-03-09 Thread Fogleson, Allen
Well im in the camp of never show a jsp if you can get away with it so almost everything in the app is fronted by an action. Now lets say I have a class that gets a bunch of stuff out of a db, caches it, etc for dropdowns or whatever. And let's further suppose that the page (or tile) I want to

RE: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Fogleson, Allen
Well maybe other than the singleton pattern :) snip I don't know, in fact, if a single class can have a pattern. I think that most, if not all, of the patterns only make sense in combination with other classes. /snip - To

Re: Eliminate Setup Actions

2005-03-09 Thread Shey Rab Pawo
On Wed, 9 Mar 2005 14:07:04 -0500 (EST), Frank W. Zammetti [EMAIL PROTECTED] wrote: But do you see the point in setup functions *outside* an Action's code that occurs on the forward-level? Meaning, once an Action returns a forward, do some setup based on what forward was returned? Yes. I

RE: overwriting default tile attribute value

2005-03-09 Thread wo_shi_ni_ba_ba
Actually I just tried again and my approach worked. It did overwrite the default value of param1 I that I specified in tiles-def.xml... weird but anyway... thank you --- Fogleson, Allen [EMAIL PROTECTED] wrote: In the tiles-def.xml subclass the common.default, then use an action to forward

Fwd: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Jeff Beal
Accidentally replied to only Jack. -- Forwarded message -- From: Jeff Beal [EMAIL PROTECTED] Date: Wed, 9 Mar 2005 14:23:35 -0500 Subject: Re: Why Template Method instead of Strategy in Commons Chain? To: Dakota Jack [EMAIL PROTECTED] Hey, thanks for the reply. I did go out

Re: Eliminate Setup Actions

2005-03-09 Thread Frank W. Zammetti
More (application-level) code isn't needed... it's just a question of making it declarative rather than programmatic, which is how so much of Struts already is. Here's an example from the example app posted to the Bugzilla ticket I referenced (ticket # 33935 if you want to download it and try

trying to use Apache URL forwarding with struts

2005-03-09 Thread Jonathan Corbin
I've been trying to get struts to do what I want, and I haven't been successful. Since what I'm trying to do is a bit complicated, I'll explain that first =] I want the user of my web application to go to the URL http://webserver/path/i/want Apache then forwards the request to another url,

Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet

2005-03-09 Thread Matt Raible
I saw that - good stuff! ;-) On Mar 9, 2005, at 11:33 AM, Antony Joseph wrote: Matt, I have you in one of my jokes on the iBATIS forum. - Original Message - From: Matt Raible [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Subject: Re: [Help] I need tutorial which

Concurrency in Action classes

2005-03-09 Thread N G
Hi, Is the Action class's instance reused for every request or is a new Action instance is created for every request? I forgot this... I seemed to remember that the Action is just like a HttpServlet: it shouldn't have any member variables that are assumed to be thread safe. Thanks, NG

Re: Eliminate Setup Actions

2005-03-09 Thread Shey Rab Pawo
This is more, not less, code, is it not? You have: setupItem setupClass=com.omnytex.setupexample.setups.SetupClass1 setupMethod=setupMethod1 / which has to be used for all actions that use this, right? compared to: SetupClass1.setupMethod1(request) I don't see the less code point.

JSP Documents and Tiles

2005-03-09 Thread Benedict, Paul C
I am having a problem with JSP Documents and Tiles. I find it very useful to split up JSP into different files, and have Struts Tiles bind them together to form a complete page. This is easy with JSP fragments because not every page needs to be a completed document, but I found this approach

RE: Concurrency in Action classes

2005-03-09 Thread Benedict, Paul C
NG, Please see this page: http://wiki.apache.org/struts/StrutsWhyOnlyOneInstanceOfActionClass Thanks, Paul -Original Message- From: N G [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 2:57 PM To: Struts-user Subject: Concurrency in Action classes Hi, Is the Action class's

Re: Losing form values after validating

2005-03-09 Thread Fredrik Boström
Phew.. after some testing, recompiling and more testing and more recompiling, I have finally found a solution. After posting the last message, I realised that the categoryId form field's value was searched for in a request parameter named category, while the form field's name (property) that

Re: Eliminate Setup Actions

2005-03-09 Thread Frank W. Zammetti
On Wed, March 9, 2005 3:02 pm, Shey Rab Pawo said: This is more, not less, code, is it not? You have: setupItem setupClass=com.omnytex.setupexample.setups.SetupClass1 setupMethod=setupMethod1 / which has to be used for all actions that use this, right? compared to:

Using validwhen with multiple Map back properties

2005-03-09 Thread Nathan Maves
I have two LinkedHashMap properties in a DynaActionForm. I need to validate one of the map based on the other. i.e. map1(1) is required if map2(1) is not null. Can this be done? Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Eliminate Setup Actions

2005-03-09 Thread Frank W. Zammetti
On Wed, March 9, 2005 3:11 pm, Frank W. Zammetti said: On Wed, March 9, 2005 3:02 pm, Shey Rab Pawo said: This is more, not less, code, is it not? You have: setupItem setupClass=com.omnytex.setupexample.setups.SetupClass1 setupMethod=setupMethod1 / which has to be used for all actions

RE: Eliminate Setup Actions

2005-03-09 Thread Fogleson, Allen
I think the real power here is NOT in whether it is more or less code, but the move to a declarative way of handling the setup. I can compare it to the bean factory portion of spring. Technically I may write more code to use Spring. I certainly have to include other resources (spring jars) to

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Dakota Jack
Sure, Jeff. Do what you like. I am going to stick with the meaning established for the Template Method pattern in the literature, but if you prefer to develop your own use of the terms, be my guest. You can call rain snow if you like without any objection from me too. If you think of any

Re: Eliminate Setup Actions

2005-03-09 Thread Shey Rab Pawo
Frank, watch that anal talk, would you? I could do without that. :) My point was just that I don't see a problem and don't understand how this would help. -- No one ever went blind looking at the bright side of life. - To

Re: Eliminate Setup Actions

2005-03-09 Thread Frank W. Zammetti
I can't state it any clearer than I have, or any clearer than another poster (I forget who) just did a few minutes ago. If for absolutely no other reason, convenience and ease of change are good justifications. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies

Re: Eliminate Setup Actions[Scanned]

2005-03-09 Thread Shey Rab Pawo
We probably have beat this to death, Frank, but having the framework setup pages with declarations in the action mappings is not consistent with MVC to my way of thinking. I definitley would not do this. I like to keep things simpler. But, others seem to like it. So, maybe you have something

[perhaps OT] Testing Struts App with JNDI Datasouce

2005-03-09 Thread Manfred Wolff
Hi. My favorite Configuration is Struts, HiveMind and Hibernate together in a servlet Container (Tomcat 5.0). I have configures a datasource in the Tomcat container and have access to the datasource via hibernate (JNDI Lookup). Is there a solution to do this in a testcase without running

Re: Eliminate Setup Actions

2005-03-09 Thread Rick Reumann
Can you add this XML functionality to the struts-config please? Then I won't hate you:) BusinessApplication start read_client_mind write application for me while I surf web /read_client_mind /start deploy/ getPayCheckAndGoHome/ /BusinessApplication

Re: Eliminate Setup Actions

2005-03-09 Thread Duncan Mills
An extension of the approach here is what we so with the Oracle ADF framework, namely that of associating a metadata XML file with the Action which drives the runtime framework to prepare the bindings for the page. So this is taking the whole declarative thing that much further by basically

Re: Struts DB Access :: Best Practices

2005-03-09 Thread Jesse Clark
I agree that you can use Hibernate to generate code in a top-down or bottom-up approach fairly easily. However, I would disagree with your earlier comment that Hibernate is very easy to learn. It is a powerful tool and makes life easier once you learn it, but I think realistically you are

Re: Struts DB Access :: Best Practices

2005-03-09 Thread Scott Lamb
karthikeyan balasubramanian wrote: I looked at iBATIS, it seems to be simple and easy to use. I will also check out others and let you know my thoughts. I'll add one to your list: Axamol SQL Library http://www.slamb.org/projects/axamol/sql-library/ It's a project of mine, so I'd love to hear if

Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet

2005-03-09 Thread Rick Reumann
Pham Anh Tuan wrote the following on 3/9/2005 5:18 AM: Who can help me or show me where I can get tutorial which tells me how to integrate Struts and Hibernet. I have a brief one (although a bit outdated) on struts/iBATIS. iBATIS is so painless to use, I love it.

  1   2   >