How to create a web flow with Struts

2005-04-08 Thread Néstor Boscán
Hi I have a new project were I have to create an application that is a web flow of multiple standalone applications. Basically the user picks a service and the web flow will take the user to all the applications necessary to fulfill the service. We want to be able to save in a database the user n

RE: Which version of Validator was shipped with Struts 1.1b2

2005-04-08 Thread tarek.nabil
Thanks a lot Phil. I hope somene can tell me how to do this, because I'm not into CVS at all. -Original Message- From: Phil Steitz [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 8:27 AM To: Struts Users Mailing List Subject: Re: Which version of Validator was shipped with Struts

Re: Meta Information in Action Form

2005-04-08 Thread Craig McClanahan
On Apr 8, 2005 1:12 PM, Anil <[EMAIL PROTECTED]> wrote: > Matt Raible raibledesigns.com> writes: > > > > > As far as drop-downs, I typically populate all (or most) of mine from a > > database at application startup using a ServletListener. I stuff these > > into the application scope as Lists of

Re: session expiration issue and tiles

2005-04-08 Thread Dave Newton
sudip shrestha wrote: I have user types with varying level of privileges and only a defined user type can access a particular page. I thought of using filter for this purpose, but not sure how to designate which layout*.jsp (have created multiple layout.jsp pages for varying user types: e.g. admin

Re: Meta Information in Action Form

2005-04-08 Thread Matt Raible
On Apr 8, 2005, at 2:12 PM, Anil wrote: Matt Raible raibledesigns.com> writes: As far as drop-downs, I typically populate all (or most) of mine from a database at application startup using a ServletListener. I stuff these into the application scope as Lists of LabelValue beans. Then I code up

Re: session expiration issue and tiles

2005-04-08 Thread sudip shrestha
Dave: I have user types with varying level of privileges and only a defined user type can access a particular page. I thought of using filter for this purpose, but not sure how to designate which layout*.jsp (have created multiple layout.jsp pages for varying user types: e.g. admin can access layo

Re: Meta Information in Action Form

2005-04-08 Thread Dave Newton
Craig McClanahan wrote: That being said, I have seen cases where the potential performance penalty is quite large (many seconds of database access), which will show up in one of your users waiting an abnormally long time for their response -- not something I would find very appealling. I don't l

Re: Meta Information in Action Form

2005-04-08 Thread Anil
Matt Raible raibledesigns.com> writes: > > As far as drop-downs, I typically populate all (or most) of mine from a > database at application startup using a ServletListener. I stuff these > into the application scope as Lists of LabelValue beans. Then I code > up a ReloadAction that can

Re: Meta Information in Action Form

2005-04-08 Thread Craig McClanahan
On Apr 8, 2005 12:39 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > Craig McClanahan wrote: > > >On Apr 8, 2005 11:28 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > > > > > >>I haven't done much (anything?) with servlet listeners--what's the > >>advantage to doing it this way as opposed to a servlet.i

Re: Meta Information in Action Form

2005-04-08 Thread Dave Newton
Craig McClanahan wrote: On Apr 8, 2005 11:28 AM, Dave Newton <[EMAIL PROTECTED]> wrote: I haven't done much (anything?) with servlet listeners--what's the advantage to doing it this way as opposed to a servlet.init that loads on app startup? Generally what we've done is to have a thread that che

Re: Meta Information in Action Form

2005-04-08 Thread Craig McClanahan
On Apr 8, 2005 12:15 PM, Matt Raible <[EMAIL PROTECTED]> wrote: > > On Apr 8, 2005, at 1:00 PM, Christine Huang wrote: > > > On Apr 8, 2005 1:40 PM, Craig McClanahan <[EMAIL PROTECTED]> wrote: > >> > >> The servlet container is *not* required to leave your load-on-startup > >> servlet loaded for

Re: Meta Information in Action Form

2005-04-08 Thread Matt Raible
On Apr 8, 2005, at 1:00 PM, Christine Huang wrote: On Apr 8, 2005 1:40 PM, Craig McClanahan <[EMAIL PROTECTED]> wrote: The servlet container is *not* required to leave your load-on-startup servlet loaded for the entire duration of the webapp's lifetime (although, in practice, most containers do).

Re: Meta Information in Action Form

2005-04-08 Thread Craig McClanahan
On Apr 8, 2005 11:50 AM, Jay Burgess <[EMAIL PROTECTED]> wrote: > We too use a PlugIn, and I'm now wondering based on Craig's explanation > whether > there are any advantages/disadvantages of one technique over the other? Struts PlugIns are initialized and destroyed by the ActionServlet.init and

Re: Meta Information in Action Form

2005-04-08 Thread Christine Huang
On Apr 8, 2005 1:40 PM, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > The servlet container is *not* required to leave your load-on-startup > servlet loaded for the entire duration of the webapp's lifetime > (although, in practice, most containers do). For example, the > container could unload

RE: Meta Information in Action Form

2005-04-08 Thread Jay Burgess
We too use a PlugIn, and I'm now wondering based on Craig's explanation whether there are any advantages/disadvantages of one technique over the other? Jay Vertical Technology Group http://www.vtgroup.com/ -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Friday,

Re: Meta Information in Action Form

2005-04-08 Thread Joe Germuska
Matt's general approach is the one we use also, except instead of ServletListeners and the database, we use the DigestingPlugIn, which produces objects based on XML and can put them in the application context. There's an example in the mailreader app which you should be able to just about cut-

Re: Meta Information in Action Form

2005-04-08 Thread Craig McClanahan
On Apr 8, 2005 11:28 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > Matt Raible wrote: > > > As far as drop-downs, I typically populate all (or most) of mine from > > a database at application startup using a ServletListener. I stuff > > these into the application scope as Lists of LabelValue bea

Re: Meta Information in Action Form

2005-04-08 Thread Dave Newton
Matt Raible wrote: As far as drop-downs, I typically populate all (or most) of mine from a database at application startup using a ServletListener. I stuff these into the application scope as Lists of LabelValue beans. Then I code up a ReloadAction that can call my Listener to reload them

Re: Meta Information in Action Form

2005-04-08 Thread Matt Raible
As far as drop-downs, I typically populate all (or most) of mine from a database at application startup using a ServletListener. I stuff these into the application scope as Lists of LabelValue beans. Then I code up a ReloadAction that can call my Listener to reload them all. I've found t

Re: Meta Information in Action Form

2005-04-08 Thread Christine Huang
If those drop-down values are not dynamic, I would use a application scope bean. If it is dynamic, like credit card profiles in a dropdown list for a particular user, I will declare it as ActionForm property. I would like to hear about other people's solution. Christine On Apr 8, 2005 12:18 P

Re: Meta Information in Action Form

2005-04-08 Thread Anil
Leon Rosenberg anotheria.net> writes: > > Sorry, but what exactly do you mean with meta information? > > Leon > > > -UrsprÃngliche Nachricht- > > Von: news [mailto:news sea.gmane.org] Im Auftrag von Anil > > Gesendet: Freitag, 8. April 2005 02:34 > > An: user struts.apache.org > >

Re: session expiration issue and tiles

2005-04-08 Thread Dave Newton
sudip shrestha wrote: -- I have few layout.jsp templates where I have following chuck of code which should redirect the browser to login page if session expires: <% String loginCheck = "notLoggedIn"; if( session.getAttribute( "sessi

RE: [OT] How to transpose a table in MS SQL Server 2000

2005-04-08 Thread Paul McCulloch
Assuming that month, val1 & val2 are the *names* of columns this is going to be a tricky problem to solve with just SQL. You need to query the system tables to extract the names of the columns. The other problem is that the number of columns in your result set needs to vary depending on the number

Re: concurrency problem

2005-04-08 Thread Jeff_Caswell
Maybe I'm being dense here but: If every session contains a reference to the bean, and every thread is synchronizing on their own session; It would seem that there would not be any concurrency control. I would think that they all need to sync on the same object. JC

RE: [OT] How to transpose a table in MS SQL Server 2000

2005-04-08 Thread DGraham
id/ID are synthetic keys and can be ignored (as well as 'total'). So, the simplified case is: source_table - month val1val2 jan 1 2 feb 3 4 target_target - VAL COL1C

RE: [OT] How to transpose a table in MS SQL Server 2000

2005-04-08 Thread Paul McCulloch
I don't 100% understand your tables. Where does ID come from (the values 1 & 2 exist in the first view, but 1,2,3,4 in the second). Are the totals derived? Give me the SQL for the first view and I'll have a look. Paul > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTE

Re: Authorized Site Creation With Struts

2005-04-08 Thread gdeschen
Scott. I have architectured an application a little over a year ago... And opted to use a filter to handle logic before getting into the Struts portion of the application. At first... I was unsure if this was the best way to go... but today I am sure glad I did so. The users started making ridu

RE: Authorized Site Creation With Struts

2005-04-08 Thread Paul McCulloch
The two approaches I have succesfully used are container managed authentication & Filters. Filters are simpler & more flexible than container managed authentication, so unless you need a particular feature of CMA (e.g. automatic propogation of credentials to EJBs) I wouldn't recommend it. I belie

RE: [OT] RE: concurrency problem

2005-04-08 Thread Kalra, Ashwani
No, I am getting appropriate exception from app server. Here is the exception. I want to avoid it and synchronize the request. But synchronisation is not working some how. Here is what my app server gives exception com.evermind.server.rmi.OrionRemoteException: Second thread call to stateful ses

Authorized Site Creation With Struts

2005-04-08 Thread Scott Purcell
Hello, First off, I am having trouble with creating a more elegant solution to a proboem. A- Problem, I have a site that requires authentication (form-based) when they hit our site. Upon building the site which requires an "AppObject" and "UserObject", I subclassed the RequestProcesso

Re: LazyLists and dynamic forms

2005-04-08 Thread Rick Reumann
Richard Rozema wrote the following on 4/7/2005 5:57 PM: I'm pretty new on struts programming and I've read to avoid using session. The only real reason I see not to use session is that if I stick 2 instances of my search tile in the same page (and I will do so), they will share the same property na

Re: [OT] Open source paginator

2005-04-08 Thread Ashish Kulkarni
Hi http://kulkarni_ash.tripod.com/howto/jsptaglib-howto.html Ashish --- Rick Reumann <[EMAIL PROTECTED]> wrote: > N G wrote the following on 4/7/2005 3:31 PM: > > Does anyone know of some open source paginator > package out there? > > Something generic enough that you could stick > collections int

session expiration issue and tiles

2005-04-08 Thread sudip shrestha
Using: Tomcat 5.5.7, Sun JDK 1.5, Struts 1.2.4 -- I have few layout.jsp templates where I have following chuck of code which should redirect the browser to login page if session expires: <% String loginCheck = "notLoggedIn"; if( se

[OT] How to transpose a table in MS SQL Server 2000

2005-04-08 Thread DGraham
So, I have the following table: id month val1val2total 1 jan 1 2 3 2 feb 3 4 7 And I'd like it transformed to: ID VAL COL1COL2 1 month jan feb 2 val11 3 3 val22 4 4 total

Re: Nested ActionForm Validation

2005-04-08 Thread Jeff Beal
I think the only way you can have one ActionForm reuse another ActionForm is to include the second ActionForm as a property of the first. For example, if you have a standard AddressActionForm that includes validation rules for street, city, state, postal code, etc. you can use this as a property i

[OT] RE: concurrency problem

2005-04-08 Thread DGraham
As I hit the send button, something tickled in the back of my mind, and I began to remember that the spec forbids thread primitiives on bean methods and that the EJB container is responsible for handling concurrent access. Sounds like your provider might have a defect. Dennis [EMAIL PROTEC

RE: concurrency problem

2005-04-08 Thread DGraham
You're synchronizing on an object which is unique for each user, which might explain why more than 1 thread can concurrently enter the critsec. Wouldn't a better solution be to declare the method as synchronized? Dennis "Kalra, Ashwani" <[EMAIL PROTECTED]> 04/08/2005 08:53 AM Please respon

RE: concurrency problem

2005-04-08 Thread Kalra, Ashwani
Isnt that valid when request is going to same action. In my scenario, different actions are invoked quickly and all the actions have this call to SFSB. Which I want to synchronise Thanks & Regds Ashwani Ext: 1860 > -Original Message- > From: James Mitchell [mailto:[EMAIL PROTE

Re: concurrency problem

2005-04-08 Thread James Mitchell
You'd be better off implementing token processing. Struts includes token generation and helper methods to ensure only one valid request is handled at a time. Look at the struts example application (mailreader) for an example. For detailed info on why this pattern works, see: http://www.amazon.c

RE: Popups and Struts Actions

2005-04-08 Thread Frank W. Zammetti
As I recall, and contrary to what some documentation says, it is actually the absence or presence of the settings of open() that determines what chrome elements are present. So: window.open(this.target,'','width=1,height=1'); I believe is what you want. AFAIK,you also need to throw qu

RE: Popups and Struts Actions

2005-04-08 Thread Frank W. Zammetti
As I recall, and contrary to what some documentation says, it is actually the absence or presence of the settings of open() that determines what chrome elements are present. So: window.open(this.target,'','width=1,height=1'); I believe is what you want. AFAIK,you also need to throw qu

Dinamic forms

2005-04-08 Thread Ext . Ilitia2
Hi, can your helpmy with a dinamic form with struts? I need an example of a dinamic form, please thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT]Tool to find amount of data transfered in web application

2005-04-08 Thread Duncan Mills
I'd use a packet sniffer like ethereal (www.ethereal.com) . Its free under the GNU license and tremendously powerful. You should be able to use it to measure both HTTP and Telnet traffic. The only problem I have with it is the amount of stuff it captures, fortunately it has sophisticated filt

concurrency problem

2005-04-08 Thread Kalra, Ashwani
I am facing concurrency problem in following scenario. All our action classes call same stateful session bean . Each action class obtains the reference from HTTPSession object and calls one and only one business method. To prevent the concurrent access to this instance which occurs when user

Nested ActionForm Validation

2005-04-08 Thread Ciaran Hanley
I am trying to reuse ActionForms within an application but I am unsure how to deal with validation. What I have at the moment is an ActionForm1 which contains a second form ActionForm2. In validation.xml, how do I use the validation for ActionForm2 within the ActionForm1 validation? Can I use it wi

Re: Popups and Struts Actions

2005-04-08 Thread James Mitchell
method="post" action="album_photo.CRACKWILLOW" target="whereOwhere" onsubmit="window.open(this.action,this.target, 'directories=0,status=0,menubar=0,scrollbar=2,toolbar=0,resizable=0,copyhistory=0,width=1,height=1');return false">

Popups and Struts Actions

2005-04-08 Thread Dakota Jack
I am using the following code and do not want the menubar, etc. on my popup. But the menubar and everything else is still showing up. You javascript mavens out there, what is wrong? -- "You can lead a horse to water b