Dispatch Action not working

2005-03-07 Thread nitin dubey
Hello, I have put "dispatch" parameter value as "generate", and have created a generate() method in the action class. I am forwarded to this page from a Login page using local forward: When the clients reaches I wish to load some data in my unspecified(). But it is not getting called. this i

Re: Dispatch Action not working

2005-03-07 Thread Bill Siggelkow
Make sure your "generate" method has the same signature as the standard Action.execute() method (i.e. parameters of ActionForm, etc.) On 2005-03-07 06:39:59 -0500, nitin dubey <[EMAIL PROTECTED]> said: Hello, I have put "dispatch" parameter value as "generate", and have created a generate() metho

[ANNOUNCEMENT] Calyxo 0.9.0-rc1 Released

2005-03-07 Thread Christoph Beck
The Calyxo development team is pleased to announce the availability of Calyxo 0.9.0-rc1! This is the first non-beta 0.9.0 candidate release, containing all features scheduled for the upcoming 0.9.0 final release. The Calyxo Web Application Framework encourages in MVC Model 2 based web application

map-backed forms with multibox/multiselect lists?

2005-03-07 Thread Mike Nidel
I'm trying to build a form element that combines the features of a map-backed property with a multibox (and the same for a multiple-selection list). I've made multiboxes work fine without the map-backed element, but I can't seem to get this to work. I've tried various method signatures in my form

Re: Using a CSS file

2005-03-07 Thread Tim Christopher
What's the advantage of using @import over link? Is it just for readability, or is there another reason for it?... As from what I can remember @import doesn't work with Netscape 4.x. Tim Christopher On Sat, 5 Mar 2005 23:56:54 -0500, James Mitchell <[EMAIL PROTECTED]> wrote: > I prefer this meth

Re: map-backed forms with multibox/multiselect lists?

2005-03-07 Thread Dakota Jack
public void setFoos(String [] foos) On Fri, 4 Mar 2005 18:55:53 + (UTC), Mike Nidel <[EMAIL PROTECTED]> wrote: > I'm trying to build a form element that combines the features of a map-backed > property with a multibox (and the same for a multiple-selection list). I've > made > multiboxes wor

RE: map-backed forms with multibox/multiselect lists?

2005-03-07 Thread Nidel, Mike
This works fine for list-backed form items (which we also use) but in this case I need something like public void setFoos(String key, String[] foos) is this possible? There are several workarounds I can think of, but this appears to be the cleanest solution if I can make it work. Mike > -

RE: Eliminate Setup Actions

2005-03-07 Thread BenedictPA
For anyone interested, I have a "Struts View" demo which that allows "dialogs" to occur in Struts 1.3. This could work in Struts 1.2, but I haven't had the 3 minutes to write an extended RequestProcessor for current apps. Basically, a dialog allows objects to persist across HTTP requests. Pleas

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

2005-03-07 Thread Joe Germuska
I have no idea why Craig would say that the RequestProcessor is somehow related to the Template Method pattern. It just isn't. Are you talking about org.apache.struts.action.RequestProcessor? Even if its not a shining textbook example of "Template", it most certainly is related to that pattern.

RE: map-backed forms with multibox/multiselect lists?

2005-03-07 Thread Radu Badita
I had the same problem some time ago (the solution vaguely suggested by Jack wouldn't had been an option since the properties were dynamic so I needed the key to distinguish between them). I asked on this list for help at that time, but didn't got an answer, so I guess nobody succeeded in doing

[ANNOUNCEMENT] SWF 0.5 Beta Released

2005-03-07 Thread William Connor
We are pleased to announce the first public Beta of the Simple Web Framework (SWF), available from http://swf.dev.java.net/. The SWF shares the same Jakarta foundation as Struts while adding an event model, a number of novel features (In place Page Updating, ...), and refined treatment of areas

Displaying a HashMap as a

2005-03-07 Thread David Johnson
Hi all I have a HashMap in my application context called "codes" that contains a bunch of key,value pairs where the key is an Integer representing the codeID and the value is a string representing the codeName I simply want to create a select box containing all the items in my HashMap (displaying

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

2005-03-07 Thread Dakota Jack
Hi, Joe, The RequestProcesser could have been but is not related at all to the Template Method pattern. More on that below. The real reason for this discussion is the following. It is fine that we are temporarily using the Template Method with CoR from commons-chain to solve the problems Templa

Convert nl to

2005-03-07 Thread Ole Hildebrandt
Hi, I know this is a stupid question, but I couldn't find any solution. Is there any documentation available on how to specify a format-String in the bean:write tag so that native linefeeds are converted to -Tags? Kind regards Ole ---

DownloadAction Application

2005-03-07 Thread Dakota Jack
I am presently beginning to code a download application to go with my upload application (http://wiki.apache.org/struts/StrutsUpload) in Struts, although I am not initially trying to combine them. That will be a part of refactoring. Does anyone have any code or ideas out there they would suggest

Re: Displaying a HashMap as a

2005-03-07 Thread Wendy Smoak
From: "David Johnson" <[EMAIL PROTECTED]> > I simply want to create a select box containing all the items in my > HashMap (displaying the codeName but passing the codeID) > What's the easiest way to do this? Can I do this wil just a vanilla > HashMap? The examples are slightly confusing. I agree..

Re: Convert nl to

2005-03-07 Thread Sebastian Hennebrueder
You could write a special getter in your bean providing this feature. Example if you have getTextField then add getTextFieldBR Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB Ole Hildebrandt wrote: Hi, I know this is a stupid

[ANNOUNCEMENT] XMoon 0.7.1 Released

2005-03-07 Thread mario nee
*XMoon* is a framework to develop easily transactional web applications with XML and several scripting languages: *BeanShell, JRuby, JudoScript, Jython, Rhino.* Released under * Lgpl License* change log 0.7.1 *-* added AccessNode to profile Service *-* added F

What Book??

2005-03-07 Thread Gaet
Hello, I'm hesitating between two struts books, does someone can tell me what is the best between : -Struts Cookbook (just released) -Struts Reference TIA

Re: Displaying a HashMap as a

2005-03-07 Thread David Johnson
Thanks Wendy! My problem was the following. In order to get this to display, I of course needed to set up all the crap asociated with doing such a thing... This is a list partially to get it into the archives so I can search on it later. So, I did the following 1. Loaded an ArrayList of CodeBean

Re: Using a CSS file

2005-03-07 Thread Karan
The html:link will render a tag, which is not what you use to include a css file in your doc. Thats why it does not work the way you are expecting it to. The easiest way to do this, along with maintaining the dynamic-ness of your stylesheet location is by putting this line in the : So, you us

Re: Two css files

2005-03-07 Thread Karan
I don't have an answer to your problem, but I do have a question: The user of your webapp can customize extendedCssStyle for his/her own layout settings. But a different user can modify it again for different settings. How do you maintain the different layouts for different users? Thanks, Karan B

Re: DownloadAction Application

2005-03-07 Thread Frank W. Zammetti
I'm not 100% sure it's applicable to what your doing, but... http://www.zammetti.com/downloadapp.zip This was a sample webapp I wrote when Martin added the DownloadAction some time ago. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mon

DispatchAction - NullPointerException

2005-03-07 Thread Basile Passe
Hello, We use Struts on a oracle based application, the solution is used in production. The webapp is very solicited : 2000 POST Request / Hour (all along the day). I have a problem with the DispatchAction of Struts. Please help me. The error does not appear systematically. It actually works 95% o

Re: [ANNOUNCEMENT] SWF 0.5 Beta Released

2005-03-07 Thread Don Brown
Very interesting. Have you considered implementing SWF directly on Struts through struts-chain? The chain of responsibility implementation of commons-chain allows you to replace or augment any Struts functionality by giving you complete control over the request handling process. Don On Mon, 7

Re: DownloadAction Application

2005-03-07 Thread Dakota Jack
Thanks, Frank. Works for your application for sure, because I downloaded the file and I assume you are using your application! ///;-) On Mon, 7 Mar 2005 12:49:23 -0500 (EST), Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I'm not 100% sure it's applicable to what your doing, but... > > http://

Tiles Controllers Info?

2005-03-07 Thread David Johnson
Hi all I was reading the thread about "eliminating setup actions" and the tiles controllers look like a good option for me as I'm using tiles everywhere. Has anyone used these and if so ewhere did you do to learn how to? the API is nice and provides good theory as to how they're used, but does a

Re: Eliminate Setup Actions

2005-03-07 Thread David Johnson
I just found this link which gives FAR more detail on Tiles Controllers --> http://www.theserverside.com/articles/article.tss?l=Tiles101 On Sat, 5 Mar 2005 13:15:44 -0600, Corey Probst <[EMAIL PROTECTED]> wrote: > If your app is using tiles, take a look at Tile controllers. > > http://struts.apa

Re: DownloadAction Application

2005-03-07 Thread Leon Rosenberg
<2cents> I would highly appreciate if an "upload" could determine the size of the file before actually uploading it and reject the file if it's larger then the given limit, to reduce traffic. Another nice feature would be a monitor, which can inform the client about current progress, like in a jav

Re: DownloadAction Application

2005-03-07 Thread Leon Rosenberg
<2cents> I would highly appreciate if an "upload" could determine the size of the file before actually uploading it and reject the file if it's larger then the given limit, to reduce traffic. Another nice feature would be a monitor, which can inform the client about current progress, like in a jav

RE: DownloadAction Application

2005-03-07 Thread Slattery, Tim - BLS
> <2cents> > I would highly appreciate if an "upload" could determine the > size of the file before actually uploading it and reject the > file if it's larger then the given limit, to reduce traffic. HTML/HTTP doesn't support that, IMHO. The tag just grabs the file and starts sending it. The se

providers which can host a struts web application

2005-03-07 Thread kjc
Looking for a list of providers that can host a struts web application, with access to a MySQL DB. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: DownloadAction Application

2005-03-07 Thread Leon Rosenberg
> > HTML/HTTP doesn't support that, IMHO. The type="file"...> tag just grabs the file and starts sending > it. The server has no clue how large the file is until the > entire thing arrives. That is what I know too. And this is ugly. IMHO it's a fat security hole, since it's really easy for a

AW: DownloadAction Application

2005-03-07 Thread Leon Rosenberg
> > HTML/HTTP doesn't support that, IMHO. The type="file"...> tag just grabs the file and starts sending > it. The server has no clue how large the file is until the > entire thing arrives. That is what I know too. And this is ugly. IMHO it's a fat security hole, since it's really easy for a

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

2005-03-07 Thread Jonathan M Z
dear folks, I know that I can insert an attribute into a jsp page by using tiles:insert and tiles put as the following: but what if I want to get the value of this attribute from one of its sub jsp pages(eg. nav.jsp) I have tried using to import all the tiles attrib

Re: AW: DownloadAction Application

2005-03-07 Thread Frank W. Zammetti
Yep, just not possible to know the size before-hand, as Tim already said (and you knew :)). Even the status monitor you were talking about wouldn't really be possible. Well, not if the intention is to give a REAL status (i.e., percentage complete), for obvious reasons: if you don't know the total

Re: AW: DownloadAction Application

2005-03-07 Thread Frank W. Zammetti
FYI, Commons Fileupload DOES have a max feature. Not sure what happens when the max is reached, but its there. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mon, March 7, 2005 1:50 pm, Leon Rosenberg said: >> >> HTML/HTTP doesn't suppor

AW: AW: DownloadAction Application

2005-03-07 Thread Leon Rosenberg
I used (sometimes still using) o'reillys file upload utility (com.oreilly.servlet.MultipartRequest). You can tell the MultipartRequest how much data you actually want to have. The problem is, that It uploads all_the_data (at least done in earlier versions) and determines then, that the file was too

AW: AW: DownloadAction Application

2005-03-07 Thread Leon Rosenberg
I used (sometimes still using) o'reillys file upload utility (com.oreilly.servlet.MultipartRequest). You can tell the MultipartRequest how much data you actually want to have. The problem is, that It uploads all_the_data (at least done in earlier versions) and determines then, that the file was too

why complicate? was: Eliminate Setup Actions

2005-03-07 Thread Rick Reumann
Ben Taylor wrote the following on 3/5/2005 3:03 AM: 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) in to the request, without having to write a setup Action for each page as is done here: http://www.reumann.net/struts/le

Re: AW: AW: DownloadAction Application

2005-03-07 Thread Frank W. Zammetti
I'd be willing to bet Commons does the same thing, but I don't know for sure. Anyone reading this able to illuminate us? Yeah, I know what you mean... lousy kids these days, busting up all my code! :) (We'll ignore that my code probably should have been more robust!) Unfortunately I used to BE o

Re: DownloadAction Application

2005-03-07 Thread Dakota Jack
This is true with a proviso. While the stream has to be sent before it can be assessed generally, which is not great, you can do a lot on the server side to manage resources efficiently. You can monitor the upload taking place, and, if you don't like the size, reject it whenever you like. You

Re: DownloadAction Application

2005-03-07 Thread Dakota Jack
Yes, this is possible and an interface for doing that is given my my presentation on the wiki. If you look at the classes and where (Monitor)iter.next() occurs in the UploadFileItem class, etc. you will see how to implement such monitors generally. If you are interested, the implementation I use

Re: AW: DownloadAction Application

2005-03-07 Thread Dakota Jack
Remember that this is all a stream and there has to be a way to say STOP! So, if you really want to solve this problem in spades, it clearly is possible. I am satisfied to make sure that the reading of the request object is not utilized to write to output streams at certain levels. If you want t

Re: AW: DownloadAction Application

2005-03-07 Thread Dakota Jack
Don't know about the input stream part too much, Frank, but as you are writing to an output stream, which is the upload application part, you can certainly monitor percentages. I do it as indicated in posts on this thread. Jack On Mon, 7 Mar 2005 14:03:23 -0500 (EST), Frank W. Zammetti <[EMAIL

Re: AW: AW: DownloadAction Application

2005-03-07 Thread Dakota Jack
Yes, it does, sort of. Check ThresholdingOutputStream and DeferredFileOutputStream. My UploadOutputStream overrides the write(byte data[], int i, int j) method to monitor the upload. Once you have the hook of the monitor variable in the upload process, you can do whatever you like during the re

Re: DownloadAction Application

2005-03-07 Thread Frank W. Zammetti
That's kinda cool, but I have a question... How would such a thing work in a clustered environment? I may not understand some things about your solution, so feel free to correct me on any points I get wrong, but... I presume a browser starts an upload and you simultaneously open a new window that

Re: AW: AW: DownloadAction Application

2005-03-07 Thread Dakota Jack
Just as an additional note, the threshold in the commons fileupload determines when things are written to file, etc. rather than to memory and can be used for various efficiencies. Jack On Mon, 7 Mar 2005 12:05:49 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > Yes, it does, sort of. Check Thre

Re: AW: DownloadAction Application

2005-03-07 Thread Frank W. Zammetti
I'm confused... Maybe I misread the OP, but he's talking about uploading, right? That's the part I don't see how you could do. I would agree that this is possible when downloading a file (although still a bit tricky I would think, but possible none the less). I'm probably just all messed up here

AW: DownloadAction Application

2005-03-07 Thread Leon Rosenberg
> Assuming so... in a clustered environment, first of all, > writing to the file system is generally discouraged practice > (although it can be done safely, so let's ignore what might > be best practice for the moment)... but if you do so, since > the upload may start on one server and then the

AW: DownloadAction Application

2005-03-07 Thread Leon Rosenberg
> Assuming so... in a clustered environment, first of all, > writing to the file system is generally discouraged practice > (although it can be done safely, so let's ignore what might > be best practice for the moment)... but if you do so, since > the upload may start on one server and then the

FW: Using a CSS file

2005-03-07 Thread Hyrum
Thank you, James. Your solution works, and was easiest to implement. I really appreciate everyone's attention to my little problem. Hope I can return the favor sometime. Hyrum -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Saturday, March 05, 2005 9:57 PM To:

FW: Using a CSS file

2005-03-07 Thread Hyrum
Thank you, James. Your solution works, and was easiest to implement. I really appreciate everyone's attention to my little problem. Hope I can return the favor sometime. Hyrum -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Saturday, March 05, 2005 9:57 PM To:

Re: AW: DownloadAction Application

2005-03-07 Thread Frank W. Zammetti
Is that the way it works in your environment Leon? Its not the way it works here :) Or any other clustered environment I've ever worked in. I mean, the express purpose of a clustered environment is to distribute load. If a user hits one server for one request, but then upon making the second re

populate another dropdownlist depending on selection i one dropdownlist

2005-03-07 Thread Srilatha Salla
Hi I have a dropdownlist of tables, I have to display a dropdownlist of columns of that table depending on the table selected. And I have to add a row when clicked on add row button. This row consists of dropdownlist of tables, dropdownlist of columns(this dropdownlist has to chnage depending o

Re: DownloadAction Application

2005-03-07 Thread Dakota Jack
See within: On Mon, 7 Mar 2005 15:06:08 -0500 (EST), Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > That's kinda cool, but I have a question... How would such a thing work in > a clustered environment? See within: > I presume a browser starts an upload and you simultaneously open a new > win

MVC Frameworks

2005-03-07 Thread Justin Morgan
Hi there, I am currently researching different web application frameworks... JSF, Struts, and Tapestry specifically. We are planning to migrate a large existing web application to a rigorous model 2 standard using one or more of these frameworks, and I am looking for more information on the diffe

Re: AW: DownloadAction Application

2005-03-07 Thread Dakota Jack
Yes. I am talking about uploading NOW, but the ORIGINAL question was about downloading. Right? What is OP? Then Leon raised the interesting upload issue. I am finished with the upload application, however and am in the download part now. You are not missing the point. We have switched back a

Re: AW: DownloadAction Application

2005-03-07 Thread Leon Rosenberg
That depends. Ok, if you distribute the session, well, then you probably don't need a clustered environment, but a doctor :-) I mean, one of the goals of the clustering is performance, and write something in the database on _each_ request is the best performance killer :-) If performance is not

Re: AW: DownloadAction Application

2005-03-07 Thread Leon Rosenberg
That depends. Ok, if you distribute the session, well, then you probably don't need a clustered environment, but a doctor :-) I mean, one of the goals of the clustering is performance, and write something in the database on _each_ request is the best performance killer :-) If performance is not

Re: MVC Frameworks

2005-03-07 Thread Dakota Jack
Rod Johnson (author of Spring and one of the clearest thinkers I have ever read IMHO) has a good discussion of the options in J2EE Development without EJB in Chapter 13: Web Tier Design. Jack On Mon, 7 Mar 2005 14:19:47 -0600, Justin Morgan <[EMAIL PROTECTED]> wrote: > Hi there, > > I am curren

user@struts.apache.org

2005-03-07 Thread Kaja Mohideen
Hi, I wanted to display label using . But I need to filter(or allow) selected HTML tag. For example I have to allow tag but I have to filter alert("hi"); like that.. Can we do this selective filtering using any tag libraries,, otherwise I have to extend existing tag libraries..Please help me o

Re: AW: DownloadAction Application

2005-03-07 Thread Dakota Jack
Actually, Leon, I think it is really relevant and important to struts uploading. The point I was trying to make, however, and I think you will agree, is that there has to be somewhere you put the files if you allow uploading and there has to be some output stream doing it. That means you can moni

Re: AW: DownloadAction Application

2005-03-07 Thread Leon Rosenberg
> Actually, Leon, I think it is really relevant and important > to struts uploading. The point I was trying to make, > however, and I think you will agree, is that there has to be > somewhere you put the files if you allow uploading and there > has to be some output stream doing it. That m

Re: AW: DownloadAction Application

2005-03-07 Thread Leon Rosenberg
> Actually, Leon, I think it is really relevant and important > to struts uploading. The point I was trying to make, > however, and I think you will agree, is that there has to be > somewhere you put the files if you allow uploading and there > has to be some output stream doing it. That m

Re: AW: DownloadAction Application

2005-03-07 Thread Frank W. Zammetti
I can say for sure that within our environment here, which is Websphere 5.0.1 on Linux, a cluster of about 20 machines (and a number of clusters, but the clusters themselves are independant so it's not relevant here), each request that comes in can be serviced by any of the 20 machines in the clust

Re: why complicate? was: Eliminate Setup Actions

2005-03-07 Thread David Johnson
I think a simple approach is using tiles Controllers. They're WAY simple. Having said that I might be over SIMPLIFIYING the problem http://www.theserverside.com/articles/article.tss?l=Tiles101 On Mon, 07 Mar 2005 14:23:07 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote: > Ben Taylor wrote the foll

Re: AW: DownloadAction Application

2005-03-07 Thread Dakota Jack
The point is unavoidable, however, that whatever is persisted is persisted on a file system somewhere. The only difference between modern databases and the old ones is that they have multiple files which are related through some cool logic. Writing to a database is writing to a file system, right

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

2005-03-07 Thread Bill Siggelkow
C'mon man, for all intesive purposes its a Template -- it defines an algorithm that subclasses can override. As far as a way to specific alternative implementations -- there is, the element. But to me this whole conversation is moot. IMO, chain alleviates theses issues ... if you don't like ho

Re: why complicate? was: Eliminate Setup Actions

2005-03-07 Thread Frank W. Zammetti
On Mon, March 7, 2005 2:23 pm, Rick Reumann said: > I started reading a bunch of these threads in reply to the above and I > do think that I'm seeing a trend of over-complification here (yea, made > up word:). I do like the concept that JSF takes, but from some of the > posts I've read, some are co

Re: why complicate? was: Eliminate Setup Actions

2005-03-07 Thread Frank W. Zammetti
On Mon, March 7, 2005 2:23 pm, Rick Reumann said: > I started reading a bunch of these threads in reply to the above and I > do think that I'm seeing a trend of over-complification here (yea, made > up word:). I do like the concept that JSF takes, but from some of the > posts I've read, some are co

Re: AW: DownloadAction Application

2005-03-07 Thread Frank W. Zammetti
On Mon, March 7, 2005 3:55 pm, Dakota Jack said: > The point is unavoidable, however, that whatever is persisted is > persisted on a file system somewhere. No argument. But, when you do an an update to a database, there is a layer of abstraction (at least!) between your code and the file system,

bean write format=mm/dd/yyyy

2005-03-07 Thread Brian McGovern
Hi. I'm having some problems finding documentation on how to format a java.util.Date object in my presentation layer. I have and it works fine. But I want output like this "Monday, January 1st 2005". Can anyone help me out with this. I know its a lame question, just drawing a blank -T

Re: bean write format=mm/dd/yyyy

2005-03-07 Thread Erik Weber
Refer to the API documentation for java.text.SimpleDateFormat. Erik Brian McGovern wrote: Hi. I'm having some problems finding documentation on how to format a java.util.Date object in my presentation layer. I have and it works fine. But I want output like this "Monday, January 1st 2005".

Re: bean write format=mm/dd/yyyy

2005-03-07 Thread Erik Weber
Actually, if you are using "mm/dd/", I could be wrong. Are you sure you aren't using MM/dd/? SimpleDateFormat uses M for month and m for minute, so now I'm beginning to wonder if bean:write actually does use SimpleDateFormat . . . Erik Erik Weber wrote: Refer to the API documentation fo

RE: bean write format=mm/dd/yyyy

2005-03-07 Thread Brian McGovern
I didnt know it was simple date format. I didnt read the stack trace, like a moron. It tells ya right there. SimpleDateFormat.compile error.. So yeah, I got it now. Thanks everyone. -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 4:39 PM To:

session.invaludate(); not working in LogoffAction

2005-03-07 Thread David Johnson
hi all have a logoff action, and inside it I do the following. // Clean up the session if there is one HttpSession session = request.getSession(); session.invalidate(); When I watch what's happening in the manager application (I'm using Tomcat) the number of sessions does not decrease, and I ca

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

2005-03-07 Thread Erik Weber
Joe Germuska wrote: I have no idea why Craig would say that the RequestProcessor is somehow related to the Template Method pattern. It just isn't. Are you talking about org.apache.struts.action.RequestProcessor? Even if its not a shining textbook example of "Template", it most certainly is rela

Re: why complicate? was: Eliminate Setup Actions

2005-03-07 Thread Rick Reumann
Frank W. Zammetti wrote the following on 3/7/2005 4:07 PM: No argument here! Hence the reason I didn't want to add a new config file at all... my solution centers on the idea of adding one new element to an Action mapping, (although, as I wrote that just now, I think maybe makes more sense... pe

Re: session.invaludate(); not working in LogoffAction

2005-03-07 Thread Erik Weber
I think that you shouldn't just check for the existence of a Session, you should check for a "user" Session attribute that you have set in your own code. If you are invalidating the Session and this attribute still exists afterward, I'd suggest something has gone awry . . . And yes, I do it in

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

2005-03-07 Thread Dakota Jack
With all due respect, Bill, I don't think this is quibbling. The actual use of these patterns has far-reaching consequences and this "loose" way of talking about them IMHO is not helpful. For example, if the RequestProcessor were a template, it would have *had* to have been plugged into the frame

Hibernate Struts Example

2005-03-07 Thread Daniel Watrous
I have written a very simple shopcart application using Struts and Hibernate. I looked quite a bit for a decent tutorial and example but found nothing, so I put this together. For anyone else wondering how to integrate Hibernate and Struts, here is an example: http://www.simplecart.org The source

Re: session.invaludate(); not working in LogoffAction

2005-03-07 Thread Leon Rosenberg
Graig will blame for not using Filters (they would do the job too), but I'd say "yes": Create a "BaseAction", all your actions are extending from, with: public ActionForward execute( ActionMapping mapping, ActionForm bean, HttpServletRequest

Re: session.invaludate(); not working in LogoffAction

2005-03-07 Thread Leon Rosenberg
Graig will blame for not using Filters (they would do the job too), but I'd say "yes": Create a "BaseAction", all your actions are extending from, with: public ActionForward execute( ActionMapping mapping, ActionForm bean, HttpServletRequest

New Question Re:

2005-03-07 Thread Eric Lemle
I have a question after reading this question. What exactly does the filter=" do? -Eric >>> [EMAIL PROTECTED] 03/07/05 1:30 PM >>> Hi, I wanted to display label using . But I need to filter(or allow) selected HTML tag. For example I have to allow tag but I have to filter alert("hi"); like th

Re: Two css files

2005-03-07 Thread Bernd Schiffer
Hi Karan. Karan wrote: I don't have an answer to your problem, but I do have a question: The user of your webapp can customize extendedCssStyle for his/her own layout settings. But a different user can modify it again for different settings. How do you maintain the different layouts for different

Re: AW: DownloadAction Application

2005-03-07 Thread Dakota Jack
The bottom line, Frank, is that the monitor is monitoring another class that is running and reading the upload, viz. UploadOutputStream. I don't know what your setup is, but presumably however you persist the data, this link between the monitor, which is referenced in the output stream wrapper its

AW: New Question Re:

2005-03-07 Thread Leon Rosenberg
If this attribute is set to true, the rendered property value will be filtered for characters that are sensitive in HTML, and any such characters will be replaced by their entity equivalents. http://struts.apache.org/userGuide/struts-bean.html#write & -> & for example. > -Ursprüngliche Nach

AW: New Question Re:

2005-03-07 Thread Leon Rosenberg
If this attribute is set to true, the rendered property value will be filtered for characters that are sensitive in HTML, and any such characters will be replaced by their entity equivalents. http://struts.apache.org/userGuide/struts-bean.html#write & -> & for example. > -Ursprüngliche Nach

Re: why complicate? was: Eliminate Setup Actions

2005-03-07 Thread Dakota Jack
On Mon, 7 Mar 2005 16:07:34 -0500 (EST), Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > On Mon, March 7, 2005 2:23 pm, Rick Reumann said: > > I started reading a bunch of these threads in reply to the above and I > > do think that I'm seeing a trend of over-complification here (yea, made > > up wo

Re: why complicate? was: Eliminate Setup Actions

2005-03-07 Thread Frank W. Zammetti
Glad your on board :) I am going to work on it tonight, with a little luck I can get at least a first iteration done and post in Bugzilla tomorrow. Then we'll see if it passes muster for real :) I know what you mean about keeping up with posts... I feel like I'm constantly missing things :)

Re: AW: DownloadAction Application

2005-03-07 Thread Frank W. Zammetti
Sounds about right :) And like I said before, probably some of my debate comes from not fully understanding what your doing. But, here's where I have some concern... The upload begins and an UploadOutputStream starts it's thing. A Monitor is created, and holds a reference to the stream? (or i

[OT] Poll: Does Dakota Jack have a job? :)

2005-03-07 Thread Rick Reumann
I enjoy your posts but don't see how you have time to type so much:) You must be either A) Without spouse/significant other B) Currently unemployed. (All in good fun of course:) -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [OT] Poll: Does Dakota Jack have a job? :)

2005-03-07 Thread Dakota Jack
I am your secretary. ///;-) Actually, I have a significant other who adores me. Frank made a good joke about that one day. I am very currently employed as well, with my own company. I develop web applications. Jack On Mon, 07 Mar 2005 18:15:27 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote:

Re: [OT] Poll: Does Dakota Jack have a job? :)

2005-03-07 Thread Rick Reumann
Dakota Jack wrote the following on 3/7/2005 6:18 PM: I am your secretary. ///;-) Actually, I have a significant other who adores me. Frank made a good joke about that one day. I am very currently employed as well, with my own company. I develop web applications. Frank was second in the running

Re: [OT] Poll: Does Dakota Jack have a job? :)

2005-03-07 Thread Frank W. Zammetti
Just for that Rick I am going to ram a sausage down your throat and sic starving dogs up your butt! :) I am married with two kids and a full-time job. That should tell you pretty clearly that I need and take ANY time I can away from those things. Sad as it sounds, arguing with Jack and otherw

Re: [OT] Poll: Does Dakota Jack have a job? :)

2005-03-07 Thread Rick Reumann
Frank W. Zammetti wrote the following on 3/7/2005 6:37 PM: Sad as it sounds, arguing with Jack and otherwise interacting with you folks is a nice diversion from life :) You mean "discussing" of course. We never argue here:) -- Rick --

Re: [OT] Poll: Does Dakota Jack have a job? :)

2005-03-07 Thread Dakota Jack
We seque more than argue. On Mon, 07 Mar 2005 18:40:45 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote: > Frank W. Zammetti wrote the following on 3/7/2005 6:37 PM: > > Sad as it sounds, arguing with Jack and otherwise interacting > > with you folks is a nice diversion from life :) > > You mean "d

Re: [OT] Poll: Does Dakota Jack have a job? :)

2005-03-07 Thread Dakota Jack
What is really funny, Rick, is that you would not believe how many business hits I get from this list. Go figure? Jack On Mon, 07 Mar 2005 18:15:27 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote: > I enjoy your posts but don't see how you have time to type so much:) You > must be either > > A)

RE: [OT] Poll: Does Dakota Jack have a job? :)

2005-03-07 Thread Wiebe de Jong
> I am married with two kids and a full-time job. That should tell you > pretty clearly that I need and take ANY time I can away from those > things. Sad as it sounds, arguing with Jack and otherwise interacting > with you folks is a nice diversion from life :) I second that motion. I'm marr

  1   2   >