Re: [Struts Workflow Extension] Help

2002-07-29 Thread Matthias Bauer
Yes, specifying multiple prevStates is allowed. --- Matthias Amit Harsola wrote: Hi Matthias, Thanks. It worked. I want to know one more thing. Can there be 2 prevStates for a single action. action path=/main type=MainAction set-property property=primaryWorkflow value=w1 /

link to an ActionServlet

2002-07-29 Thread Michael Delamere
Hi, I just want ot make sure that I understand this right. When linking to an ActionServlet, say with ListThreads.do, is the procedure for implementing this the same as with sending forms; i.e. with an ActionMapping and a FormBean or is there a better way? I´m calling the link from a velocity

html:errors tag behaves strangely.

2002-07-29 Thread dave sag
hi people using struts1.1beta i want to display my errors such that i get any major errors at the top of the page and then any form specific validation errors down with my form. doing this simply was in fact my main motivation for migrating to struts. so i have set up my page and it all

Question about html:select

2002-07-29 Thread Vlad Alexeyev
Hello, Is it possible in the Struts to choose some needed option in the html:select to initialize my form. Thanks in advance for your help. Vlad. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Controller init() exception

2002-07-29 Thread avasey
Hi all I am using Struts 1.0.2 running on WebSphere 3.5.6. I can getting the following exception when my Controller is initialised. It looks like a parser problem. I am using Jaxp 1.0.1 but it doesn't seem to be happy running with WebSphere now that I have moved my web applications root

RE: Question about html:select

2002-07-29 Thread SATISH.T
Yeah ofcourse, either set the required value in the form bean or set the html: select 's value attribute to the value u want to be shown as default. -Original Message- From: Vlad Alexeyev [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 1:39 PM To: Struts Users Mailing List

Re: link to an ActionServlet

2002-07-29 Thread Michael Delamere
Ok, maybe that was a bit of a silly question :-). Still, could someone tell me what this means: The request sent by the client was syntactically incorrect (). This is what I get in my logfile: ERROR [HttpProcessor[8080][4]] (RequestProcessor.java:662) - ?? Thanks, Michael - Original

Re: link to an ActionServlet

2002-07-29 Thread Michael Delamere
oh dear... what a way to waste your time ;-) It wasn´t a problem of course. It just meant that my path in the ActionMapping was wrong! Just ignore this mail. Rergards, Michael - Original Message - From: Michael Delamere [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL

Incompatibilities with new fileupload package in nightly build

2002-07-29 Thread Erich Meier
Hi! I tried the new fileuploader from the commons package and ran into two incompatibilities. The first one is a small semantic change, the second one seems to be a bug. Before ranting about errors and shortcomings, let me say that the new fileuploader seems to be much more speedy than the old

The question of the html:checkbox tag for the struts(1.1 beta 1)

2002-07-29 Thread @Basebeans.com
Subject: The question of the html:checkbox tag for the struts(1.1 beta 1) From: news.basebeans.com [EMAIL PROTECTED] === Hi, The following text is my experiment for the checkbox tag. logic:iterate id=objParameter collection=%= arrSParameters % indexId=index tr td width=100 p

Query: html:select

2002-07-29 Thread @Basebeans.com
Subject: Query: html:select From: Sharmila Pillai [EMAIL PROTECTED] === Hi, My jsp looks like this: if(0pathSize) { for (int i=0; ipathSize; i++) { String element = sessionData.getPathElements(molecule,i); moleculeList.add(new

Directories and Files structure for sub applications

2002-07-29 Thread Heligon Sandra
Does anyone have a best practices suggestion for how to organize the directory and files structure for a Struts application composed of sub applications? Where the different strus-config files, application resources files, common JSP views have to be placed ?

Re: Directories and Files structure for sub applications

2002-07-29 Thread Tarun Sainanee
A lot would depend on the app server u r using Heligon Sandra [EMAIL PROTECTED] 07/29/2002 05:08 PM Please respond to Struts Users Mailing List To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] cc: Subject:Directories and Files structure for sub

RE: Directories and Files structure for sub applications

2002-07-29 Thread Heligon Sandra
I use Tomcat4. -Original Message- From: Tarun Sainanee [mailto:[EMAIL PROTECTED]] Sent: 29 July 2002 14:35 To: Struts Users Mailing List Subject: Re: Directories and Files structure for sub applications A lot would depend on the app server u r using Heligon Sandra [EMAIL

Re: Directories and Files structure for sub applications

2002-07-29 Thread Rob Leland
Does anyone have a best practices suggestion for how to organize the directory and files structure for a Struts application composed of sub applications? I don't know if there is a best practices yet. Here is what I have done. Our source tree looks much like the struts source

Struts 1.1 final release

2002-07-29 Thread Melanie Harris
Struts User Group, I understand that Struts 1.1 is very stable at this point and is basically considered a final build. However, the vendor I am currently subcontracting for will not let us move forward with Struts development using a beta build of struts. This is not good as 1.1 has a

nested taglib tomcat 4.1.8 problems

2002-07-29 Thread @Basebeans.com
Subject: nested taglib tomcat 4.1.8 problems From: Torgeir Veimo [EMAIL PROTECTED] === A recursive tree that works nicely with tomcat 4.0.2, gives me problems with tomcat 4.1.8; tree in 4.0.2; users pub arne nif200078 nif200078 pub calendar news

Tiles configuration with Struts 1.1b1

2002-07-29 Thread Dylan van Iersel
Hi all, Can anybody tell me how to configure Struts with Tiles. Am I supposed to use TilesRequestProcessor and if so how do I point it to the tile definitions xml file? In addition, am I supposed to use the TilesAction as the base class for my actions? I am using the DispatchAction and cannot

best practice question

2002-07-29 Thread Bill Blackmon
I have several iterators filled from db calls that will be used across the app for select boxes, lists of checkboxes, radio button etc.. In the context of Struts, would it be best to load these items as application level items at startup and define them in the struts-config.xml file with a

Need a Design pattern suggestion

2002-07-29 Thread Rajesh P
Hi, Have a small problem on deciding the approach. We have a datasource which is a C++ server that returns data in the form of a byte array ranging from 8000 to 32000 bytes of data. There would be many chunks of such byte arrays. FYI, we are using the Struts framework. Requirement: 1) To be

Re: Tiles configuration with Struts 1.1b1

2002-07-29 Thread Eddie Bush
plug-in className=org.apache.struts.tiles.TilesPlugin !-- This represents my config - you could also have /WEB-INF/anyfile.xml -- !-- You may include *multiple* config files by seperating them with commas! -- !-- Ex: value=/path/to/file1.xml,/path/to/file2.xml -- set-property

Re: Tiles configuration with Struts 1.1b1

2002-07-29 Thread @Basebeans.com
Subject: Re: Tiles configuration with Struts 1.1b1 From: Torgeir Veimo [EMAIL PROTECTED] === Dylan van Iersel wrote: Hi all, Can anybody tell me how to configure Struts with Tiles. Am I supposed to use TilesRequestProcessor and if so how do I point it to the tile definitions xml file?

Re: Components....

2002-07-29 Thread Eddie Bush
... and if that's not acceptable you could try tacking on a bookmark that you would use to return to wherever you initiate this search from: ?returnUrl=/path/to/where/I/am/now?with=yourparameters=andstuff=tackedon=end ... and then at the end of your search (whatever marks completion of your

Help with a dynamic radio button

2002-07-29 Thread Tarun Sainanee
Hi, I am generating multiple rows to show a search result on a jsp. Now i want to show the user a radio in every row. The user can select a any one radio and press a select button on the jsp to return to the calling screen. The code as of now is logic:iterate

Re: best practice question

2002-07-29 Thread @Basebeans.com
Subject: Re: best practice question From: Vic C [EMAIL PROTECTED] === No need to optimize, just do it as a formbean with c:for each or logic: iterate ...or html:options. v. Bill Blackmon wrote: I have several iterators filled from db calls that will be used across the app for select boxes,

Re: Need a Design pattern suggestion

2002-07-29 Thread @Basebeans.com
Subject: Re: Need a Design pattern suggestion From: Vic C [EMAIL PROTECTED] === RMI? I would not use RMI in a webApp, it could kill VM intermittent. Is there a way to make byte array into JDBC/ODBC or similar? Or to put a level of indirection? (Ex: I make things like Excahnage or MS Security

Removing request parameter

2002-07-29 Thread Marius Gabor
Hi! I need help: I have a form that contains a couple of hidden fields. I've tried 2 modify fields values working with JavaScript. It didn't do it. Somehow, these fields are not visible and I can't read or set them. I know that I can getParameter() or getParameterNames() and then I can see the

RE: [OT] What do you do with your SQL?

2002-07-29 Thread Assenza, Chris
Good thoughts, some comments. :) Our design is actually not the most typical EJB design. Due to a large amount of redundancy in our code, we implemented a single EJB that then calls methods on a specific implementation class depending on the object requested from the Struts tier (sort of like a

Initialization in a dispatchAction class

2002-07-29 Thread wbchmura
Heya, I have a number of DispatchAction based classes that run various reports. They also handle the pre-population of the report request screen drop down boxes... This is handled currently with an init method. So the first time a screen calls the report selection page is submits it as:

RE: Help with a dynamic radio button

2002-07-29 Thread Kamholz, Keith (corp-staff) USX
Hey, I think you could do something like: html:form action=/returnToCallingScreen.do logic:iterate id=myCollectionElement name=options1 indexId=index tr td html:radio property=selected value=%=index.toString()%/ td /tr /logic:iterate html:submit/

remove request parameter

2002-07-29 Thread Marius Gabor
Hi! I need help: I have a form that contains a couple of hidden fields. I've tried 2 modify fields values working with JavaScript. It didn't do it. Somehow, these fields are not visible and I can't read or set them. I know that I can getParameter() or getParameterNames() and then I can see the

Re: best practice question

2002-07-29 Thread Eddie Bush
Assuming these are application-level, read-only values, I would think you would want to load them at start and make them in application scope - yes. By doing so, not only do you not have to hit the database again, but you just reduced your over-all memory footprint too (since you don't have

Re: Tiles configuration with Struts 1.1b1

2002-07-29 Thread Dylan van Iersel
I have just checked out the nightly 1.1b1. It does not include the TilesPlugin anymore and I remember having read somewhere that the TilesPlugin is to be used in Struts 1.0. I remember that for 1.1b1 one should use TilesRequestProcessor. However, when requesting an action path, I consistently

Re: validating existence of session attributes in all Actions

2002-07-29 Thread Troy Hart
You could extend the request processor if you are using 1.1 or the ActionServlet otherwise. Every request is handled by these front controllers and therefore they provide a good place to put logic that pertains to all your actions. To answer your last question, look at the process() method of the

RE: [OT] What do you do with your SQL?

2002-07-29 Thread Assenza, Chris
Good idea, I think the only problem we might have with this is the fact that we'd have to build a lot of dynamic sql into our SP - which can be more annoying then just leaving it in the Java code. :) Thanks, Chris -Original Message- From: Yang, Pedro [mailto:[EMAIL PROTECTED]] Sent:

Re: Initialization in a dispatchAction class

2002-07-29 Thread Eddie Bush
[EMAIL PROTECTED] wrote: Heya, I have a number of DispatchAction based classes that run various reports. They also handle the pre-population of the report request screen drop down boxes... This is handled currently with an init method. So the first time a screen calls the report

Re: Tiles configuration with Struts 1.1b1

2002-07-29 Thread Eddie Bush
I think you have it bass-ackwards ... goes-to-double-check/ Dylan van Iersel wrote: I have just checked out the nightly 1.1b1. It does not include the TilesPlugin anymore and I remember having read somewhere that the TilesPlugin is to be used in Struts 1.0. I remember that for 1.1b1 one should

RE: Initialization in a dispatchAction class

2002-07-29 Thread wbchmura
H'Okay... * I've tried simply adding in another action called startPremadeReports that forwards to: premadeReports.do?action=init Problem is that the premadeReports has validation which fails because you have not been to the form yet * I've tried a globalForward but that has the same

Re: best practice question

2002-07-29 Thread Bill Blackmon
Thanks. I'll try that. I guess I'd just create an instance of the form bean class at the entry to the app with the request passed in and create the form bean in application or session scope? The formbean would be declared in the struts.xml file with session or application scope? I'm just thinking

Errors on a different frame

2002-07-29 Thread Gus Delgado
Can I display the errors of an input form in a different frame? like a footer frame? Can I display the errors of an input form in a JScript pop up window? and are these two options conflicting with the Struts framework and/or design? Thanks in advanced. Gus -- To unsubscribe, e-mail:

Re: Tiles configuration with Struts 1.1b1

2002-07-29 Thread Eddie Bush
The latest nightly, in the tiles-documentation.war file, if you unpack it, has a struts-config.xml. If you notice (I'm assuming this is what you referenced), the RequestProcessor override has been commented out. However, the plug-in element is there! I'm basing my view off this information.

Re: best practice question

2002-07-29 Thread Eddie Bush
You don't want it in the session if it's very big! There's no reason to load this data repeatedly (for each user!) if it is non-volatile! Load it on startup as I mentioned in my other post and merely reference it. If it is volatile you'll have to devise some strategy for updating it.

Remove request parameter

2002-07-29 Thread Marius Gabor
Hi! I need help: I have a form that contains a couple of hidden fields. I've tried 2 modify fields values working with JavaScript. It didn't do it. Somehow, these fields are not visible and I can't read or set them. I know that I can getParameter() or getParameterNames() and then I can see the

RE: Initialization in a dispatchAction class - Hows this?

2002-07-29 Thread wbchmura
Yo ho ho Following the caffine finally kicking in at the end of my last e-mail I added this code to the top of my Action class (that exends DispatchAction). This seems to work, it checks for the existance of the parameter named in the mapping - if its null it will call the dispatchMethod

Commons

2002-07-29 Thread Juan Alvarado \(Struts List\)
Folks can someone tell me where the API documentation for DBCP is?? Thanks ** Juan Alvarado Internet Developer -- Manduca Management (786)552-0504 [EMAIL PROTECTED] AOL Instant Messenger: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL

Re: Question about Struts and XSL

2002-07-29 Thread Jeff Pennal
Josh, stxx (http://www.openroad.ca/opencode/stxx) may be able to help you with your problem. stxx allows you to take the output of an Action class and process it through an XSL file to get the final HTML output, giving you the choice of bypassing the JSP taglib specific code of a normal

Re: Initialization in a dispatchAction class

2002-07-29 Thread Eddie Bush
That was my thought, but, not knowing what you'd tried, I didn't want to suggest it :-) I haven't fooled around with extending the dispatch actions - but I don't see why this would be a problem. Just extend it, do what you need to, and then call the super.execute(...). I think that's where

RE: Initialization in a dispatchAction class

2002-07-29 Thread wbchmura
I forwarded that solution in another e-mail (so the next poor sap that wants to do it can find it in the archives). Thanks for the verification I am not a crackpot... Well, a bad one anyway... -Original Message- From: ekbush [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002

Same FormBeans in Session under 2 different Keys

2002-07-29 Thread bobby oberai
Hello All, I am trying to find out if its possible to keep a particular Action Form Bean in Session under different keys. i.e. I have 2 HTML Forms under different names, but Form Bean Classes are same (but values in the Form bean are different). Thanks, Bobby.

Pre-checking checkboxes

2002-07-29 Thread Shaun Whyte
Hi all Question about html:checkbox ... / tags... In an ActionForm, to set a checkbox attribute from a form in a jsp, the attribute must be a boolean, and because the forms setCheckBoxValue(boolean) method is only called if the checkbox is checked, it must be initialised to false in the reset()

Re: Remove request parameter

2002-07-29 Thread Eddie Bush
*maybe* you could try replying to the threads you have already? And maybe you could wait longer than 15 minutes in between postings of the *exact same material*? I know it can be frustrating to be stuck, but many of us have things to do other than just reply to your query :-) I'm not

Re: Initialization in a dispatchAction class

2002-07-29 Thread Eddie Bush
LOL - we're all human, last I checked! ;-) [EMAIL PROTECTED] wrote: I forwarded that solution in another e-mail (so the next poor sap that wants to do it can find it in the archives). Thanks for the verification I am not a crackpot... Well, a bad one anyway... -Original Message-

Prefilling ActionForm Data

2002-07-29 Thread David Graham
I'm pretty new to struts and have figured out how to do an add form where you start with an empty set of text boxes, fill them in, and when you submit it puts the data into a database. How do I setup an edit form where you get a url like /updatePerson.jsp?id=61 where id is the person id from

Re: Remove request parameter

2002-07-29 Thread Jan Fetyko
Listen to Eddie, he knows what he is talking about, I know from my own experience. J Eddie Bush wrote: *maybe* you could try replying to the threads you have already? And maybe you could wait longer than 15 minutes in between postings of the *exact same material*? I know it can be

Re: Same FormBeans in Session under 2 different Keys

2002-07-29 Thread Daniel Jaffa
Sure just give them different names - Original Message - From: bobby oberai [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 29, 2002 12:16 PM Subject: Same FormBeans in Session under 2 different Keys Hello All, I am trying to find out if its possible to keep a particular

Re: Prefilling ActionForm Data

2002-07-29 Thread Dave Weis
On Mon, 29 Jul 2002, David Graham wrote: I'm pretty new to struts and have figured out how to do an add form where you start with an empty set of text boxes, fill them in, and when you submit it puts the data into a database. How do I setup an edit form where you get a url like

Re: How do I navigate from one subApp to another in Struts1.1?

2002-07-29 Thread Craig R. McClanahan
I'm afraid I don't understand your question. Don't you know which subapp you want to transfer control to? If you want to remember where you came from, that is certainly something you would need to do for yourself -- perhaps by creating a session attribute that is either a string (if you don't

Re: Tiles configuration with Struts 1.1b1

2002-07-29 Thread Dylan van Iersel
Hi Eddie, Thanks for your reply. I must have had my head in the blender or something. It have encountered so much different sources of documentation that things got mixed up. Anyway, I'll try your suggestion tomorrow and let you know how things went. Again thanks for your help and effort.

Re: Remove request parameter

2002-07-29 Thread Marius Gabor
Hi, Eddie! I'm sorry!!! I thought that the massage wasn't posted, that's the reason I did it many times!!! In my mailing list, the thread doesn't seem to be open. So, please excuse me for being so silly! That's for all, not only for you. :) So, my problem is: I have some JSPs and in taglibs.

Re: Tiles configuration with Struts 1.1b1

2002-07-29 Thread Eddie Bush
I never trust myself until I have my third cup of morning coffee :-) As I said in another post, we're all human ... at least, I hope we are! :-) Good Luck! Eddie Dylan van Iersel wrote: Hi Eddie, Thanks for your reply. I must have had my head in the blender or something. It have

RE: Need a Design pattern suggestion

2002-07-29 Thread Nelson, Tracy (ETW)
You say your data source is a C++ server -- I assume you mean that it's written in C++, not that it's serving you C++ code. :) In that case, I assume you have toe source, so why not modify it to spit out XML instead of just raw bytes? That would give you a lot more options as far as handling it

Re: Struts 1.1 final release

2002-07-29 Thread Craig R. McClanahan
As is the usual case for open source software, there is no such date known to anybody. Finding bugs (and, even better, contributing patches) is the best way to accellerate whatever date it turns out to be. The next step in the chain will be a beta 2 release, as soon as we get a few more bugs

Re: Commons

2002-07-29 Thread Craig R. McClanahan
On Mon, 29 Jul 2002, Juan Alvarado (Struts List) wrote: Date: Mon, 29 Jul 2002 12:01:14 -0400 From: Juan Alvarado (Struts List) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts [EMAIL PROTECTED] Subject: Commons Folks can

Re: Prefilling ActionForm Data

2002-07-29 Thread Craig R. McClanahan
On Mon, 29 Jul 2002, Dave Weis wrote: Date: Mon, 29 Jul 2002 11:53:40 -0500 (CDT) From: Dave Weis [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Prefilling ActionForm Data On Mon, 29 Jul 2002, David

Re: Removing request parameter

2002-07-29 Thread Marius Gabor
This is completely wrong, because is a PARAMETER, not an attribute. Thanx, anyway! Marius Leblon Jean-marc wrote: hail, try request.removeAttribute(ParameterName); JML [EMAIL PROTECTED] -Original Message- From: Marius Gabor [mailto:[EMAIL PROTECTED]] Sent: lundi

Re: Remove request parameter

2002-07-29 Thread Eddie Bush
Marius Gabor wrote: Hi, Eddie! I'm sorry!!! I thought that the massage wasn't posted, that's the reason I did it many times!!! In my mailing list, the thread doesn't seem to be open. So, please excuse me for being so silly! That's for all, not only for you. :) Subscribe to the mailing

uncoupling Web Design/Web Development

2002-07-29 Thread Greg Hess
Hi All, I have designed a web application that is dependant on a work flow, the user interface is constructed by Web Designers and the server side is done by Web Developers. The web designers are now comfortable using the struts tags and so on but they hate the fact that they have to follow the

Architecture advice....

2002-07-29 Thread Michael Delamere
Hi, I had a discussion at work today concerning the best way to implement our application. A very basic discription of the framework would be the following: 1. Struts + Velocity for the view 2. Struts ActionServlets for the controller 3. Service layer/methods for querying persistence layer 4.

Re: uncoupling Web Design/Web Development

2002-07-29 Thread Michael Delamere
This may not be ideal but the way we do it is that the designers give us their static content (html pages) and we feed it into the jsps/velocity templates. That way we have more control over the dynamic elements in the webpage and they can play and fiddle with their html code as much as they

RE: best practice question

2002-07-29 Thread Martin Cooper
You don't want a form bean for this data, because you're not associating it with a specific form, and because a form bean is not instantiated until it's needed by the html:form tag or an associated action, neither of which will happen in your scenario. Your original idea is the right one. Load

how to detect when the user presses the stop button

2002-07-29 Thread Andrew Geery
I was looking through the struts archive and I've seen this question asked but never answered. See http://nagoya.apache.org/eyebrowse/ReadMsg?listId=42msgNo=30063 for the original question. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

RE: Architecture advice....

2002-07-29 Thread Greg Hess
Hi, I have designed our service layer using normal classes, I initialize the service layer on application start up and place them in the ServletContext. I have been looking at this strategy and considering using Static methods as well, as the only state in these classes is the jdbc driver and

Re: how to detect when the user presses the stop button

2002-07-29 Thread Eddie Bush
Yes, it has been answered. The answer is that, assuming the page they are waiting to load is printing things out, you will get an IOException when you try to send output. AFAIK, this is the only way to detect it. Andrew Geery wrote: I was looking through the struts archive and I've seen

RE: Architecture advice....

2002-07-29 Thread Chappell, Simon P
Well, what we did to seperate Struts from the backend was to implement what we called a Firebreak. We created an abstract Java class called API.java. It's whole purpose in life was to be the application API to the model component. This would enable us to utilise alternative views and/or

How to: Multi-page query results?

2002-07-29 Thread Greg Hess
Hi, I am looking to integrate a multi-page query result display into my Struts app, like all search engines provide. I would love some sample code or links to existing recourses to help design this functionality. Much appreciated, Greg

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
Am I understanding you correctly that you weren´t happy with the first approach? What were your experiences that´s getting you to rethink the matter? Thanks, Michael - Original Message - From: Greg Hess [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday,

Re: how to detect when the user presses the stop button

2002-07-29 Thread Tony Baity
This is a browser client and JavaScript question unless you are using an applet with an open connection to your server. You may want to redirect the question to the Mozilla org. The browser folks have not built in detection of those window component events on an individual basis except for

RE: how to detect when the user presses the stop button

2002-07-29 Thread Andrew Geery
I saw that answer, but I was wondering if struts generated an event or action that corresponded with it. But I guess the answer is that the framework doesn't give any help here :(. Thanks for your help. Andrew -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Monday,

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
Yep, that´s exactly what it sounds like :-). I would like to implement something similar to the session facade used in EJB environments. I like the singleton idea. Have you implemented this yourself. What are your experiences in doing it this way? I take it that the factory would do the job

RE: how to detect when the user presses the stop button

2002-07-29 Thread Dan Petrie
Look on jGuru.com You will find the answer there. -Dan- -Original Message- From: Andrew Geery [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 3:18 PM To: 'Struts Users Mailing List' Subject: RE: how to detect when the user presses the stop button I saw that answer, but I was

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
Thanks to you also! It´s a great help to hear other peoples experiences. What we were worried about is that all calls for a particular job would go via the one and only static method; i.e. thought it might become a bit of a bottleneck. Did you experience anything along those lines? Thanks for

RE: Architecture advice....

2002-07-29 Thread Chappell, Simon P
Not yet! Of course, the API methods are 100% passthrough. They exist only to prevent M mixing with the V and C. To that extent, I am not too worried. Simon -Original Message- From: Michael Delamere [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 2:30 PM To: Struts Users Mailing

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
Nice to hear. I suppose worried was the wrong word :-) ! Basically our experience with this type of architecture isn´t all that great; nonetheless we want to do our best possible to eliminate known problems or bottlenecks before starting. There´s nothing worse then hearing the words... if only

RE: How to: Multi-page query results?

2002-07-29 Thread wbchmura
Check this out... It handles that and also does alot more http://edhill.its.uiowa.edu/display-examples-0.8/example-styles.jsp There is another lib that everyone seems to like also that I cannot remember the name of... Try searching the achives for the name of that one... -Original

RE: Architecture advice....

2002-07-29 Thread Chappell, Simon P
Your welcome. I just checked with the chaps and they agree. Because our API is completely abstract and methods are static and we have no synchronised code blocks or member variable accesses, we do not expect any bottlenecks in that piece of code. Hope this helps. -Original Message-

RE: Architecture advice....

2002-07-29 Thread Greg Hess
I just recently seen an implementation that used static methods and I am always trying to tread lightly with the use of the ServletContext and HttpSession. My web container is hosting hundreds of these applications and I am concerned that this strategy might lead to problems in the

upload files

2002-07-29 Thread Christian Pich
How does struts envision to send files (images, documents) to the web user back? I could not find documentation about it? Is that done in the Action class? How do I set the contents-type, such as image/gif or others and how do I set the default name that appears for the user when he is asked to

Re: Architecture advice....

2002-07-29 Thread David Graham
I chose not to implement a session facade in my current project but have done it this way in other applications. I really dislike bunches of static method calls so this solution works nicely. I mispoke when I mentioned the factory method; it would only create the singleton instance on the

RE: upload files

2002-07-29 Thread Dan Petrie
Hi Christian, Simply use the request object passed into the Action's perform/execute method, set the content type, write whatever data is necessary, and return null (no ActionForward). -Dan- -Original Message- From: Christian Pich [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002

RE: upload files

2002-07-29 Thread Bichiko, Dmitri
you can set the content type from within the JSP page: response.setContentType(application/vnd.ms-excel) for the file name: response.setHeader(Content-Disposition,attachment; filename=myfile.xls;) Dmitri -Original Message- From: Christian Pich [mailto:[EMAIL PROTECTED]] Sent:

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
- Original Message - From: Greg Hess [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, July 29, 2002 10:00 PM Subject: RE: Architecture advice I just recently seen an implementation that used static methods and I am always trying to tread lightly

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
yes, I think I will try that now and possibly introduce it at work tomorrow. It´s just what I have been looking for because I didn´t like the _idea_ of static methods (although the last couple of threads have proven otherwise); nor did I like the idea of having the service methods in servlets.

calling reset() method

2002-07-29 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, It's an issue that many people see to keep asking, but I'm having a problem with the html:checkbox ... / tag. I'll try to be descriptive, but not make my post too long. I've gotten my app to work using it by manually reseting the boolean values to false before going to the jsp.

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
Graham, there´s just one more question that I have concerning your method. Obviously there will be many different objects which make up the service facade. Does that mean that one has a factory for each object; i.e. each factory returns it´s type of instance, or do you pass a parameter to the

Re: upload files

2002-07-29 Thread Christian Pich
Well, I did that before without the struts framework and ran into problems: I am working in frames so when I try to output specific contents then it always defaults the contents to the frame source file contents. Also, it would not allow me to set the default file name correctly. Can I do it

RE: uncoupling Web Design/Web Development

2002-07-29 Thread Jacob Hookom
I am working on a big project for an insurance company and we are doing everything in XML/XSLT. That way, the programmers can write JSP's or Servlets that just generate XML data and then depending on who's making the request, it formats the page as WML, PDF, or HTML. That way the designers can

Re: uncoupling Web Design/Web Development

2002-07-29 Thread Michael Delamere
I really like your idea but how long did it take for everyone involved to adapt to this approach? Surely it must take some time until efficiency comes back into the flow of things. Then again, I suppose when it does, everything becomes much easier. Regards, Michael - Original Message

RE: uncoupling Web Design/Web Development

2002-07-29 Thread Greg Hess
Thanks, very interesting. I was having trouble understanding some of the benefits of using XML/XSLT and this is a very compelling benefit. Greg -Original Message- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 4:33 PM To: 'Struts Users Mailing List' Subject:

webmacro

2002-07-29 Thread Arun Vennapusa
how to configure for webmacro using struts -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: uncoupling Web Design/Web Development

2002-07-29 Thread Jacob Hookom
Basically, it was a strict requirement of the system, and this MVC2 is not implemented throughout the site in this manner, primarily for reporting features. Do the math, either generate 40 jsps that spit out HTML, then another 40 for WML, then another 40 for PDF (120 JSPs), or just have a single

  1   2   >