RE: Validation with tiles
Yes, it would. Eelco -Original Message- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:15 PM To: 'Struts Users Mailing List' Subject: RE: Validation with tiles It would work though if I forced all pages to load through an Action, and just did a normal forward, but in the Action, do request.setAttribute(,object); So the resulting page material would rely on a request attribute, not a parameter. This would be exposed in the forwarding page correct? Thanks! Jacob | -Original Message- | From: Eelco Klaver [mailto:[EMAIL PROTECTED]] | Sent: Thursday, August 15, 2002 6:50 AM | To: 'Struts Users Mailing List' | Subject: RE: Validation with tiles | | Hi Jacob, | | You can't add request parameters when forwarding to a new page (you can | only | do this when redirecting to a new page). So if you make the particular | ActionForward a redirect, it will work (note that since it will be a | different request, the parameters from the previous request are not | remembered). Otherwise, you have to put the new value in the request | attributes. | | Regards, Eelco | | | -Original Message- | From: Jacob Hookom [mailto:[EMAIL PROTECTED]] | Sent: Thursday, August 15, 2002 11:58 AM | To: 'Struts Users Mailing List' | Subject: RE: Validation with tiles | | | Thanks, | | An example would be an action like so: | | /addEmployee.jsp?boss=45 |form action=insertEmployee.do |input type=hidden name=boss value=45 |. |/form | | /insertEmployee.do |//do processing |. |//I want to return to: mainBoss.jsp?id=45 |return ActionForward(mainBoss.jsp?id=); | | | As you can see, I would like to have struts delegate the response id, | much like the html:link as to what property it will return in the | action forward. | | I know I can do saveToken on the response with errors, is that the | correct way to handle it adding parameters to the forward dynamically? | | Best Regards, | Jacob | | | | -Original Message- | | From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]] | | Sent: Wednesday, August 14, 2002 7:55 PM | | To: Struts Users Mailing List | | Subject: Re: Validation with tiles | | | | | | If you put params from actions, it can only be request parameters, | set | | with parameter= The tiles preferred way is to put tiles | attributes | | in the definition, and forward to this definition. | | | |Cedric | | | | Jacob Hookom wrote: | | | | What is the proper way of forwarding users, but with params from | | actions? | | | | Thanks, | | Jake | | | | | -Original Message- | | | From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]] | | | Sent: Monday, August 12, 2002 2:56 PM | | | To: Struts Users Mailing List | | | Subject: Re: Validation with tiles | | | | | | | | | Hi, | | | | | | Which version of Struts do you use (1.1 or 1.0.x) ? Your second | | | solution should works under Struts1.1 latest nightly | build. If not, | | | please report a bug to bugzilla. | | | | | |Cedric | | | | | | Ricardo de Souza Moura wrote: | | | | | | I would like to put in the input attribute a tile | definition, but | I | | | don't get... There are any method to do this ? | | | | | | my solution... | | | | | | action path=/aberturaCadastro | | forward=def.cadastro.identificacao/ | | | | | | action path=/newCustomer type=classe scope=request | | | name=customerForm input=/aberturaCadastro.do | parameter=method | | | validate=true ... /action | | | | | | | | | but I would like to do this. is It amiss ? | | | | | | action path=/newCustomer type=classe scope=request | | | name=customerForm input=def.cadastro.identificacao | | | parameter=method validate=true ... /action | | | | | | Thanks | | | | | | | | | | _ | | | Tenha você também um MSN Hotmail, o maior webmail do mundo: | | | http://www.hotmail.com/br | | | | | | | | | -- | | | To unsubscribe, e-mail: | | | mailto:[EMAIL PROTECTED] | | | For additional commands, e-mail: | | | mailto:[EMAIL PROTECTED] | | | | | | | | | | | | | | | | | | -- | | | To unsubscribe, e-mail: mailto:struts-user- | | | [EMAIL PROTECTED] | | | For additional commands, e-mail: mailto:struts-user- | | | [EMAIL PROTECTED] | | | | | | --- | | | Incoming mail is certified Virus Free. | | | Checked by AVG anti-virus system (http://www.grisoft.com). | | | Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 | | | | | | | --- | | Outgoing mail is certified Virus Free. | | Checked by AVG anti-virus system (http://www.grisoft.com). | | Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 |
RE: Initialisation
Hi, I usually recommend to program the Application-Scope beans as lazy-initializing. In this way only the necessary data is prepared. Doing it in the init()-method can be usefull. BUT: In our company we had the case that a web-app could never be started, because of a init()-method taking too long. A control-mechanism (robot user) that should check whether the application was running decided that the application was dead and restarted the server... The solution was not to use the init()-method to initialize application-scope data (the whole method took more than 10 minutes getting lots of common data using a corba-service). Reading up on the spec teached us, that during the init()-method of a servlet no other request can be handled by the servlet-engines. If only it would be possible to specify a non-blocking secondary init-phase. But that discussion belongs to the servlet-spec discussions... just my 2cents Alexander -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 15. August 2002 17:36 To: Struts Users Mailing List Subject: Re: Initialisation On Thu, 15 Aug 2002, Howard Miller wrote: Date: Thu, 15 Aug 2002 14:50:46 +0100 From: Howard Miller [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Initialisation Errr... stupid newbie question coming up. If I want to create objects in the Application Scope the design notes for Struts says application scope beans are initialized in the init() method of a startup servlet. Well, they *can* be done there, and it's very common. But this is not the only choice. Application scope attributes can be created at any time. But, and I'm sure I'm missing something here, I haven't got an init() method because the servlet belongs to Struts. So where do I put my innitialisation code? In Struts 1.0.x, the common pattern is to subclass ActionServlet and override the init() method for this kind of thing: public class MyActionServlet extends ActionServlet { public void init() throws ServletException { // Perform standard Struts initialization super.init(); // Perform my extra initializations ... } } In Struts 1.1, you have the additional option of creating a PlugIn implementation and registering it in your struts-config.xml file. A PlugIn has init() and destroy() methods very similar to a servlet, and are called at startup and shutdown times as you would expect. You can have as many PlugIn instances as you need. The struts-example webapp in 1.1 uses a PlugIn to set up and shut down its pseudo-database. Take a look at the included sources to get an idea of how it all fits together. I noticed plugins in earlier posts, but there isn't any documentation that I can find - is this what I'm looking for? Sounds like a fundamental thing to want to do, which is why I'm sure I'm missing something really obvious! Cheers... Howard Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Anyone know what this error message means?
Catch Throwable rather than Exception. It prevents you for uncaching Errors. Maybe you get further clues. Adolfo. From: Bill Blackmon [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Anyone know what this error message means? Date: Thu, 15 Aug 2002 22:26:18 -0400 I'm getting the following error message in a jsp. I put debug code in the top code section of the page with a try/catch statement and nothing is being caught during the imports and declarations - no output at all. This is a new one and not too helpful. org.apache.jasper.JasperException: null(-1,-1) jsp.error.source.map at org.apache.jasper.compiler.DefaultErrorHandler.jspError(Unknown Source) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(Unknown Source) at org.apache.jasper.compiler.ErrorDispatcher.jspError(Unknown Source) at org.apache.jasper.compiler.ErrorDispatcher.parseJavacMessage(Unknown Source) at org.apache.jasper.compiler.ErrorDispatcher.javacError(Unknown Source) at org.apache.jasper.compiler.Compiler.compile(Unknown Source) at org.apache.jasper.JspEngineContext.compile(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source) at org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown Source) at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown Source) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:97 2) at org.apache.struts.action.RequestProcessor.processActionForward(RequestProces sor.java:408) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:358) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:495) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:518) at java.lang.Thread.run(Thread.java:484) Thanks, Bill -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: A very, very strang problem, urgent help please
In UNIX, file names are case sensitive. In Windows, they are not. Have you checked this? From: Cliff Rowley [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: A very, very strang problem, urgent help please Date: 16 Aug 2002 02:50:44 +0100 On Fri, 2002-08-16 at 02:19, [EMAIL PROTECTED] wrote: Hello, Hi :) I have a very, very strange problem. I use Struts, with nested tags. And the application is deployed on Unix. The page contains a very complexe form. When I submit the form, the URL appears on the Internet Explorer address field like http://buick/lf/consulterRepartitionRubrique.do; ou (When I click on a link )http://buick/lf/secur/accueil.jsp;, but IE display an error message like 400 incorrect request, Impossible de trouver la page... . But when I use windows as Server platform(WebSphere), It works. You didn't specify which application server you are using under unix. Still WebSphere? Also, I dont quite understand the reference to the JSP page - are you saying the same thing happens when you request a JSP page as when you request a Struts (*.do) URL? Also ... in your IE advanced options, turn *off* the 'friendly HTTP error messages' - they royally suck and more often than not they disguise the real problem. The more strange is, when I submit the form, it gives a error described as above. But then I click on the Address field of the IE and return. It works (on Unix platform). This is very very strange. Has somebody had this problem ? Your helps are very appreciaed. Never seen it myself :\ Thanks very much. Peiqiang -- Regards --- Cliff Rowley| [EMAIL PROTECTED] Software Engineer | www.doctype.co.uk +44 (0) 1206 514263 | www.cliffrowley.com --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Validator problem!
Hi, Im using the struts validator to validate a date in an DynaValidatorForm. In my JSP I have two radio buttons where the user can choose between the current date and an input field that requires an valid date. The Struts validator always validates the date from the input field. But I want that the validator doesn't validate the date when the current date is selected. How can I disable the validation when the current date radio button is selected? TIA Marco -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Welcome file and struts
Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load my index.do on startup. Any help would be really appreciated. Thanks, Michael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Validator problem!
Once simple option is just to use a plain old ActionForm and override the validate method. -Original Message- From: Marco Maier [mailto:[EMAIL PROTECTED]] Sent: Friday, 16 August 2002 5:48 PM To: Struts Users Mailing List Subject: Validator problem! Hi, Im using the struts validator to validate a date in an DynaValidatorForm. In my JSP I have two radio buttons where the user can choose between the current date and an input field that requires an valid date. The Struts validator always validates the date from the input field. But I want that the validator doesn't validate the date when the current date is selected. How can I disable the validation when the current date radio button is selected? TIA Marco -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ActionForms in session, in a clustered environment
I found a cluster related issue for ActionForms, which I reported a while ago, but I did not get any response. I would appreciate your opinion if you do further investigations. For Uploads, Struts uses FormFile/DiskFile objects as the parameter of the ActionForm which is going to receive the source file. It happends that it is no serializable. When the form is declared in session scope, my container (Websphere), attempts to persist it, and as it is not serializable throws an NonSerializableException. It does not happend, fo course, when declared in request scope. Any opinions are welcome? Adolfo. From: Molitor, Stephen [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: ActionForms in session, in a clustered environment Date: Thu, 15 Aug 2002 13:18:53 -0500 I have a question about the use of forms in session scope, in a clustered environment. In a clustered environment, if you get someting from the session via session.getAttribute, and then modify that object, you have to call session.setAttribute to let the container know that the object has changed, so that it can replicate it across the cluster. If one uses session scoped form beans, will session.setAttribute get called? Looking at the code in ActionServlet.processActionForm, it looks like it does. But I just want to make sure that there aren't any cluster related issues one should be aware of. Steve Molitor [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] HTML HEAD TITLEAdolfo's signature/TITLE /HEAD BODY centerbemAdolfo Rodriguez Miguelez/emb/center /BODY /HTML _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Validator problem!
I know about that, just like... public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); // check only if the second radio button is selected if(this.selected.equals(1) !DateUtils.isDateValid(this.day, this.month, this.year)) { ActionError newError = new ActionError(global.error.invalid_date); errors.add(ActionErrors.GLOBAL_ERROR, newError); } return errors; } but I want use dynamic forms. One solution is to use javascript that detects when the current date is selected. Then get the current system date an put it to the validator. But this isn't nice for me. Marco Zimmer, Robin (SSABSA) wrote: Once simple option is just to use a plain old ActionForm and override the validate method. -Original Message- From: Marco Maier [mailto:[EMAIL PROTECTED]] Sent: Friday, 16 August 2002 5:48 PM To: Struts Users Mailing List Subject: Validator problem! Hi, Im using the struts validator to validate a date in an DynaValidatorForm. In my JSP I have two radio buttons where the user can choose between the current date and an input field that requires an valid date. The Struts validator always validates the date from the input field. But I want that the validator doesn't validate the date when the current date is selected. How can I disable the validation when the current date radio button is selected? TIA Marco -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: A very, very strang problem, urgent help please
On Fri, 2002-08-16 at 09:13, Adolfo Miguelez wrote: In UNIX, file names are case sensitive. In Windows, they are not. Have you checked this? A very good point. I should have thought of that, since all my development and deployment happens in a *NIX environment .. but I guess I just make everything lowercase as habit now. -- Regards --- Cliff Rowley| [EMAIL PROTECTED] Software Engineer | www.doctype.co.uk +44 (0) 1206 514263 | www.cliffrowley.com --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
A search path for JSPs?
What I would like to do is to custimize installations of a struts-based web application, in a way that isn't overwritten when a new version of the webapp's .war file is installed. Is it possible to do something like this for a struts application? - deliver the application as a .war file - customize the application by putting JSP files with the same names as the files inside the .war file into a directory that is scanned before the directory of the .war Ie. have a search path for the JSPs? Other ideas I have considered, are: - Change forward elements in the struts-config.xml file to point to the locally customized JSPs. This is difficult because the struts-config.xml resides inside of the .war file. I'm also not sure if it is possible to point outside of the webapp? - Run a cronjob (or something) to patch the unpacked webapp by overwriting distributed JSPs with locally customized versions. This feels like a hack/last resort - Replace the class that reads the struts-config.xml file with a class that reads its config data from a database Is there some obvious approach I have overlooked? Thanx! - Steinar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Files in WEB-INF
I'd like to open a file in WEB-INF from my code. Is there a platform independent way of getting the path to WEB-INF? We have to deploy on Tomcat and Websphere 4. ta, Tim. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[FRIDAY] Persistence
I usually miss out on these Friday threads. (Different time zone. It's Saturday for me when you guys have all your fun.) This time I missed it by a whole week because we were all on vacation, dancing with the dead, so to speak. But I just have to contribute to this one. My high school industrial-ed class built an Altair 8800 and used a borrowed teletype/papertape. I still have a 6802 prototyping kit. (Okay, it's a couple thousand miles away.) I hand-wired 32K dRAMs onto it. Got a TRS-80 Color Computer, with effectively the same video controller, several years later. Used a UNIVAC 1100 at college, can't remember the model number. Had a 36 bit word. We all celebrated when the college got a 100M hard disk and started giving the students accounts with a 4k-word workspace. If we wanted backup, they had an on-line card punch. And we all assumed that 20 years was plenty of time to prepare for y2k. Apparrently some VERY persistent memories though ;-} Back then, I could not _imagine_ what I'd do with 64k of RAM. But I didn't think I'd want anyone _else's_ code running in it ... - Original Message - From: Shozi [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, August 12, 2002 7:18 AM Subject: Re: Struts Persistence We are talking about struts and persistence? But I am unable to find this word in last five mails except some personal good memories. Shozi -- Joel Rees [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [FRIDAY] Persistence
I too have to put up with the Friday threads being on Saturday. Guess its lucky Im so busy I usually have to come in on weekends too to get it all done... sigh/ Our BBC Micro network when I was in school had a fileserver with a harddisk on which we were allocated 20k. Following some experimentation I found a neat trick to get more... Like many far more advanced network filesystems, this one (Econet) allowed you to set read and write permissions for your files. I found that if a user was appending to a file owned by another user, it would come out of their allowance and not the file owners, but when the owner deleted the file guess whos account the size would be credited to... A few programs with suitably interesting names and public read permission later I had a few hundred K to play with. You would be surprised how long ppl would wait back then for a graphical splashscreen with a 'loading...' prompt. ;-) Hehe. The Beebs also had some neat tricks you could do over the network to unsuspecting (l)users, but thats another story. -Original Message- From: Joel Rees [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 17:47 To: Struts Users Mailing List Subject: [FRIDAY] Persistence I usually miss out on these Friday threads. (Different time zone. It's Saturday for me when you guys have all your fun.) This time I missed it by a whole week because we were all on vacation, dancing with the dead, so to speak. But I just have to contribute to this one. My high school industrial-ed class built an Altair 8800 and used a borrowed teletype/papertape. I still have a 6802 prototyping kit. (Okay, it's a couple thousand miles away.) I hand-wired 32K dRAMs onto it. Got a TRS-80 Color Computer, with effectively the same video controller, several years later. Used a UNIVAC 1100 at college, can't remember the model number. Had a 36 bit word. We all celebrated when the college got a 100M hard disk and started giving the students accounts with a 4k-word workspace. If we wanted backup, they had an on-line card punch. And we all assumed that 20 years was plenty of time to prepare for y2k. Apparrently some VERY persistent memories though ;-} Back then, I could not _imagine_ what I'd do with 64k of RAM. But I didn't think I'd want anyone _else's_ code running in it ... - Original Message - From: Shozi [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, August 12, 2002 7:18 AM Subject: Re: Struts Persistence We are talking about struts and persistence? But I am unable to find this word in last five mails except some personal good memories. Shozi -- Joel Rees [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Welcome file and struts
I don´t want get impatient ;-), but usually there is a lot more action here! It´s just my luck that when I answer a question, everyone seems to be on vacation :-) ! Has anyone else experienced this problem? Is there a workaround? Thanks, Michael - Original Message - From: Michael Delamere [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 16, 2002 10:32 AM Subject: Welcome file and struts Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load my index.do on startup. Any help would be really appreciated. Thanks, Michael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: Welcome file and struts
That topic was discussed here http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34650.html Darek Friday, August 16, 2002, 12:30:00 PM, you wrote: MD I don´t want get impatient ;-), but usually there is a lot more action here! MD It´s just my luck that when I answer a question, everyone seems to be on MD vacation :-) ! MD Has anyone else experienced this problem? Is there a workaround? MD Thanks, MD Michael MD - Original Message - MD From: Michael Delamere [EMAIL PROTECTED] MD To: Struts Users Mailing List [EMAIL PROTECTED] MD Sent: Friday, August 16, 2002 10:32 AM MD Subject: Welcome file and struts Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load MD my index.do on startup. Any help would be really appreciated. Thanks, Michael -- Best regards, Dariusz Wojtas mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Welcome file and struts
Oops. Sorry guess I missed the original post! Yeh. I couldnt get this one to work either. Darn nuisance. I ended up creating a very simple .html file that used a meta refresh to redirect to the required action thusly: html head meta http-equiv=refresh content=0;URL='preLogin.do'/ /head body nbsp; /body /html -Original Message- From: Michael Delamere [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 18:30 To: Struts Users Mailing List Subject: Re: Welcome file and struts I don´t want get impatient ;-), but usually there is a lot more action here! It´s just my luck that when I answer a question, everyone seems to be on vacation :-) ! Has anyone else experienced this problem? Is there a workaround? Thanks, Michael - Original Message - From: Michael Delamere [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 16, 2002 10:32 AM Subject: Welcome file and struts Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load my index.do on startup. Any help would be really appreciated. Thanks, Michael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Re[2]: Welcome file and struts
thanks! Nevertheless, it´s fairly quiet for a friday :-) ! Regards, Michael p.s. I found another solution which involved a META-Refresh, but I think the thread below has a better solution (if it works :-) ). - Original Message - From: Dariusz Wojtas [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 16, 2002 12:30 PM Subject: Re[2]: Welcome file and struts That topic was discussed here http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34650.html Darek Friday, August 16, 2002, 12:30:00 PM, you wrote: MD I don´t want get impatient ;-), but usually there is a lot more action here! MD It´s just my luck that when I answer a question, everyone seems to be on MD vacation :-) ! MD Has anyone else experienced this problem? Is there a workaround? MD Thanks, MD Michael MD - Original Message - MD From: Michael Delamere [EMAIL PROTECTED] MD To: Struts Users Mailing List [EMAIL PROTECTED] MD Sent: Friday, August 16, 2002 10:32 AM MD Subject: Welcome file and struts Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load MD my index.do on startup. Any help would be really appreciated. Thanks, Michael -- Best regards, Dariusz Wojtas mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Deprecated class or method used in Struts?
Hi all, It's my first time to use Struts. I have imported the version 1.0.2 source code into WSAD4.0.3 and find that there are many warnings (about 4xx) on deprecated method called or class used. Is it okay or I need to do anything to fix it? Thanks. Best Regards, Leslie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: I18N and locales
David Graham [EMAIL PROTECTED]: Cool, but how do I i18n the text so that I can put it in the request? Put an init-param element inside the servlet element of the web.xml file of the servlet, referring to the Struts Action servlet, that refers to a resource bundle. Eg. servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueMyResources/param-value /init-param This will refer to files named /WEB-INF/classes/MyResources.properties /WEB-INF/classes/MyResources_no.properties /WEB-INF/classes/MyResources_en_GB.properties The .properties files contains key/value pairs, where the keys are the keys given to bean:message and the values are what is shown. In the example above _no designates a file with Norwegian values, and _en_GB designates a file with UK English values. The file named MyResources.properties contain the default values. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Re[2]: Welcome file and struts
Ooo. The idea from Dennis Muhlestein seems better than my tactic. What a neat idea. Think I might switch to doing it this way. To quote his posting: Anyway, I added index.do to the list of files for apache to automatically pull up and then just made a dummy file called index.do tomcat gets the request and it works just fine. -Original Message- From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 18:30 To: Struts Users Mailing List Subject: Re[2]: Welcome file and struts That topic was discussed here http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34650.html Darek Friday, August 16, 2002, 12:30:00 PM, you wrote: MD I don´t want get impatient ;-), but usually there is a lot more action here! MD It´s just my luck that when I answer a question, everyone seems to be on MD vacation :-) ! MD Has anyone else experienced this problem? Is there a workaround? MD Thanks, MD Michael MD - Original Message - MD From: Michael Delamere [EMAIL PROTECTED] MD To: Struts Users Mailing List [EMAIL PROTECTED] MD Sent: Friday, August 16, 2002 10:32 AM MD Subject: Welcome file and struts Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load MD my index.do on startup. Any help would be really appreciated. Thanks, Michael -- Best regards, Dariusz Wojtas mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
struts menu example problem
Hi, I'm having trouble with the struts-menu example, I keep getting the stack trace below. I'm using Struts 1.1b2. Also would I be correct in saying that the Struts-blank example is still broken? Thx /Colin stackTrace org.apache.jasper.JasperException: The menu repository could not be found. at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 46) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:484) root cause javax.servlet.ServletException: The menu repository could not be found. at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:492) at org.apache.jsp.index_jsp._jspService(index_jsp.java:67) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 02) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at
Multiple Option select in advance
Hi, Is any body told me that how can we select some options of mutiple select options in advance. Regards Aamir - Do You Yahoo!? HotJobs, a Yahoo! service - Search Thousands of New Jobs
RE: Re[2]: Welcome file and struts
Feels a bit weird having part of your deployment depend on a dummy file though. I went for the index.jsp idea myself. On Fri, 2002-08-16 at 11:40, Andrew Hill wrote: Ooo. The idea from Dennis Muhlestein seems better than my tactic. What a neat idea. Think I might switch to doing it this way. To quote his posting: Anyway, I added index.do to the list of files for apache to automatically pull up and then just made a dummy file called index.do tomcat gets the request and it works just fine. -Original Message- From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 18:30 To: Struts Users Mailing List Subject: Re[2]: Welcome file and struts That topic was discussed here http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34650.html Darek Friday, August 16, 2002, 12:30:00 PM, you wrote: MD I don´t want get impatient ;-), but usually there is a lot more action here! MD It´s just my luck that when I answer a question, everyone seems to be on MD vacation :-) ! MD Has anyone else experienced this problem? Is there a workaround? MD Thanks, MD Michael MD - Original Message - MD From: Michael Delamere [EMAIL PROTECTED] MD To: Struts Users Mailing List [EMAIL PROTECTED] MD Sent: Friday, August 16, 2002 10:32 AM MD Subject: Welcome file and struts Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load MD my index.do on startup. Any help would be really appreciated. Thanks, Michael -- Best regards, Dariusz Wojtas mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Regards --- Cliff Rowley| [EMAIL PROTECTED] Software Engineer | www.doctype.co.uk +44 (0) 1206 514263 | www.cliffrowley.com --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Re[2]: Welcome file and struts
My application isnt using any JSP's and I need to go through an action before I can get to any views - even the login page. (Id prefer a dummy file to a meta refresh index.html page as I feel it would load a wee bit quicker). -Original Message- From: Cliff Rowley [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 19:03 To: [EMAIL PROTECTED] Subject: RE: Re[2]: Welcome file and struts Feels a bit weird having part of your deployment depend on a dummy file though. I went for the index.jsp idea myself. On Fri, 2002-08-16 at 11:40, Andrew Hill wrote: Ooo. The idea from Dennis Muhlestein seems better than my tactic. What a neat idea. Think I might switch to doing it this way. To quote his posting: Anyway, I added index.do to the list of files for apache to automatically pull up and then just made a dummy file called index.do tomcat gets the request and it works just fine. -Original Message- From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 18:30 To: Struts Users Mailing List Subject: Re[2]: Welcome file and struts That topic was discussed here http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34650.html Darek Friday, August 16, 2002, 12:30:00 PM, you wrote: MD I don´t want get impatient ;-), but usually there is a lot more action here! MD It´s just my luck that when I answer a question, everyone seems to be on MD vacation :-) ! MD Has anyone else experienced this problem? Is there a workaround? MD Thanks, MD Michael MD - Original Message - MD From: Michael Delamere [EMAIL PROTECTED] MD To: Struts Users Mailing List [EMAIL PROTECTED] MD Sent: Friday, August 16, 2002 10:32 AM MD Subject: Welcome file and struts Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load MD my index.do on startup. Any help would be really appreciated. Thanks, Michael -- Best regards, Dariusz Wojtas mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Regards --- Cliff Rowley| [EMAIL PROTECTED] Software Engineer | www.doctype.co.uk +44 (0) 1206 514263 | www.cliffrowley.com --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
struts newbie
hi, i'm new to struts. just want to ask where i can find detailed references to the struts tag libraries as well as examples on their usage. :) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [ANN] Chapter 18 of the O'Reilly Struts book now available
Chuck Cavaness [EMAIL PROTECTED]: I think it's taking them a long time to figure out which animal they want on the cover :) Struts is Norwegian for ostrich, so a big flightless bird is my suggestion. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Re[2]: Welcome file and struts
I just found this solution, which seems quite good: quote: Create a index.jsp and place a logic:forward/ tag to forward to index.do. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34667.html Regards, Michael - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 16, 2002 12:40 PM Subject: RE: Re[2]: Welcome file and struts Ooo. The idea from Dennis Muhlestein seems better than my tactic. What a neat idea. Think I might switch to doing it this way. To quote his posting: Anyway, I added index.do to the list of files for apache to automatically pull up and then just made a dummy file called index.do tomcat gets the request and it works just fine. -Original Message- From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 18:30 To: Struts Users Mailing List Subject: Re[2]: Welcome file and struts That topic was discussed here http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34650.html Darek Friday, August 16, 2002, 12:30:00 PM, you wrote: MD I don´t want get impatient ;-), but usually there is a lot more action here! MD It´s just my luck that when I answer a question, everyone seems to be on MD vacation :-) ! MD Has anyone else experienced this problem? Is there a workaround? MD Thanks, MD Michael MD - Original Message - MD From: Michael Delamere [EMAIL PROTECTED] MD To: Struts Users Mailing List [EMAIL PROTECTED] MD Sent: Friday, August 16, 2002 10:32 AM MD Subject: Welcome file and struts Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load MD my index.do on startup. Any help would be really appreciated. Thanks, Michael -- Best regards, Dariusz Wojtas mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
referencing bean properties in jsps
Hi folks! I got problem, I don't really know if it's due to misunderstanding jee or anything else. I got a data-storage-bean, where I've put some data by adding little java beans to a vector and presenting this vector to that bean. Now I want to retrieve that vector from that bean to fill some table rows in a jsp. How do get that? I try to use the same bean for storing some form data on the same jsp. Here some code I use: (I use strutsh as prefix for struts-html.tld) table border=0 strutsh:form action=/rawmat_enter.do method=POST tr th align=centerID/th th align=centerName/th th align=centerShort/th /tr HERE I want to put some data rows filled up with data stored in the raw-Vector. It's the same form-bean as used in this little code-package. % Vector raw = RawMat_Tab.getRawVector(); -- the getter-method of my bean for that vector % tr tdstrutsh:text property=rawname size=16 maxlength=18//td tdstrutsh:text property=rawshort size=4 maxlength=4//td tdstrutsh:submit //td /tr /strutsh:form /table Any Ideas? Or is it not jee-compliant to use a vector to store data in a bean? Any help or comment would be fine. Thx! Fabian -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Sorry - test message PLEASE DELETE
test message -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to specify RUNTIME EXPRESSION
hello html:text tag has styleId attribute which is Rt Expr. I havent figured out how to generate html:text tags (in a loop) with different styleId attribs. Maris styleId Identifier to be assigned to this HTML element. [RT Expr] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Re[2]: Welcome file and struts
Michael, I've done this and it works extremely well. You can also put the index.jsp in your web.xml welcome file list, and then just access the webapp like this - http://yourcompany.com/webapp Jerry Jalenak -Original Message- From: Michael Delamere [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 6:52 AM To: Struts Users Mailing List Subject: Re: Re[2]: Welcome file and struts I just found this solution, which seems quite good: quote: Create a index.jsp and place a logic:forward/ tag to forward to index.do. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg 34667.html Regards, Michael - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 16, 2002 12:40 PM Subject: RE: Re[2]: Welcome file and struts Ooo. The idea from Dennis Muhlestein seems better than my tactic. What a neat idea. Think I might switch to doing it this way. To quote his posting: Anyway, I added index.do to the list of files for apache to automatically pull up and then just made a dummy file called index.do tomcat gets the request and it works just fine. -Original Message- From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 18:30 To: Struts Users Mailing List Subject: Re[2]: Welcome file and struts That topic was discussed here http://www.mail-archive.com/struts-user@jakarta.apache.org/msg 34650.html Darek Friday, August 16, 2002, 12:30:00 PM, you wrote: MD I don´t want get impatient ;-), but usually there is a lot more action here! MD It´s just my luck that when I answer a question, everyone seems to be on MD vacation :-) ! MD Has anyone else experienced this problem? Is there a workaround? MD Thanks, MD Michael MD - Original Message - MD From: Michael Delamere [EMAIL PROTECTED] MD To: Struts Users Mailing List [EMAIL PROTECTED] MD Sent: Friday, August 16, 2002 10:32 AM MD Subject: Welcome file and struts Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load MD my index.do on startup. Any help would be really appreciated. Thanks, Michael -- Best regards, Dariusz Wojtas mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at (800)388-4675. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
data Structure to use for a list of data
Hello, Very common master-detail pattern: User enters a query and gets a multi-column master list of items matching that query. Then the user selects an item in the list to get to a detail form on that item. The query/JDBC and detail form I can handle, but what Java data structure (created in the action object) should I use to hold the master list items: assume about 4-5 column items, one of them supplying data for the hyperlink: link id=1 Last Name, First Name Address Email etc. link id=2 Last Name, First Name Address Email etc. link id=3 Last Name, First Name Address Email etc. Struts-related issues: (1) I expect to use the Iterator tag for multi-page returns, I'm unsure if that would affect the data structure chosen. (2) I'm also interested in ease of display on the subsequent master list page, so I would like a data structure that can be easily manipulated by the Struts tag libraries in rendering the page. Thanks, Glen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
html:text in logic:iterate ?
Hello, I need text boxes in one column of a table. The number of rows may vary. Hope you can point me to a resource / sample code. Thanks, Rejin.
RE: Plug in problem(?)
i'm getting the same problem, if some one know the good way of doing plugin in the beta 2 of struts it would be nice to tell us about it. -Original Message- From: K.Viswanathan [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 2:27 AM To: Struts Users Mailing List Subject: Plug in problem(?) Hi I am getting the following exception when I run my application Root cause.. java.lang.AbstractMethodError at org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet. java:991) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:458) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 6) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) .. It was working fine with beta 1 After copying all jar files and related stuff of beta2 ( of Aug 12th , I am not using nightly build), I get this error. Any clues? Thanks in advance Vishy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: html:text in logic:iterate ?
Here you got sample code: Zurnals4Buvniecibas is form class, it has property saraksts which contains a vector with objects of Zurnals4CommonView. Zurnals4CommonView has properties jaiesniedzAtskaite, jaiesniedzDatums and so on ... Maris logic:iterate id=element name=Zurnals4Buvniecibas property=saraksts type=lv.datapro.lad.pri.utils.Zurnals4CommonView tr td class=small3 bean:write name=element property=jaiesniedzAtskaite/ html:hidden name=element property=jaiesniedzAtskaite/ /td td class=small3 bean:write name=element property=jaiesniedzDatums/ html:hidden name=element property=jaiesniedzDatums/ /td td class=small3 html:text name=element property=iesniegsanaDatums size=10 maxlength=10 styleClass=input/ /td td class=small3 html:select name=element property=iesniegsanaNavIesniegta styleClass=input html:options labelProperty=iesniegtaLabels property=iesniegtaId/ /html:select /td td class=small3 html:text name=element property=uzraugs styleClass=input/ /td td class=small3 html:text name=element property=javeicLidzDatums size=10 maxlength=10 styleClass=input/ /td td class=small3 html:text name=element property=atdotaUzraugam size=10 maxlength=10 styleClass=input/ /td td class=small3 html:text name=element property=kontroleDatums size=10 maxlength=10 styleClass=input/ /td td class=small3 html:select name=element property=kontroleSledziens styleClass=input html:options labelProperty=lemumsLabels property=lemumsId/ /html:select /td td class=small3 html:text name=element property=atkartotaKontroleDatums size=10 maxlength=10 styleClass=input/ /td td class=small3 html:select name=element property=atkartotaKontroleSledziens styleClass=input html:options labelProperty=lemumsLabels property=lemumsId/ /html:select /td td class=small3 html:text name=element property=protokolaNumurs size=8 maxlength=8 styleClass=input/ /td td class=small3 html:text name=element property=protokolaDatums size=10 maxlength=10 styleClass=input/ /td td class=small3 html:select name=element property=protokolaLemums styleClass=input html:options labelProperty=lemumsLabels property=lemumsId/ /html:select /td /tr /logic:iterate -Original Message- From: Rejin NS [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 3:30 PM To: [EMAIL PROTECTED] Subject: html:text in logic:iterate ? Hello, I need text boxes in one column of a table. The number of rows may vary. Hope you can point me to a resource / sample code. Thanks, Rejin. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: data Structure to use for a list of data
ArrayList of Java Beans However, I have tested sucessfully ArrayList of dynabeans (from Commons/BeanUtils package). By using dynabeans you would not need to create specific JavaBean classes for each type of data row. Adolfo. From: Mazza, Glen R, PERSCOM [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: data Structure to use for a list of data Date: Fri, 16 Aug 2002 08:23:48 -0400 Hello, Very common master-detail pattern: User enters a query and gets a multi-column master list of items matching that query. Then the user selects an item in the list to get to a detail form on that item. The query/JDBC and detail form I can handle, but what Java data structure (created in the action object) should I use to hold the master list items: assume about 4-5 column items, one of them supplying data for the hyperlink: link id=1 Last Name, First Name Address Email etc. link id=2 Last Name, First Name Address Email etc. link id=3 Last Name, First Name Address Email etc. Struts-related issues: (1) I expect to use the Iterator tag for multi-page returns, I'm unsure if that would affect the data structure chosen. (2) I'm also interested in ease of display on the subsequent master list page, so I would like a data structure that can be easily manipulated by the Struts tag libraries in rendering the page. Thanks, Glen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
EJB
Hi All, I know its Friday, but I'm leaving 'on a jet plane' to Newfoundland and I have a few questions. I'm creating an application that uses Entity EJB's ( and Stateless Session Beans as an service layer ) and want to know how I can convey the data in those EJB's onto a jsp. Do I REALLY need to create a corresponding ActionForm that duplicates the data in the EJB? I don't want pass the EJB's to the JSP layer ( BIG NO NO ). Can I make use of the DynaActionForms? -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 8:58 AM To: [EMAIL PROTECTED] Subject: Re: data Structure to use for a list of data ArrayList of Java Beans However, I have tested sucessfully ArrayList of dynabeans (from Commons/BeanUtils package). By using dynabeans you would not need to create specific JavaBean classes for each type of data row. Adolfo. From: Mazza, Glen R, PERSCOM [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: data Structure to use for a list of data Date: Fri, 16 Aug 2002 08:23:48 -0400 Hello, Very common master-detail pattern: User enters a query and gets a multi-column master list of items matching that query. Then the user selects an item in the list to get to a detail form on that item. The query/JDBC and detail form I can handle, but what Java data structure (created in the action object) should I use to hold the master list items: assume about 4-5 column items, one of them supplying data for the hyperlink: link id=1 Last Name, First Name Address Email etc. link id=2 Last Name, First Name Address Email etc. link id=3 Last Name, First Name Address Email etc. Struts-related issues: (1) I expect to use the Iterator tag for multi-page returns, I'm unsure if that would affect the data structure chosen. (2) I'm also interested in ease of display on the subsequent master list page, so I would like a data structure that can be easily manipulated by the Struts tag libraries in rendering the page. Thanks, Glen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: EJB
You could try to look at the xDoclet project from sourceforge.net(http://xdoclet.sourceforge.net/). Others will be in a better position to evaluate it, as I've only been playing with it for a few days now and found it really cool. When developing EJB's you only need to create the Bean file. inside that you place some java doc comments that describe finder methods, mappings to database tables etc. Then an ant script runs against this building the interface classes. At the same time as doing this it also builds Data Transfer Objects (Value Object) for your Entity Beans and some Util classes which act as Service Locators, all rocking stuff. There is some support for Struts in there too, but so far I haven't read up on this. Might be worth looking into? Have a good weekend IV from:Darren Hill [EMAIL PROTECTED] date:Fri, 16 Aug 2002 14:03:02 to: [EMAIL PROTECTED] subject: Re: EJB Hi All, I know its Friday, but I'm leaving 'on a jet plane' to Newfoundland and I have a few questions. I'm creating an application that uses Entity EJB's ( and Stateless Session Beans as an service layer ) and want to know how I can convey the data in those EJB's onto a jsp. Do I REALLY need to create a corresponding ActionForm that duplicates the data in the EJB? I don't want pass the EJB's to the JSP layer ( BIG NO NO ). Can I make use of the DynaActionForms? -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 8:58 AM To: [EMAIL PROTECTED] Subject: Re: data Structure to use for a list of data ArrayList of Java Beans However, I have tested sucessfully ArrayList of dynabeans (from Commons/BeanUtils package). By using dynabeans you would not need to create specific JavaBean classes for each type of data row. Adolfo. From: Mazza, Glen R, PERSCOM [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: data Structure to use for a list of data Date: Fri, 16 Aug 2002 08:23:48 -0400 Hello, Very common master-detail pattern: User enters a query and gets a multi-column master list of items matching that query. Then the user selects an item in the list to get to a detail form on that item. The query/JDBC and detail form I can handle, but what Java data structure (created in the action object) should I use to hold the master list items: assume about 4-5 column items, one of them supplying data for the hyperlink: link id=1 Last Name, First Name Address Email etc. link id=2 Last Name, First Name Address Email etc. link id=3 Last Name, First Name Address Email etc. Struts-related issues: (1) I expect to use the Iterator tag for multi-page returns, I'm unsure if that would affect the data structure chosen. (2) I'm also interested in ease of display on the subsequent master list page, so I would like a data structure that can be easily manipulated by the Struts tag libraries in rendering the page. Thanks, Glen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: struts newbie
Have you looked at the sample applications that ship with Struts? SS -Original Message- From: Lito Ang [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 5:29 AM To: Struts Users Mailing List Subject: struts newbie hi, i'm new to struts. just want to ask where i can find detailed references to the struts tag libraries as well as examples on their usage. :) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
how can i set up the value of the html:text and html:textarea?
hello i want to setup the value of html:text and html:textarea,but both of the following two expression don't work: html:text property=name size=20 value=bean:write name=msgBoard property=name scope=session// html:text property=name size=20 value=bean:write name=msgBoard property=name scope=session// who can help me? thank you very much
Passing Struts parameters to JavaScript functions.
Hi there ... :-) I was hoping someone could help me with a validation problem. I'm trying to build a simple page that deletes an item from a database, when the user clicks on the delete link. Before going on to delete the item though, I need to ask the user if she's sure that she wants to delete the item. I thought the easiest way to do this, was a JavaScript call that would display a dialog: html:link onclick=askDelete(bean:write name=myCollectionElement property=id/)delete/html:link I'm trying to pass the bean value to the askDelete function, but the syntax is shafted. How do I go about doing this? My next problem would be calling the deleteItem.do method from Javascript, whilst making sure that the URL-rewriting stuff stays intact. Is there in fact, a better way to do this? I've heard of something called the Validation Framework, which works clientside. Are there any tutorials on using it? __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: referencing bean properties in jsps
Thanks Adolfo, this helped a lot. I use ArrayLists now, but in fact most important was that help on accessing a list of beans stored in any type. Fabian -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 1:58 PM To: [EMAIL PROTECTED] Subject: Re: referencing bean properties in jsps Community prefers ArrayList rather than Vectors since ArrayList methods are not synchronized and Vector methods do. Depends on your necessities but mostly ArrayList are enough for read only data. IF you have an ArrayList of beans in your action, you can send it to your JSP by: request.setAttribute(DataList, your_array_list); or request.getSession(false).setAttribute(DataList, your_array_list); and after do the mapping in the Action by: return mapping.findForward(your_JSP); In the JSP you can sweep your collection with a logic:iterate tag as: logic:iterate name=DataList id=RowData bean:write name=RowData property=a_property_of_your_bean/ /logic:iterate With bean:write you get the value of properties for each bean, which is defined as a local variable inside the logic:iterate (each bean in the collection is called RowData in this example). Hope it helps, Adolfo -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: how can i set up the value of the html:text and html:textarea?
Hey, Is msgBoard the form bean associated with that form? If so and if you're only trying to display the current data when the user hits the form, you don't need to specify the value. Struts will automatically pre-populate the form for you. Is this what you're trying to do? - Keith http://www.buffalo.edu/~kkamholz -Original Message- From: congzhebin [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:06 AM To: [EMAIL PROTECTED] Subject: how can i set up the value of the html:text and html:textarea? hello i want to setup the value of html:text and html:textarea,but both of the following two expression don't work: html:text property=name size=20 value=bean:write name=msgBoard property=name scope=session// html:text property=name size=20 value=bean:write name=msgBoard property=name scope=session// who can help me? thank you very much -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
localization with multiple charsets
Hi, I'm developing a multi-lingual database driven web application with struts. I've selected the Unicode character set (UNICODE_FSS) for my database (Firebird), java manages strings in Unicode. I've read the excellent chapter on Internationalization and Struts but some questions remain concerning the view components. For the Hebrew language there are several charsets available: UTF-8 (unfortunately not all browser versions accept this charset) Hebrew Windows Hebrew ISO Visual Hebrew ISO Logical Etc. Suppose I store my Hebrew resource text with the charset ISO-8859-8 and I set all my content type for users with locale he to text/html; charset=ISO-8859-8. What happens when the user changes his browser charset parameter to another Hebrew charset and sends text input back to the server? Any advice for planning my internationalization with Struts is welcome! Your help will be appreciated. Fred have to develop a multi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [ANN] Chapter 18 of the O'Reilly Struts book now available
Steinar Bang [EMAIL PROTECTED]: Chuck Cavaness [EMAIL PROTECTED]: I think it's taking them a long time to figure out which animal they want on the cover :) Struts is Norwegian for ostrich, so a big flightless bird is my suggestion. Much to late appearently. They have chosen a horse of some sort. Interestingly the posted amazon link listed four other Struts books that I hadn't heard about. Probably because none of them have been published yet...:-) All 5 books will be published from September through November of this year. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how can i set up the value of the html:text and html:textarea?
2002. augusztus 16. 15:05 d¨¢tummal congzhebin ezt ¨ªrtad: hello i want to setup the value of html:text and html:textarea,but both of the following two expression don't work: html:text property=name size=20 value=bean:write name=msgBoard property=name scope=session// html:text property=name size=20 value=bean:write name=msgBoard property=name scope=session// You should populate your FormBean in the Action that takes you to this page, and then use only the property attribute and omit the value attribute. Hth, Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [ANN] Chapter 18 of the O'Reilly Struts book now available
I'd love to read Chapter 18 ... anyone have a copy? -Original Message- From: Steinar Bang [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 9:48 AM To: [EMAIL PROTECTED] Subject: Re: [ANN] Chapter 18 of the O'Reilly Struts book now available Steinar Bang [EMAIL PROTECTED]: Chuck Cavaness [EMAIL PROTECTED]: I think it's taking them a long time to figure out which animal they want on the cover :) Struts is Norwegian for ostrich, so a big flightless bird is my suggestion. Much to late appearently. They have chosen a horse of some sort. Interestingly the posted amazon link listed four other Struts books that I hadn't heard about. Probably because none of them have been published yet...:-) All 5 books will be published from September through November of this year. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Case insensitive path attributes of action?
Platform: Intel PIII, RedHat 7.2, BlackDown JDK 1.3.1, apache 1.3.20, tomcat 3.3, Struts 1.0 Is it possible to make the Struts ActionServlet class treat the path attributes of action elements in the struts-config.xml file, as case insensitive? Thanx! - Steinar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can an Actionclass ignore a request?
I'm currently experiencing a problem where a user submits a form multiple times. I've read some posts on the forum, and they recommend making the actionclass ignore multiple submits. I understand the logic to support this w/ a unique token, but how can an actionclass ignore multiple submits? Doesn't it need to return a response(actionforward) to the client? I know I can redirect the user to an error page, and inform them of the error. But that's not very user friendly. Thank you for your help. _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can an Actionclass ignore a request?
I have a different way of handling this situation which probably has a few bugs but at the least may amuse you ;-) When the user clicks submit, some javascript sets the visibility of the form to hidden. They cant reclick the button as it isnt there. (nb: as a general solution this is not so great as it relies on javascript being enabled, and a version of browser that supports the appropriate css property...) -Original Message- From: Brandon Lee [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 22:12 To: [EMAIL PROTECTED] Subject: Can an Actionclass ignore a request? I'm currently experiencing a problem where a user submits a form multiple times. I've read some posts on the forum, and they recommend making the actionclass ignore multiple submits. I understand the logic to support this w/ a unique token, but how can an actionclass ignore multiple submits? Doesn't it need to return a response(actionforward) to the client? I know I can redirect the user to an error page, and inform them of the error. But that's not very user friendly. Thank you for your help. _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Session-scope JavaBean being removed
Hi All, Got a strange one that I can't figure out. We've developed an internal webapp that uses the MemoryDatabase from the struts-example that comes with the distribution. The implementation works great, providing a basic user ID / password table in XML, etc. Once the logon process completes, we store a javabean with the user ID in the session so we can grab it later when we do our database updates (store the user ID as the last person to update, etc.) Everything seems to be fine, then BLAM! - I get a NullPointerException when I try to access the bean. I've checked the session timeout and set it to such a high value that the session should never time out. I've also search the archives, the 'net, and have e-mailed Craig directly (thanks for response, but it still happens :-). I've found nothing that would tell me why this bean is being removed. The only time it should be is during logoff processing. Help! Anyone have any ideas? Thanks in advance - and TGIF! Jerry Jalenak Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at (800)388-4675. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can an Actionclass ignore a request?
...which probably has a few bugs in certain browsers (such as NS4.x - though I havent tested) -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 22:20 To: Struts Users Mailing List Subject: RE: Can an Actionclass ignore a request? I have a different way of handling this situation which probably has a few bugs but at the least may amuse you ;-) When the user clicks submit, some javascript sets the visibility of the form to hidden. They cant reclick the button as it isnt there. (nb: as a general solution this is not so great as it relies on javascript being enabled, and a version of browser that supports the appropriate css property...) -Original Message- From: Brandon Lee [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 22:12 To: [EMAIL PROTECTED] Subject: Can an Actionclass ignore a request? I'm currently experiencing a problem where a user submits a form multiple times. I've read some posts on the forum, and they recommend making the actionclass ignore multiple submits. I understand the logic to support this w/ a unique token, but how can an actionclass ignore multiple submits? Doesn't it need to return a response(actionforward) to the client? I know I can redirect the user to an error page, and inform them of the error. But that's not very user friendly. Thank you for your help. _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: EJB
http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg62678.html See above thread. Consider making it easier to replace the EJBs, should you need to. v. Darren Hill wrote: Hi All, I know its Friday, but I'm leaving 'on a jet plane' to Newfoundland and I have a few questions. I'm creating an application that uses Entity EJB's ( and Stateless Session Beans as an service layer ) and want to know how I can convey the data in those EJB's onto a jsp. Do I REALLY need to create a corresponding ActionForm that duplicates the data in the EJB? I don't want pass the EJB's to the JSP layer ( BIG NO NO ). Can I make use of the DynaActionForms? -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 8:58 AM To: [EMAIL PROTECTED] Subject: Re: data Structure to use for a list of data ArrayList of Java Beans However, I have tested sucessfully ArrayList of dynabeans (from Commons/BeanUtils package). By using dynabeans you would not need to create specific JavaBean classes for each type of data row. Adolfo. From: Mazza, Glen R, PERSCOM [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: data Structure to use for a list of data Date: Fri, 16 Aug 2002 08:23:48 -0400 Hello, Very common master-detail pattern: User enters a query and gets a multi-column master list of items matching that query. Then the user selects an item in the list to get to a detail form on that item. The query/JDBC and detail form I can handle, but what Java data structure (created in the action object) should I use to hold the master list items: assume about 4-5 column items, one of them supplying data for the hyperlink: link id=1 Last Name, First Name Address Email etc. link id=2 Last Name, First Name Address Email etc. link id=3 Last Name, First Name Address Email etc. Struts-related issues: (1) I expect to use the Iterator tag for multi-page returns, I'm unsure if that would affect the data structure chosen. (2) I'm also interested in ease of display on the subsequent master list page, so I would like a data structure that can be easily manipulated by the Struts tag libraries in rendering the page. Thanks, Glen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: struts newbie
Hello and welcome! HTML Tags -- http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html Bean Tags -- http://jakarta.apache.org/struts/doc-1.0.2/struts-bean.html Logic Tags -- http://jakarta.apache.org/struts/doc-1.0.2/struts-logic.html Template Tags -- http://jakarta.apache.org/struts/doc-1.0.2/struts-template.html Tim Lito Ang lang@emotionsy stems.com 08/16/2002 04:28 AMTo: Struts Users Mailing List [EMAIL PROTECTED] Please respond cc: to Struts Users Mailing List Subject: struts newbie Caterpillar: Confidential Green Retain Until: 09/15/2002 Retention Category: G90 - Information and Reports hi, i'm new to struts. just want to ask where i can find detailed references to the struts tag libraries as well as examples on their usage. :) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: EJB
Is this the same Cekvenich who's book I just finished reading? -Original Message- From: V. Cekvenich [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 10:23 AM To: Struts Users Mailing List Subject: Re: EJB http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg62678.html See above thread. Consider making it easier to replace the EJBs, should you need to. v. Darren Hill wrote: Hi All, I know its Friday, but I'm leaving 'on a jet plane' to Newfoundland and I have a few questions. I'm creating an application that uses Entity EJB's ( and Stateless Session Beans as an service layer ) and want to know how I can convey the data in those EJB's onto a jsp. Do I REALLY need to create a corresponding ActionForm that duplicates the data in the EJB? I don't want pass the EJB's to the JSP layer ( BIG NO NO ). Can I make use of the DynaActionForms? -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 8:58 AM To: [EMAIL PROTECTED] Subject: Re: data Structure to use for a list of data ArrayList of Java Beans However, I have tested sucessfully ArrayList of dynabeans (from Commons/BeanUtils package). By using dynabeans you would not need to create specific JavaBean classes for each type of data row. Adolfo. From: Mazza, Glen R, PERSCOM [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: data Structure to use for a list of data Date: Fri, 16 Aug 2002 08:23:48 -0400 Hello, Very common master-detail pattern: User enters a query and gets a multi-column master list of items matching that query. Then the user selects an item in the list to get to a detail form on that item. The query/JDBC and detail form I can handle, but what Java data structure (created in the action object) should I use to hold the master list items: assume about 4-5 column items, one of them supplying data for the hyperlink: link id=1 Last Name, First Name Address Email etc. link id=2 Last Name, First Name Address Email etc. link id=3 Last Name, First Name Address Email etc. Struts-related issues: (1) I expect to use the Iterator tag for multi-page returns, I'm unsure if that would affect the data structure chosen. (2) I'm also interested in ease of display on the subsequent master list page, so I would like a data structure that can be easily manipulated by the Struts tag libraries in rendering the page. Thanks, Glen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection pool question
Robert, How would I define the DB connection in struts-config.xml so it's accessible through the syntax you provided bellow ? I'm sorry but this is very new to me, so some poor level questions might follow. Jf Robert Taylor wrote: Standardization: All servlet containers that support the Servlet2.3 spec must provide a way to look up data sources via JNDI. All or most application servers support general object location via JNDI. Simplicity: To look up a data source, all you have is the following code. Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup( jdbc/data source name ); Flexibility: You can define your datasources in some file external to your code, such as a properties or xml file. This allows you to make changes without affecting your code. Decoupling: By accessing your datasources via JNDI lookup, your business objects don't depend on the web tier to provide access via the application, session, or request scope. This makes them reusable in other applications. Those are four reasons I can think of. There are probably more. Craig, has discussed the best practices way of using data sources in Struts. You may want to browser the archives. HTH, robert -Original Message- From: Howard Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 7:33 AM To: 'Struts Users Mailing List' Subject: RE: Connection pool question Thanks, I don't know much about JNDI (apart from in general terms what it is); why would doing it this way be a good thing? Howard -Original Message- From:Robert Taylor [mailto:[EMAIL PROTECTED]] Sent:15 August 2002 12:10 To: Struts Users Mailing List Subject: RE: Connection pool question One solution might be to define several datasources in your application/servlet container where each datasource corresponds to its respective database. Then use JNDI to access the datasources from your application. robert -Original Message- From: Howard Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 6:47 AM To: '[EMAIL PROTECTED]' Subject:Connection pool question Hi, Newbie, JDBC connection pool question: My application uses a central control database. This is ok, and I can see how to use a connection pool for my application to access this. BUT... The application allows a user to recover data from a range of additional databases. That is the central database verified logins etc and then lists a number of databases for the user to connect to. I am very unsure how to handle this sub -connection. I have a number of thoughts... all bad: 1. Set up connection pools to ALL possible databases (there are less than 10), at the start in the application scope. 2. Set up a dedicated connection in the session scope. 3. Set up a dedicated connection in the request scope (cgi style). I don't like any of these answers. Anybody have experience of this sort of dynamic database connection or have any thoughts. Regards, File: ATT00047.txtFile: ATT203342.txt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can an Actionclass ignore a request?
This problem can't be solved w/ a client side solution, because of all the variables involved. For example, I can write javascript to disable the submit button (for IE NS4.7), but a user can hit the browser stop button and be trapped on the page. There's no way to capture the stop button event to enable the submit button again. From: Andrew Hill [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Can an Actionclass ignore a request? Date: Fri, 16 Aug 2002 22:24:07 +0800 ...which probably has a few bugs in certain browsers (such as NS4.x - though I havent tested) -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 22:20 To: Struts Users Mailing List Subject: RE: Can an Actionclass ignore a request? I have a different way of handling this situation which probably has a few bugs but at the least may amuse you ;-) When the user clicks submit, some javascript sets the visibility of the form to hidden. They cant reclick the button as it isnt there. (nb: as a general solution this is not so great as it relies on javascript being enabled, and a version of browser that supports the appropriate css property...) -Original Message- From: Brandon Lee [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 22:12 To: [EMAIL PROTECTED] Subject: Can an Actionclass ignore a request? I'm currently experiencing a problem where a user submits a form multiple times. I've read some posts on the forum, and they recommend making the actionclass ignore multiple submits. I understand the logic to support this w/ a unique token, but how can an actionclass ignore multiple submits? Doesn't it need to return a response(actionforward) to the client? I know I can redirect the user to an error page, and inform them of the error. But that's not very user friendly. Thank you for your help. _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Something ate my submit request parameter
I just tried to upgrade from 1.1b1 to 1.1b2. In my jsp page, I have a nested form that includes multiple submit buttons: html:submit value=Back/ html:submit value=Next/ html:submit value=Finish/ With b1, I used to get a request parameter named submit. With b2, I don't. My app kinda depends on that behavior. Is there any way I can get it back, please? Jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how can i set up the value of the html:text and html:textarea?
Here is an example that shows another trick I got from some folks on this list. Define a Java variable and insert it in place of the Struts tag. Remember tags are interpreted at compile time and replaced with Java code. Therefore you can't nest tags from any taglib. You have to resort to pure JSP for nesting purposes. bean:define id=thisValue name=decl type=java.lang.String / html:text property=declarations value=%= thisValue% size=50/ bob - Original Message - From: Gemes Tibor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 16, 2002 8:51 AM Subject: Re: how can i set up the value of the html:text and html:textarea? 2002. augusztus 16. 15:05 d¨¢tummal congzhebin ezt ¨ªrtad: hello i want to setup the value of html:text and html:textarea,but both of the following two expression don't work: html:text property=name size=20 value=bean:write name=msgBoard property=name scope=session// html:text property=name size=20 value=bean:write name=msgBoard property=name scope=session// You should populate your FormBean in the Action that takes you to this page, and then use only the property attribute and omit the value attribute. Hth, Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Can an Actionclass ignore a request?
Rather than play games to try work around browser issues etc. isn't it best to be honest with your user and let them know what is actually happening. Tell the user not to hit the submit button multiple times and if they do, give them a user friendly error message. If it is an application the user uses multiple times, it won't take many error message displays to get the hint. :-) bob - Original Message - From: Brandon Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, August 16, 2002 9:38 AM Subject: RE: Can an Actionclass ignore a request? This problem can't be solved w/ a client side solution, because of all the variables involved. For example, I can write javascript to disable the submit button (for IE NS4.7), but a user can hit the browser stop button and be trapped on the page. There's no way to capture the stop button event to enable the submit button again. From: Andrew Hill [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Can an Actionclass ignore a request? Date: Fri, 16 Aug 2002 22:24:07 +0800 ...which probably has a few bugs in certain browsers (such as NS4.x - though I havent tested) -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 22:20 To: Struts Users Mailing List Subject: RE: Can an Actionclass ignore a request? I have a different way of handling this situation which probably has a few bugs but at the least may amuse you ;-) When the user clicks submit, some javascript sets the visibility of the form to hidden. They cant reclick the button as it isnt there. (nb: as a general solution this is not so great as it relies on javascript being enabled, and a version of browser that supports the appropriate css property...) -Original Message- From: Brandon Lee [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 22:12 To: [EMAIL PROTECTED] Subject: Can an Actionclass ignore a request? I'm currently experiencing a problem where a user submits a form multiple times. I've read some posts on the forum, and they recommend making the actionclass ignore multiple submits. I understand the logic to support this w/ a unique token, but how can an actionclass ignore multiple submits? Doesn't it need to return a response(actionforward) to the client? I know I can redirect the user to an error page, and inform them of the error. But that's not very user friendly. Thank you for your help. _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can an Actionclass ignore a request?
Yeh. Thats a good point. Hmm. There is an http response code that can be returned to the browser to indicate that it shouldnt expect a response page. (Code 204 SC_NO_CONTENT), but then of course they are still stuck on the page and never get the response from their original request. :-( I guess what one really wants to do is to ignore the FIRST request since its the second that the user wants processed and is longer has an interest in the first. (ANd of course , by this stage the first may have already commited many db transactions etc... Alas, I can think of no way such an effect might be achieved :-( -Original Message- From: Brandon Lee [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 22:38 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Can an Actionclass ignore a request? This problem can't be solved w/ a client side solution, because of all the variables involved. For example, I can write javascript to disable the submit button (for IE NS4.7), but a user can hit the browser stop button and be trapped on the page. There's no way to capture the stop button event to enable the submit button again. From: Andrew Hill [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Can an Actionclass ignore a request? Date: Fri, 16 Aug 2002 22:24:07 +0800 ...which probably has a few bugs in certain browsers (such as NS4.x - though I havent tested) -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 22:20 To: Struts Users Mailing List Subject: RE: Can an Actionclass ignore a request? I have a different way of handling this situation which probably has a few bugs but at the least may amuse you ;-) When the user clicks submit, some javascript sets the visibility of the form to hidden. They cant reclick the button as it isnt there. (nb: as a general solution this is not so great as it relies on javascript being enabled, and a version of browser that supports the appropriate css property...) -Original Message- From: Brandon Lee [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 22:12 To: [EMAIL PROTECTED] Subject: Can an Actionclass ignore a request? I'm currently experiencing a problem where a user submits a form multiple times. I've read some posts on the forum, and they recommend making the actionclass ignore multiple submits. I understand the logic to support this w/ a unique token, but how can an actionclass ignore multiple submits? Doesn't it need to return a response(actionforward) to the client? I know I can redirect the user to an error page, and inform them of the error. But that's not very user friendly. Thank you for your help. _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can an Actionclass ignore a request?
But these are users we are taking about! Not intelligent sentient beings such as ourselves. Sure, animals can be trained (for example the famous experiment of Pavlov and his dogs), but users? I mean really now. The idea is absolutely outrageous! -Original Message- From: Robert Williams [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 22:50 To: Struts Users Mailing List Subject: Re: Can an Actionclass ignore a request? Rather than play games to try work around browser issues etc. isn't it best to be honest with your user and let them know what is actually happening. Tell the user not to hit the submit button multiple times and if they do, give them a user friendly error message. If it is an application the user uses multiple times, it won't take many error message displays to get the hint. :-) bob - Original Message - From: Brandon Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, August 16, 2002 9:38 AM Subject: RE: Can an Actionclass ignore a request? This problem can't be solved w/ a client side solution, because of all the variables involved. For example, I can write javascript to disable the submit button (for IE NS4.7), but a user can hit the browser stop button and be trapped on the page. There's no way to capture the stop button event to enable the submit button again. From: Andrew Hill [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Can an Actionclass ignore a request? Date: Fri, 16 Aug 2002 22:24:07 +0800 ...which probably has a few bugs in certain browsers (such as NS4.x - though I havent tested) -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 22:20 To: Struts Users Mailing List Subject: RE: Can an Actionclass ignore a request? I have a different way of handling this situation which probably has a few bugs but at the least may amuse you ;-) When the user clicks submit, some javascript sets the visibility of the form to hidden. They cant reclick the button as it isnt there. (nb: as a general solution this is not so great as it relies on javascript being enabled, and a version of browser that supports the appropriate css property...) -Original Message- From: Brandon Lee [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 22:12 To: [EMAIL PROTECTED] Subject: Can an Actionclass ignore a request? I'm currently experiencing a problem where a user submits a form multiple times. I've read some posts on the forum, and they recommend making the actionclass ignore multiple submits. I understand the logic to support this w/ a unique token, but how can an actionclass ignore multiple submits? Doesn't it need to return a response(actionforward) to the client? I know I can redirect the user to an error page, and inform them of the error. But that's not very user friendly. Thank you for your help. _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [ANN] Chapter 18 of the O'Reilly Struts book now available
The chapters got reshuffled after I had to cut several due to time and size. Which chapter topic are you referring to? If you are referring to Logging (chapter 18 before renumbering), it is not chapter 15 and can be downloaded from http://www.theserverside.com/resources/strutsreview.jsp Chuck I'd love to read Chapter 18 ... anyone have a copy? -Original Message- From: Steinar Bang [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 9:48 AM To: [EMAIL PROTECTED] Subject: Re: [ANN] Chapter 18 of the O'Reilly Struts book now available Steinar Bang [EMAIL PROTECTED]: Chuck Cavaness [EMAIL PROTECTED]: I think it's taking them a long time to figure out which animal they want on the cover :) Struts is Norwegian for ostrich, so a big flightless bird is my suggestion. Much to late appearently. They have chosen a horse of some sort. Interestingly the posted amazon link listed four other Struts books that I hadn't heard about. Probably because none of them have been published yet...:-) All 5 books will be published from September through November of this year. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: EJB
Yup. Darren Hill wrote: Is this the same Cekvenich who's book I just finished reading? -Original Message- From: V. Cekvenich [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 10:23 AM To: Struts Users Mailing List Subject: Re: EJB http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg62678.html See above thread. Consider making it easier to replace the EJBs, should you need to. v. Darren Hill wrote: Hi All, I know its Friday, but I'm leaving 'on a jet plane' to Newfoundland and I have a few questions. I'm creating an application that uses Entity EJB's ( and Stateless Session Beans as an service layer ) and want to know how I can convey the data in those EJB's onto a jsp. Do I REALLY need to create a corresponding ActionForm that duplicates the data in the EJB? I don't want pass the EJB's to the JSP layer ( BIG NO NO ). Can I make use of the DynaActionForms? -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 8:58 AM To: [EMAIL PROTECTED] Subject: Re: data Structure to use for a list of data ArrayList of Java Beans However, I have tested sucessfully ArrayList of dynabeans (from Commons/BeanUtils package). By using dynabeans you would not need to create specific JavaBean classes for each type of data row. Adolfo. From: Mazza, Glen R, PERSCOM [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: data Structure to use for a list of data Date: Fri, 16 Aug 2002 08:23:48 -0400 Hello, Very common master-detail pattern: User enters a query and gets a multi-column master list of items matching that query. Then the user selects an item in the list to get to a detail form on that item. The query/JDBC and detail form I can handle, but what Java data structure (created in the action object) should I use to hold the master list items: assume about 4-5 column items, one of them supplying data for the hyperlink: link id=1 Last Name, First Name Address Email etc. link id=2 Last Name, First Name Address Email etc. link id=3 Last Name, First Name Address Email etc. Struts-related issues: (1) I expect to use the Iterator tag for multi-page returns, I'm unsure if that would affect the data structure chosen. (2) I'm also interested in ease of display on the subsequent master list page, so I would like a data structure that can be easily manipulated by the Struts tag libraries in rendering the page. Thanks, Glen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [ANN] Chapter 18 of the O'Reilly Struts book now available
18 before renumbering), it is not chapter 15 and can be ^^^ Was that not or now? James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 11:13 AM To: Struts Users Mailing List Subject: RE: [ANN] Chapter 18 of the O'Reilly Struts book now available The chapters got reshuffled after I had to cut several due to time and size. Which chapter topic are you referring to? If you are referring to Logging (chapter 18 before renumbering), it is not chapter 15 and can be downloaded from http://www.theserverside.com/resources/strutsreview.jsp Chuck I'd love to read Chapter 18 ... anyone have a copy? -Original Message- From: Steinar Bang [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 9:48 AM To: [EMAIL PROTECTED] Subject: Re: [ANN] Chapter 18 of the O'Reilly Struts book now available Steinar Bang [EMAIL PROTECTED]: Chuck Cavaness [EMAIL PROTECTED]: I think it's taking them a long time to figure out which animal they want on the cover :) Struts is Norwegian for ostrich, so a big flightless bird is my suggestion. Much to late appearently. They have chosen a horse of some sort. Interestingly the posted amazon link listed four other Struts books that I hadn't heard about. Probably because none of them have been published yet...:-) All 5 books will be published from September through November of this year. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
What is the timeframe for the Struts1.1 production release?
I'm trying to work out my dev schedule and would like to know a ballpark for when the 1.1 production release is anticipated. thanks, bear -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tons of tiles debug messages!
When I bring up my weblogic server which uses tiles I get pages and pages of tiles debug messages from the apache commons digester. How do I get rid of these? I've reduced my action servlet debug parms all down to 0, but they still torment me. -Please help. Thanks, Michelle Here's my action servlet config from web.xml. servlet servlet-nameaction/servlet-name !-- Specify servlet class to use If you also plan to use Struts, use ActionComponentServlet If you don't need Struts, use TilesServlet -- servlet- classorg.apache.struts.tiles.ActionComponentServlet/servlet- class !-- Tiles Servlet parameter Specify configuration file names. There can be several comma separated file names -- init-param param-namedefinitions-config/param-name param-value/WEB-INF/tiles-defs.xml/param-value /init-param !-- Tiles Servlet parameter Specify Tiles debug level. O : no debug information 1 : debug information 2 : more debug information -- init-param param-namedefinitions-debug/param-name param-value0/param-value /init-param !-- Tiles Servlet parameter Specify Digester debug level. This value is passed to Digester O : no debug information 1 : debug information 2 : more debug information -- init-param param-namedefinitions-parser-details/param-name param-value0/param-value /init-param !-- Tiles Servlet parameter Specify if xml parser should validate the Tiles configuration file. true : validate. DTD should be specified in file header. false : no validation -- init-param param-namedefinitions-parser-validate/param-name param-valuetrue/param-value /init-param init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namedetail/param-name param-value0/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param init-param param-namenocache/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet servlet servlet-namevalidator/servlet-name servlet- classcom.wintecinc.struts.action.ValidatorServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/validation.xml/param-value /init-param init-param param-namedebug/param-name param-value0/param-value /init-param load-on-startup2/load-on-startup /servlet --here's an excerpt of the messages that I get on the console 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - startEl ement(,tiles-definitions,tiles-definitions) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - Pushing b ody text '' 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - New match ='tiles-definitions' 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - No rules found matching 'tiles-definitions'. 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - ignorab leWhitespace( ) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - ignorab leWhitespace( ) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - ignorab leWhitespace( ) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - ignorab leWhitespace( ) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - ignorab leWhitespace( ) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - startEl ement(,definition,definition) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - Pushing b ody text '' 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - New match ='tiles-definitions/definition' 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - Fire begi n() for ObjectCreateRule [className=org.apache.struts.tiles.xmlDefinition.XmlDefi nition, attributeName=null] 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - [ObjectCrea teRule]{tiles-definitions/definition}New org.apache.struts.tiles.xmlDefinition.X mlDefinition 2002-08-16 11:21:44,665 DEBUG org.apache.commons.digester.Digester - Fire
RE: [ANN] Chapter 18 of the O'Reilly Struts book now available
Great .. I've got them all ... GREAT stuff Chuck .. Already pre-ordered from Amazon. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 11:13 AM To: Struts Users Mailing List Subject: RE: [ANN] Chapter 18 of the O'Reilly Struts book now available The chapters got reshuffled after I had to cut several due to time and size. Which chapter topic are you referring to? If you are referring to Logging (chapter 18 before renumbering), it is not chapter 15 and can be downloaded from http://www.theserverside.com/resources/strutsreview.jsp Chuck I'd love to read Chapter 18 ... anyone have a copy? -Original Message- From: Steinar Bang [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 9:48 AM To: [EMAIL PROTECTED] Subject: Re: [ANN] Chapter 18 of the O'Reilly Struts book now available Steinar Bang [EMAIL PROTECTED]: Chuck Cavaness [EMAIL PROTECTED]: I think it's taking them a long time to figure out which animal they want on the cover :) Struts is Norwegian for ostrich, so a big flightless bird is my suggestion. Much to late appearently. They have chosen a horse of some sort. Interestingly the posted amazon link listed four other Struts books that I hadn't heard about. Probably because none of them have been published yet...:-) All 5 books will be published from September through November of this year. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Session-scope JavaBean being removed
I'm afraid that you'll have to provide more details before anyone can help you. James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 10:19 AM To: '[EMAIL PROTECTED]' Subject: Session-scope JavaBean being removed Hi All, Got a strange one that I can't figure out. We've developed an internal webapp that uses the MemoryDatabase from the struts-example that comes with the distribution. The implementation works great, providing a basic user ID / password table in XML, etc. Once the logon process completes, we store a javabean with the user ID in the session so we can grab it later when we do our database updates (store the user ID as the last person to update, etc.) Everything seems to be fine, then BLAM! - I get a NullPointerException when I try to access the bean. I've checked the session timeout and set it to such a high value that the session should never time out. I've also search the archives, the 'net, and have e-mailed Craig directly (thanks for response, but it still happens :-). I've found nothing that would tell me why this bean is being removed. The only time it should be is during logoff processing. Help! Anyone have any ideas? Thanks in advance - and TGIF! Jerry Jalenak Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at (800)388-4675. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tons of tiles debug messages!
The debug configuation should be in your Tile-Plugin configuration. Make sure that the Tiles plugin is defined like this in your struts-config.xml file: !-- == Plugins Definitions == -- plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml / set-property property=definitions-debug value=0 / set-property property=definitions-parser-details value=0 / set-property property=definitions-parser-validate value=true / /plug-in -Original Message- From: mpopovits.rm [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 11:28 AM To: [EMAIL PROTECTED] Subject: tons of tiles debug messages! When I bring up my weblogic server which uses tiles I get pages and pages of tiles debug messages from the apache commons digester. How do I get rid of these? I've reduced my action servlet debug parms all down to 0, but they still torment me. -Please help. Thanks, Michelle Here's my action servlet config from web.xml. servlet servlet-nameaction/servlet-name !-- Specify servlet class to use If you also plan to use Struts, use ActionComponentServlet If you don't need Struts, use TilesServlet -- servlet- classorg.apache.struts.tiles.ActionComponentServlet/servlet- class !-- Tiles Servlet parameter Specify configuration file names. There can be several comma separated file names -- init-param param-namedefinitions-config/param-name param-value/WEB-INF/tiles-defs.xml/param-value /init-param !-- Tiles Servlet parameter Specify Tiles debug level. O : no debug information 1 : debug information 2 : more debug information -- init-param param-namedefinitions-debug/param-name param-value0/param-value /init-param !-- Tiles Servlet parameter Specify Digester debug level. This value is passed to Digester O : no debug information 1 : debug information 2 : more debug information -- init-param param-namedefinitions-parser-details/param-name param-value0/param-value /init-param !-- Tiles Servlet parameter Specify if xml parser should validate the Tiles configuration file. true : validate. DTD should be specified in file header. false : no validation -- init-param param-namedefinitions-parser-validate/param-name param-valuetrue/param-value /init-param init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namedetail/param-name param-value0/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param init-param param-namenocache/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet servlet servlet-namevalidator/servlet-name servlet- classcom.wintecinc.struts.action.ValidatorServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/validation.xml/param-value /init-param init-param param-namedebug/param-name param-value0/param-value /init-param load-on-startup2/load-on-startup /servlet --here's an excerpt of the messages that I get on the console 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - startEl ement(,tiles-definitions,tiles-definitions) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - Pushing b ody text '' 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - New match ='tiles-definitions' 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - No rules found matching 'tiles-definitions'. 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - ignorab leWhitespace( ) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - ignorab leWhitespace( ) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - ignorab leWhitespace( ) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - ignorab leWhitespace( ) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - ignorab leWhitespace( ) 2002-08-16
RE: What is the timeframe for the Struts1.1 production release?
I remember posting the answer to this last week (though I cant seem to find it in the mail archive). Anyhow, the answer was: The 12th of April 2156 at 15:28 in the afternoon. Or perhaps even sooner if its ready before then... ;-) -Original Message- From: BootedBear [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 23:27 To: Struts Users Mailing List Subject: What is the timeframe for the Struts1.1 production release? I'm trying to work out my dev schedule and would like to know a ballpark for when the 1.1 production release is anticipated. thanks, bear -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tons of tiles debug messages!
Is this for Struts 1.1 or 1.0? I'm using Struts 1.0. If so, where does it go in the struts config file. Thanks, Michelle --- In [EMAIL PROTECTED], Herve Tchepannou [EMAIL PROTECTED] wrote: The debug configuation should be in your Tile-Plugin configuration. Make sure that the Tiles plugin is defined like this in your struts-config.xml file: !-- == Plugins Definitions == - - plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml / set-property property=definitions-debug value=0 / set-property property=definitions-parser-details value=0 / set-property property=definitions-parser-validate value=true / /plug-in -Original Message- From: mpopovits.rm [mailto:mpopovits@h...] Sent: Friday, August 16, 2002 11:28 AM To: [EMAIL PROTECTED] Subject: tons of tiles debug messages! When I bring up my weblogic server which uses tiles I get pages and pages of tiles debug messages from the apache commons digester. How do I get rid of these? I've reduced my action servlet debug parms all down to 0, but they still torment me. -Please help. Thanks, Michelle Here's my action servlet config from web.xml. servlet servlet-nameaction/servlet-name !-- Specify servlet class to use If you also plan to use Struts, use ActionComponentServlet If you don't need Struts, use TilesServlet -- servlet- classorg.apache.struts.tiles.ActionComponentServlet/servlet- class !-- Tiles Servlet parameter Specify configuration file names. There can be several comma separated file names -- init-param param-namedefinitions-config/param-name param-value/WEB-INF/tiles-defs.xml/param-value /init-param !-- Tiles Servlet parameter Specify Tiles debug level. O : no debug information 1 : debug information 2 : more debug information -- init-param param-namedefinitions-debug/param-name param-value0/param-value /init-param !-- Tiles Servlet parameter Specify Digester debug level. This value is passed to Digester O : no debug information 1 : debug information 2 : more debug information -- init-param param-namedefinitions-parser-details/param-name param-value0/param-value /init-param !-- Tiles Servlet parameter Specify if xml parser should validate the Tiles configuration file. true : validate. DTD should be specified in file header. false : no validation -- init-param param-namedefinitions-parser-validate/param-name param-valuetrue/param-value /init-param init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namedetail/param-name param-value0/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param init-param param-namenocache/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet servlet servlet-namevalidator/servlet-name servlet- classcom.wintecinc.struts.action.ValidatorServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/validation.xml/param-value /init-param init-param param-namedebug/param-name param-value0/param-value /init-param load-on-startup2/load-on-startup /servlet --here's an excerpt of the messages that I get on the console 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - startEl ement(,tiles-definitions,tiles-definitions) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - Pushing b ody text '' 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - New match ='tiles-definitions' 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - No rules found matching 'tiles-definitions'. 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - ignorab leWhitespace( ) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - ignorab leWhitespace( ) 2002-08-16 11:21:44,619 DEBUG
RE: Session-scope JavaBean being removed
My bad. Should've included the details to begin with.. Struts-Config struts-config data-sources data-source key=AEFA set-property property=autoCommit value=false / set-property property=driverClass value=oracle.jdbc.driver.OracleDriver / set-property property=maxCount value=10 / set-property property=minCount value=1 / set-property property=password value=L2P1 / set-property property=url value=jdbc:oracle:thin:@devsrv:1526:DL2P1 / set-property property=user value=L2P1 / /data-source /data-sources form-beans form-bean name=LogonForm type=com.labone.aefa.validate.LogonForm dynamic=true form-property name=userID type=java.lang.String/ form-property name=password type=java.lang.String/ /form-bean form-bean name=DataEntryForm type=com.labone.aefa.validate.DataEntryForm dynamic=true form-property name=orderBy type=java.lang.String/ form-property name=lastName type=java.lang.String/ form-property name=firstName type=java.lang.String/ form-property name=middleName type=java.lang.String/ form-property name=ssn type=java.lang.String/ form-property name=acctNum type=java.lang.String/ form-property name=acctSfx type=java.lang.String/ form-property name=prodApplied type=java.lang.String/ form-property name=policyName type=java.lang.String/ form-property name=quoteback type=java.lang.String/ form-property name=entryDate type=java.lang.String/ form-property name=userid type=java.lang.String/ form-property name=dob type=java.lang.String/ form-property name=advisorName type=java.lang.String/ form-property name=advisorNum type=java.lang.String/ form-property name=advisorArea type=java.lang.String/ form-property name=advisorPhone type=java.lang.String/ form-property name=advisorPhoneExt type=java.lang.String/ form-property name=advisorFax type=java.lang.String/ form-property name=drvLcnsNum type=java.lang.String/ form-property name=drvLcnsState type=java.lang.String/ form-property name=workPhone type=java.lang.String/ form-property name=workPhoneExt type=java.lang.String/ form-property name=homePhone type=java.lang.String/ form-property name=timeContWork type=java.lang.String/ form-property name=timeContWorkAMPM type=java.lang.String initial=AM/ form-property name=timeContHome type=java.lang.String/ form-property name=timeContHomeAMPM type=java.lang.String initial=AM/ form-property name=streetNum type=java.lang.String/ form-property name=streetName type=java.lang.String/ form-property name=apt type=java.lang.String/ form-property name=city type=java.lang.String/ form-property name=state type=java.lang.String/ form-property name=zip type=java.lang.String/ form-property name=physName type=java.lang.String/ form-property name=physStreetNum type=java.lang.String/ form-property name=physStreetName type=java.lang.String/ form-property name=physSuite type=java.lang.String/ form-property name=physCity type=java.lang.String/ form-property name=physState type=java.lang.String/ form-property name=physZip type=java.lang.String/ form-property name=physPhone type=java.lang.String/ form-property name=physPhoneExt type=java.lang.String/ form-property name=typePolicy type=java.lang.String/ form-property name=consultDate type=java.lang.String/ form-property name=policyAmount type=java.lang.String/ form-property name=aibRider type=java.lang.String/ form-property name=buttonAction type=java.lang.String/ form-property name=otherInsured type=java.lang.String/ form-property name=policyChange type=java.lang.String/
Synchronization Token for forms - any coding required?
I have read that Struts uses the Token Synchronization pattern to detect and avoid duplicate form submissions. Question: Is all of this handled transparently for me or do I need to code some logic in the perform() method to enable this and/or ignore a duplicate submission? Thanks
RE: tons of tiles debug messages!
struts 1.1b2 -Original Message- From: mpopovits.rm [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 11:40 AM To: [EMAIL PROTECTED] Subject: Re: tons of tiles debug messages! Is this for Struts 1.1 or 1.0? I'm using Struts 1.0. If so, where does it go in the struts config file. Thanks, Michelle --- In [EMAIL PROTECTED], Herve Tchepannou [EMAIL PROTECTED] wrote: The debug configuation should be in your Tile-Plugin configuration. Make sure that the Tiles plugin is defined like this in your struts-config.xml file: !-- == Plugins Definitions == - - plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml / set-property property=definitions-debug value=0 / set-property property=definitions-parser-details value=0 / set-property property=definitions-parser-validate value=true / /plug-in -Original Message- From: mpopovits.rm [mailto:mpopovits@h...] Sent: Friday, August 16, 2002 11:28 AM To: [EMAIL PROTECTED] Subject: tons of tiles debug messages! When I bring up my weblogic server which uses tiles I get pages and pages of tiles debug messages from the apache commons digester. How do I get rid of these? I've reduced my action servlet debug parms all down to 0, but they still torment me. -Please help. Thanks, Michelle Here's my action servlet config from web.xml. servlet servlet-nameaction/servlet-name !-- Specify servlet class to use If you also plan to use Struts, use ActionComponentServlet If you don't need Struts, use TilesServlet -- servlet- classorg.apache.struts.tiles.ActionComponentServlet/servlet- class !-- Tiles Servlet parameter Specify configuration file names. There can be several comma separated file names -- init-param param-namedefinitions-config/param-name param-value/WEB-INF/tiles-defs.xml/param-value /init-param !-- Tiles Servlet parameter Specify Tiles debug level. O : no debug information 1 : debug information 2 : more debug information -- init-param param-namedefinitions-debug/param-name param-value0/param-value /init-param !-- Tiles Servlet parameter Specify Digester debug level. This value is passed to Digester O : no debug information 1 : debug information 2 : more debug information -- init-param param-namedefinitions-parser-details/param-name param-value0/param-value /init-param !-- Tiles Servlet parameter Specify if xml parser should validate the Tiles configuration file. true : validate. DTD should be specified in file header. false : no validation -- init-param param-namedefinitions-parser-validate/param-name param-valuetrue/param-value /init-param init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namedetail/param-name param-value0/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param init-param param-namenocache/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet servlet servlet-namevalidator/servlet-name servlet- classcom.wintecinc.struts.action.ValidatorServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/validation.xml/param-value /init-param init-param param-namedebug/param-name param-value0/param-value /init-param load-on-startup2/load-on-startup /servlet --here's an excerpt of the messages that I get on the console 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester.sax - startEl ement(,tiles-definitions,tiles-definitions) 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - Pushing b ody text '' 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - New match ='tiles-definitions' 2002-08-16 11:21:44,619 DEBUG org.apache.commons.digester.Digester - No rules found matching 'tiles-definitions'. 2002-08-16 11:21:44,619 DEBUG
RE: Help!!!: Decorate available Struts webapp with Tiles
Hi, How are you doing? I would try something like this: Let's say we have screens like searchCustomer.do, submitCustomer.do, etc., that are without decoration. Using Tiles, let's define a defintion like: defintion name=baseDef path=/layout/baseLayout.jsp put name=header value=/header.jsp/ put name=body value=/ put name=footer value=/footer.jsp/ /defintion Now, for each screen extend the above defintion defintion name=searchCustomerDef extends=baseDef put name=body value=/searchCustomer.do /defintion Now, map searchCustomerDef as forward of searchCustomerComplete.do in struts-config.xml Repeat the above process for submitCustomer.do Test /searchCustomerComplete.do in the browser. That should do it... Best regards, -Prakash Hi, I've developed a Struts webapp without decoration (mean just the body screens). We now want to decorate it by adding header/footer using Tiles. I think there could be an easy way to do it without change much of the code, but still don't know how (I'm new to Tiles). Could anyone please explain how to do it? If I go futher, e.g. put some of the available screens in tabs using tab layout, then is there an easy way to do it? Thanks for your help. - Thanks - eBuilt, Inc. - Builders of Industrial-Strength e-Business (http://www.eBuilt.com) Learn Java! (http://www.cact.csupomona.edu/javacert.html) Learn Design Patterns! (http://www.cact.csupomona.edu/UML_Specialist.htm) Want answers to Java, OOAD, UML, Design Patterns, EJBs, JSPs, Servlets, XP, etc? (http://groups.yahoo.com/group/bartssandbox) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [ANN] Chapter 18 of the O'Reilly Struts book now available
On Fri, 16 Aug 2002, Steinar Bang wrote: Date: Fri, 16 Aug 2002 15:48:28 +0200 From: Steinar Bang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Newsgroups: gmane.comp.jakarta.struts.user Subject: Re: [ANN] Chapter 18 of the O'Reilly Struts book now available Steinar Bang [EMAIL PROTECTED]: Chuck Cavaness [EMAIL PROTECTED]: I think it's taking them a long time to figure out which animal they want on the cover :) Struts is Norwegian for ostrich, so a big flightless bird is my suggestion. Much to late appearently. They have chosen a horse of some sort. Interestingly the posted amazon link listed four other Struts books that I hadn't heard about. Probably because none of them have been published yet...:-) All 5 books will be published from September through November of this year. Pretty amazing, isn't it? Having seen quite a bit of information from several of these books, you'll find lots of very helpful stuff in the way that the authors have approached it. Friday The only thing that disappoints me on the Amazon search results page for struts is that the seventh title is out of print. Why Askar, the peacock struts with pride sounds like a good attitude for this day of the week ... /Friday Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help - xml to pdf using struts
Title: RE: Help - xml to pdf using struts Hi Lisa, That looks similar to my solution. The biggest problem I had was with getting IE to display the PDF inline without a PDF in the URL Using a Struts action, I wasn't able to get the URL to change at the appropriate time with a redirect. In the end, I sent the pdf as an attachment which gives the open/save prompt. Were you able to get around this problem? Thanks, Mike -Original Message-From: Lisa van Gelder [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 15, 2002 4:52 AMTo: 'Struts Users Mailing List'Subject: RE: Help - xml to pdf using struts Here is the bit of my action that deals with the pdf creation. First I transform xml to fo using xsl (and Xalan). The result is written to an InputSteam, which is passed into FOP. The result from FOP is then written out the client and the content type is set to "application/pdf". HTH Lisa -Original Message- From: Zimmer, Robin (SSABSA) [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 09:37 To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts Lisa, That sounds can you provide an example action please. -Original Message- From: Lisa van Gelder [mailto:[EMAIL PROTECTED]] Sent: Thursday, 15 August 2002 6:01 PM To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts I do the xml - fo - pdf transformation in an Action, and then stream the result straight back to the browser. Lisa -Original Message- From: Zimmer, Robin (SSABSA) [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 09:28 To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts Thanks for getting back to me. I appreciate that I have to have xsl:fo to transform the xml, but how best to render this using jsp??? Or do I need a servlet??? -Original Message- From: David WIlkinson [mailto:[EMAIL PROTECTED]] Sent: Thursday, 15 August 2002 5:57 PM To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts We had to address a similar issue of creating pdf's from xml and found that it can be done in a simple way using xsl:fo to transform the xml. Check out http://xml.apache.org/fop/index.html for more info. -Original Message- From: Zimmer, Robin (SSABSA) [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 08:13 To: '[EMAIL PROTECTED]' Subject: Help - xml to pdf using struts I am in the last stages of implementating a Struts application. I now have to complete the reporting side. This basically consists of displaying xml output as HTML or PDF. I have the HTML side covered (I am using jakarta XTags) but how do I render an xml to fo transformation to pdf by using struts. I am aware of stxx but as far as I can see you have to override the actionservlet etc and this seems an overhead for what is a small part of the app. Can anyone please give some suggestions. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Friday (almost funny) Humor
Its funny what a little 'search and replace' can do..LOL *** HEADLINE NEWS *** Microsoft Bashing Now Considered a Hate Crime Washington DC - George W. Bush signed into law yesterday legislation that makes Microsoft bashing an offense covered under the hate crime statute. Anyone convicted of Microsoft bashing will now face Federal charges. The law is in response to the recent beating of a student at the University of Colorado by a Sun Certified Java Developer. When asked for comment, Blurg Stevens who has been charged with the crime said, He kept shoving his new laptop in my face. He was playing 'Who's your Daddy now? My little Java-Bitch' mp3 (The new hit by Roadkill) on Windows Media Player. It was really getting to me. I just (pause) couldn't help myself!. Law enforcement officials have been given some guidelines to follow when determining if a crime is covered by the statute. For example if a person beats someone to death with a hammer they would potentially face murder charges only in a state court. However, if a person beats someone to death with a hammer while yelling You .Net developing bastard, then they would be charged under the hate crimes statute and face trial in a Federal court. Many oppose the law, because they feel that it is unfairly targeted at one particular group. This makes it near impossible to do our job properly without breaking the law, said Sun's PR representative Reid Tarded, the Feds are taking away one of our most useful tools. It is commonly believed that 70% of the development population are Microsoft users. Web Developers who develop with the Jakarta Struts framework often hide their use from friends and family members. Meeting other developers only in bars, IRC channels, or mailing lists. Developers who openly use Struts often face extreme prejudice and discrimination from co-workers and IT departments but say that this bigotry must be confronted. Ive never been beaten because of my open sourcedness, but I get a lot of Microsoft sucks comments, said Mark Galbreath, Im glad the statute is there to protect me. Others in the Microsoft community were confused by the ruling. I went to Microsoft Bash 2000 and it was one helluva party. The feds shouldn't be stopping that, said Dumbas A. Rock. In related news, developers using Microsoft's new .Net framework are now covered under the Americans with Disabilities Act. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: EJB
On Fri, 16 Aug 2002, Darren Hill wrote: Date: Fri, 16 Aug 2002 09:03:02 -0400 From: Darren Hill [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: EJB Hi All, I know its Friday, but I'm leaving 'on a jet plane' to Newfoundland and I have a few questions. I'm creating an application that uses Entity EJB's ( and Stateless Session Beans as an service layer ) and want to know how I can convey the data in those EJB's onto a jsp. Do I REALLY need to create a corresponding ActionForm that duplicates the data in the EJB? I don't want pass the EJB's to the JSP layer ( BIG NO NO ). Can I make use of the DynaActionForms? For presenting stuff, you *can* pass your EJBs directly to the presentation tier, but you most likely don't want to -- every method call on an entity bean has pretty high overhead. You're better off having your EJB tier provide a value object that has just the stuff you need to display. For input, you can definitely use DynaActionForms. The reasons you want this (whether you're using EJBs or something else for the model tier is not relevant) has to do with why a form bean exists in the first place -- to represent the server side state of the user input fields on the form. Consider a field that should take an integer, so that your corresponding JavaBean property is an int. Now assume that the user types 123 instead of 1a3. What we want to have happen is to have validation catch this, and cause the page to be redisplayed -- with the bad data just as the user typed it so they can correct it (that's the way GUI programs work, and that is what webapp users expect as well). The simplest way to do that is to use String properties in your form beans, and do the conversion to int in your Action, on the way back to the EJB tier. Craig -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 8:58 AM To: [EMAIL PROTECTED] Subject: Re: data Structure to use for a list of data ArrayList of Java Beans However, I have tested sucessfully ArrayList of dynabeans (from Commons/BeanUtils package). By using dynabeans you would not need to create specific JavaBean classes for each type of data row. Adolfo. From: Mazza, Glen R, PERSCOM [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: data Structure to use for a list of data Date: Fri, 16 Aug 2002 08:23:48 -0400 Hello, Very common master-detail pattern: User enters a query and gets a multi-column master list of items matching that query. Then the user selects an item in the list to get to a detail form on that item. The query/JDBC and detail form I can handle, but what Java data structure (created in the action object) should I use to hold the master list items: assume about 4-5 column items, one of them supplying data for the hyperlink: link id=1 Last Name, First Name Address Email etc. link id=2 Last Name, First Name Address Email etc. link id=3 Last Name, First Name Address Email etc. Struts-related issues: (1) I expect to use the Iterator tag for multi-page returns, I'm unsure if that would affect the data structure chosen. (2) I'm also interested in ease of display on the subsequent master list page, so I would like a data structure that can be easily manipulated by the Struts tag libraries in rendering the page. Thanks, Glen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Case insensitive path attributes of action?
On Fri, 16 Aug 2002, Steinar Bang wrote: Date: Fri, 16 Aug 2002 15:58:38 +0200 From: Steinar Bang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Newsgroups: gmane.comp.jakarta.struts.user Subject: Case insensitive path attributes of action? Platform: Intel PIII, RedHat 7.2, BlackDown JDK 1.3.1, apache 1.3.20, tomcat 3.3, Struts 1.0 Is it possible to make the Struts ActionServlet class treat the path attributes of action elements in the struts-config.xml file, as case insensitive? No. And even if you could, the servlet container is going to be case sensitive anyway, as is the Java compiler, the filesystem (since you're talking about Linux), and basically every other aspect of your system. The best thing to do is get used to case sensitivity. Thanx! - Steinar Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help - xml to pdf using struts
Sun Servlet Forum (Victor's code worked for me, without the open/save prompt occuring): http://forum.java.sun.com/thread.jsp?forum=33 http://forum.java.sun.com/thread.jsp?forum=33thread=270415 thread=270415 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 11:43 AM To: [EMAIL PROTECTED] Subject: RE: Help - xml to pdf using struts Hi Lisa, That looks similar to my solution. The biggest problem I had was with getting IE to display the PDF inline without a PDF in the URL Using a Struts action, I wasn't able to get the URL to change at the appropriate time with a redirect. In the end, I sent the pdf as an attachment which gives the open/save prompt. Were you able to get around this problem? Thanks, Mike -Original Message- From: Lisa van Gelder [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 4:52 AM To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts Here is the bit of my action that deals with the pdf creation. First I transform xml to fo using xsl (and Xalan). The result is written to an InputSteam, which is passed into FOP. The result from FOP is then written out the client and the content type is set to application/pdf. HTH Lisa -Original Message- From: Zimmer, Robin (SSABSA) [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: 15 August 2002 09:37 To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts Lisa, That sounds can you provide an example action please. -Original Message- From: Lisa van Gelder [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thursday, 15 August 2002 6:01 PM To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts I do the xml - fo - pdf transformation in an Action, and then stream the result straight back to the browser. Lisa -Original Message- From: Zimmer, Robin (SSABSA) [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: 15 August 2002 09:28 To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts Thanks for getting back to me. I appreciate that I have to have xsl:fo to transform the xml, but how best to render this using jsp??? Or do I need a servlet??? -Original Message- From: David WIlkinson [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thursday, 15 August 2002 5:57 PM To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts We had to address a similar issue of creating pdf's from xml and found that it can be done in a simple way using xsl:fo to transform the xml. Check out http://xml.apache.org/fop/index.html http://xml.apache.org/fop/index.html for more info. -Original Message- From: Zimmer, Robin (SSABSA) [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: 15 August 2002 08:13 To: '[EMAIL PROTECTED]' Subject: Help - xml to pdf using struts I am in the last stages of implementating a Struts application. I now have to complete the reporting side. This basically consists of displaying xml output as HTML or PDF. I have the HTML side covered (I am using jakarta XTags) but how do I render an xml to fo transformation to pdf by using struts. I am aware of stxx but as far as I can see you have to override the actionservlet etc and this seems an overhead for what is a small part of the app. Can anyone please give some suggestions. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Can an Actionclass ignore a request?
On the client side you can try to reroute the submit-Event of the form: e.g.: onSubmit=return routemetoajavascript() In the routemetojavascript() function you return false and may able to set a counter or something and if first or second or something else you want, you can submit the form per JavaScript. Another possibility is the using of a confirmation page. -- Mattes Balser | [EMAIL PROTECTED] High-End Services GmbH | www.h-e-s.de Nussallee 13 | D-35510 Butzbach Tel.: +49 (0) 6033 890921 | Fax: +49 (0) 6033 890911 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Synchronization Token for forms - any coding required?
On Fri, 16 Aug 2002, Chris Ruegger wrote: Date: Fri, 16 Aug 2002 11:54:57 -0400 From: Chris Ruegger [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Synchronization Token for forms - any coding required? I have read that Struts uses the Token Synchronization pattern to detect and avoid duplicate form submissions. Question: Is all of this handled transparently for me or do I need to code some logic in the perform() method to enable this and/or ignore a duplicate submission? See the Struts example application's use of this feature -- for example: * In EditRegistrationAction, you see the line: saveToken(request); * In SaveResgistrationAction, you see the code: if (!isTokenValid()) { ... deal with the error ... } From the page author's view, this is transparent -- the html:form tag does the necessary magic to include the token as a hidden field in the submit. It's not transparent to the person writing your actions, but it's real easy to call saveToken() in the action that sets up your input form's data. And you have total control over dealing with the token not being valid as well. Thanks Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Files in WEB-INF
On Fri, 16 Aug 2002 [EMAIL PROTECTED] wrote: Date: Fri, 16 Aug 2002 10:36:30 BST From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Files in WEB-INF I'd like to open a file in WEB-INF from my code. Is there a platform independent way of getting the path to WEB-INF? We have to deploy on Tomcat and Websphere 4. You can do what Struts does to read the configuration file: InputStream stream = getServletContext().getResourceAsStream(/WEB-INF/struts-config.xml); ta, Tim. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Connection pool question
Jan, Struts, itself, does not (yet?) support JDNI lookups, although the Servlet2.3 spec mandates that container must. So you must define your datasources to your servlet container. The manner in which this is implemented is not standardized, so it depends on your application server / servlet container. I use ServletExec (http://www.newatlanta.com/products/servletexec/) and the admin ui allows me to define data sources so when my web app boots up, they are available via a JNDI lookup (see example in this thread). I'm not sure how this is done in Tomcat, although I'm very sure many others on this list know, or it is probably well documented in Tomcat. HTH, robert -Original Message- From: Jan Fetyko [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:32 AM To: Struts Users Mailing List Subject: Re: Connection pool question Robert, How would I define the DB connection in struts-config.xml so it's accessible through the syntax you provided bellow ? I'm sorry but this is very new to me, so some poor level questions might follow. Jf Robert Taylor wrote: Standardization: All servlet containers that support the Servlet2.3 spec must provide a way to look up data sources via JNDI. All or most application servers support general object location via JNDI. Simplicity: To look up a data source, all you have is the following code. Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup( jdbc/data source name ); Flexibility: You can define your datasources in some file external to your code, such as a properties or xml file. This allows you to make changes without affecting your code. Decoupling: By accessing your datasources via JNDI lookup, your business objects don't depend on the web tier to provide access via the application, session, or request scope. This makes them reusable in other applications. Those are four reasons I can think of. There are probably more. Craig, has discussed the best practices way of using data sources in Struts. You may want to browser the archives. HTH, robert -Original Message- From: Howard Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 7:33 AM To: 'Struts Users Mailing List' Subject: RE: Connection pool question Thanks, I don't know much about JNDI (apart from in general terms what it is); why would doing it this way be a good thing? Howard -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 12:10 To:Struts Users Mailing List Subject: RE: Connection pool question One solution might be to define several datasources in your application/servlet container where each datasource corresponds to its respective database. Then use JNDI to access the datasources from your application. robert -Original Message- From: Howard Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 6:47 AM To: '[EMAIL PROTECTED]' Subject:Connection pool question Hi, Newbie, JDBC connection pool question: My application uses a central control database. This is ok, and I can see how to use a connection pool for my application to access this. BUT... The application allows a user to recover data from a range of additional databases. That is the central database verified logins etc and then lists a number of databases for the user to connect to. I am very unsure how to handle this sub -connection. I have a number of thoughts... all bad: 1. Set up connection pools to ALL possible databases (there are less than 10), at the start in the application scope. 2. Set up a dedicated connection in the session scope. 3. Set up a dedicated connection in the request scope (cgi style). I don't like any of these answers. Anybody have experience of this sort of dynamic database connection or have any thoughts. Regards, File: ATT00047.txtFile: ATT203342.txt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Friday (almost funny) Humor
snip stuff that could get me fired, if I left it in In related news, developers using Microsoft's new .Net framework are now covered under the Americans with Disabilities Act. Now, that's funny! :-) Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Connection pool question
Hmmm...let me clarify. First JDNI is supposed to be JNDI (dyslexia sets in). Second, when I said Struts does not (yet?) support JNDI lookups, I meant that the Struts framework does not bind the datasources that can be defined in struts-config.xml to the InitialContext. Within Struts, you can use JNDI to look up data sources, but you have to have some mechanism that binds the data sources to the InitialContext. As mentioned earlier, Craig has stated some best practices for accessing data sources in a web application. I don't know the thread off hand, but you should be able to find it in the archives. robert -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 12:12 PM To: Struts Users Mailing List Subject: RE: Connection pool question Jan, Struts, itself, does not (yet?) support JDNI lookups, although the Servlet2.3 spec mandates that container must. So you must define your datasources to your servlet container. The manner in which this is implemented is not standardized, so it depends on your application server / servlet container. I use ServletExec (http://www.newatlanta.com/products/servletexec/) and the admin ui allows me to define data sources so when my web app boots up, they are available via a JNDI lookup (see example in this thread). I'm not sure how this is done in Tomcat, although I'm very sure many others on this list know, or it is probably well documented in Tomcat. HTH, robert -Original Message- From: Jan Fetyko [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:32 AM To: Struts Users Mailing List Subject: Re: Connection pool question Robert, How would I define the DB connection in struts-config.xml so it's accessible through the syntax you provided bellow ? I'm sorry but this is very new to me, so some poor level questions might follow. Jf Robert Taylor wrote: Standardization: All servlet containers that support the Servlet2.3 spec must provide a way to look up data sources via JNDI. All or most application servers support general object location via JNDI. Simplicity: To look up a data source, all you have is the following code. Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup( jdbc/data source name ); Flexibility: You can define your datasources in some file external to your code, such as a properties or xml file. This allows you to make changes without affecting your code. Decoupling: By accessing your datasources via JNDI lookup, your business objects don't depend on the web tier to provide access via the application, session, or request scope. This makes them reusable in other applications. Those are four reasons I can think of. There are probably more. Craig, has discussed the best practices way of using data sources in Struts. You may want to browser the archives. HTH, robert -Original Message- From: Howard Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 7:33 AM To: 'Struts Users Mailing List' Subject: RE: Connection pool question Thanks, I don't know much about JNDI (apart from in general terms what it is); why would doing it this way be a good thing? Howard -Original Message- From:Robert Taylor [mailto:[EMAIL PROTECTED]] Sent:15 August 2002 12:10 To: Struts Users Mailing List Subject: RE: Connection pool question One solution might be to define several datasources in your application/servlet container where each datasource corresponds to its respective database. Then use JNDI to access the datasources from your application. robert -Original Message- From: Howard Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 6:47 AM To: '[EMAIL PROTECTED]' Subject:Connection pool question Hi, Newbie, JDBC connection pool question: My application uses a central control database. This is ok, and I can see how to use a connection pool for my application to access this. BUT... The application allows a user to recover data from a range of additional databases. That is the central database verified logins etc and then lists a number of databases for the user to connect to. I am very unsure how to handle this sub -connection. I have a number of thoughts... all bad: 1. Set up connection pools to ALL possible databases (there are less than 10), at the start in the application scope. 2. Set up a dedicated connection in the session scope. 3. Set up a dedicated connection in the request scope (cgi style). I don't like any of these answers. Anybody have experience of this sort of dynamic database connection or have any thoughts. Regards, File: ATT00047.txtFile: ATT203342.txt -- To unsubscribe, e-mail:
RE: [ANN] Chapter 18 of the O'Reilly Struts book now available
It was supposed to be now. I'm a terrible editor of my own writing, as most of you can attest :) Chuck 18 before renumbering), it is not chapter 15 and can be ^^^ Was that not or now? James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 11:13 AM To: Struts Users Mailing List Subject: RE: [ANN] Chapter 18 of the O'Reilly Struts book now available The chapters got reshuffled after I had to cut several due to time and size. Which chapter topic are you referring to? If you are referring to Logging (chapter 18 before renumbering), it is not chapter 15 and can be downloaded from http://www.theserverside.com/resources/strutsreview.jsp Chuck I'd love to read Chapter 18 ... anyone have a copy? -Original Message- From: Steinar Bang [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 9:48 AM To: [EMAIL PROTECTED] Subject: Re: [ANN] Chapter 18 of the O'Reilly Struts book now available Steinar Bang [EMAIL PROTECTED]: Chuck Cavaness [EMAIL PROTECTED]: I think it's taking them a long time to figure out which animal they want on the cover :) Struts is Norwegian for ostrich, so a big flightless bird is my suggestion. Much to late appearently. They have chosen a horse of some sort. Interestingly the posted amazon link listed four other Struts books that I hadn't heard about. Probably because none of them have been published yet...:-) All 5 books will be published from September through November of this year. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help - xml to pdf using struts
RE: Help - xml to pdf using strutsMike, Did you set the content type to application/pdf and then return null from you action once you successfully completed the transformation? That is what we do and it appears to work fine. Regards, Todd G. Nist try { // FO/Transformation code here ByteArrayOutputStream pdf = new ByteArrayOutputStream(); // show PDF response.setContentType(application/pdf); byte[] content = pdf.toByteArray(); response.setContentLength(content.length); response.getOutputStream().write(content); response.getOutputStream().flush(); } // return null from action return null; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 11:43 AM To: [EMAIL PROTECTED] Subject: RE: Help - xml to pdf using struts Hi Lisa, That looks similar to my solution. The biggest problem I had was with getting IE to display the PDF inline without a PDF in the URL Using a Struts action, I wasn't able to get the URL to change at the appropriate time with a redirect. In the end, I sent the pdf as an attachment which gives the open/save prompt. Were you able to get around this problem? Thanks, Mike -Original Message- From: Lisa van Gelder [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 4:52 AM To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts Here is the bit of my action that deals with the pdf creation. First I transform xml to fo using xsl (and Xalan). The result is written to an InputSteam, which is passed into FOP. The result from FOP is then written out the client and the content type is set to application/pdf. HTH Lisa -Original Message- From: Zimmer, Robin (SSABSA) [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 09:37 To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts Lisa, That sounds can you provide an example action please. -Original Message- From: Lisa van Gelder [mailto:[EMAIL PROTECTED]] Sent: Thursday, 15 August 2002 6:01 PM To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts I do the xml - fo - pdf transformation in an Action, and then stream the result straight back to the browser. Lisa -Original Message- From: Zimmer, Robin (SSABSA) [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 09:28 To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts Thanks for getting back to me. I appreciate that I have to have xsl:fo to transform the xml, but how best to render this using jsp??? Or do I need a servlet??? -Original Message- From: David WIlkinson [mailto:[EMAIL PROTECTED]] Sent: Thursday, 15 August 2002 5:57 PM To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts We had to address a similar issue of creating pdf's from xml and found that it can be done in a simple way using xsl:fo to transform the xml. Check out http://xml.apache.org/fop/index.html for more info. -Original Message- From: Zimmer, Robin (SSABSA) [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 08:13 To: '[EMAIL PROTECTED]' Subject: Help - xml to pdf using struts I am in the last stages of implementating a Struts application. I now have to complete the reporting side. This basically consists of displaying xml output as HTML or PDF. I have the HTML side covered (I am using jakarta XTags) but how do I render an xml to fo transformation to pdf by using struts. I am aware of stxx but as far as I can see you have to override the actionservlet etc and this seems an overhead for what is a small part of the app. Can anyone please give some suggestions. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] begin 666 ATT00066.htm M/%$3T-465!%($A434P@4%53$E#((M+R]7,T,O+T141!(5$U,(#0N,!4 MF%NVET:6]N86PO+T5.(CX-CQ(5$U,/CQ(14%$/@T*/$U%5$$@2%144U% M455)5CTB0V]N=5N=U47!E(B!#3TY414Y4/2)T97AT+VAT;6P[(-H87)S M970]:7-O+3@X-3DM,2(^#0H\5$E43$4^4D4Z($AE;' @+2!X;6P@=\@1F M('5S:6YG('-TG5TSPO5$E43$4^#0H-CQ-151!(-O;G1E;G0](DU32%1- M3 U+C4P+C0Y,3(N,S P(B!N86UE/4=%3D52051/4CX\+TA%040^#0H\0D]$ M63X-CQ$258^/%-004X@8VQAW,],34Q-3,R,S$W+3$V,#@R,# R/CQ3TY4 M(9A8V4]07)I86P@8V]L;W(](S P,#!F9B -G-IF4],CY-:6ME+#PO1D]. M5#X\+U-004X^/]$258^#0H\1$E6/CQ34$%.(-L87-S/3$U,34S,C,Q-RTQ M-C X,C
RE: EJB
Great reviews on Amazon...how'd you like it? Mark (Back from the islands, mon) -Original Message- From: V. Cekvenich [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 11:14 AM To: Struts Users Mailing List Subject: Re: EJB Yup. Darren Hill wrote: Is this the same Cekvenich who's book I just finished reading? -Original Message- From: V. Cekvenich [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 10:23 AM To: Struts Users Mailing List Subject: Re: EJB http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg62678.html See above thread. Consider making it easier to replace the EJBs, should you need to. v. Darren Hill wrote: Hi All, I know its Friday, but I'm leaving 'on a jet plane' to Newfoundland and I have a few questions. I'm creating an application that uses Entity EJB's ( and Stateless Session Beans as an service layer ) and want to know how I can convey the data in those EJB's onto a jsp. Do I REALLY need to create a corresponding ActionForm that duplicates the data in the EJB? I don't want pass the EJB's to the JSP layer ( BIG NO NO ). Can I make use of the DynaActionForms? -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: August 16, 2002 8:58 AM To: [EMAIL PROTECTED] Subject: Re: data Structure to use for a list of data ArrayList of Java Beans However, I have tested sucessfully ArrayList of dynabeans (from Commons/BeanUtils package). By using dynabeans you would not need to create specific JavaBean classes for each type of data row. Adolfo. From: Mazza, Glen R, PERSCOM [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: data Structure to use for a list of data Date: Fri, 16 Aug 2002 08:23:48 -0400 Hello, Very common master-detail pattern: User enters a query and gets a multi-column master list of items matching that query. Then the user selects an item in the list to get to a detail form on that item. The query/JDBC and detail form I can handle, but what Java data structure (created in the action object) should I use to hold the master list items: assume about 4-5 column items, one of them supplying data for the hyperlink: link id=1 Last Name, First Name Address Email etc. link id=2 Last Name, First Name Address Email etc. link id=3 Last Name, First Name Address Email etc. Struts-related issues: (1) I expect to use the Iterator tag for multi-page returns, I'm unsure if that would affect the data structure chosen. (2) I'm also interested in ease of display on the subsequent master list page, so I would like a data structure that can be easily manipulated by the Struts tag libraries in rendering the page. Thanks, Glen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help - xml to pdf using struts
Hi Mike I originally sent the pdf as an attachment as well, but found that if the user clicked save instead of open the pdf wasn't saved correctly and couldn't be opened. If the pdf was opened straight away and then saved it saved fine. Does your implementation not have this problem? I would be interested to see how you are doing it. :) I haven't had a problem with IE opening the pdf file even though the url doesn't have a .pdf on the end. It opens fine in the browser window. Netscape still prompts you to choose open or save but when you save straight away from Netscape it works fine. (Netscape worked fine the other way too.) Oh, and I return null from my action just like Todd suggests. Lisa -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 16 August 2002 16:43 To: [EMAIL PROTECTED] Subject: RE: Help - xml to pdf using struts Hi Lisa, That looks similar to my solution. The biggest problem I had was with getting IE to display the PDF inline without a PDF in the URL Using a Struts action, I wasn't able to get the URL to change at the appropriate time with a redirect. In the end, I sent the pdf as an attachment which gives the open/save prompt. Were you able to get around this problem? Thanks, Mike -Original Message- From: Lisa van Gelder [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 4:52 AM To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts Here is the bit of my action that deals with the pdf creation. First I transform xml to fo using xsl (and Xalan). The result is written to an InputSteam, which is passed into FOP. The result from FOP is then written out the client and the content type is set to application/pdf. HTH Lisa -Original Message- From: Zimmer, Robin (SSABSA) [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: 15 August 2002 09:37 To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts Lisa, That sounds can you provide an example action please. -Original Message- From: Lisa van Gelder [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thursday, 15 August 2002 6:01 PM To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts I do the xml - fo - pdf transformation in an Action, and then stream the result straight back to the browser. Lisa -Original Message- From: Zimmer, Robin (SSABSA) [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: 15 August 2002 09:28 To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts Thanks for getting back to me. I appreciate that I have to have xsl:fo to transform the xml, but how best to render this using jsp??? Or do I need a servlet??? -Original Message- From: David WIlkinson [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thursday, 15 August 2002 5:57 PM To: 'Struts Users Mailing List' Subject: RE: Help - xml to pdf using struts We had to address a similar issue of creating pdf's from xml and found that it can be done in a simple way using xsl:fo to transform the xml. Check out http://xml.apache.org/fop/index.html http://xml.apache.org/fop/index.html for more info. -Original Message- From: Zimmer, Robin (SSABSA) [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: 15 August 2002 08:13 To: '[EMAIL PROTECTED]' Subject: Help - xml to pdf using struts I am in the last stages of implementating a Struts application. I now have to complete the reporting side. This basically consists of displaying xml output as HTML or PDF. I have the HTML side covered (I am using jakarta XTags) but how do I render an xml to fo transformation to pdf by using struts. I am aware of stxx but as far as I can see you have to override the actionservlet etc and this seems an overhead for what is a small part of the app. Can anyone please give some suggestions. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: Connection pool question
Thanks for help, it's little bit more clear than mud now. I'll search the archives. Jf Robert Taylor wrote: Hmmm...let me clarify. First JDNI is supposed to be JNDI (dyslexia sets in). Second, when I said Struts does not (yet?) support JNDI lookups, I meant that the Struts framework does not bind the datasources that can be defined in struts-config.xml to the InitialContext. Within Struts, you can use JNDI to look up data sources, but you have to have some mechanism that binds the data sources to the InitialContext. As mentioned earlier, Craig has stated some best practices for accessing data sources in a web application. I don't know the thread off hand, but you should be able to find it in the archives. robert -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 12:12 PM To: Struts Users Mailing List Subject: RE: Connection pool question Jan, Struts, itself, does not (yet?) support JDNI lookups, although the Servlet2.3 spec mandates that container must. So you must define your datasources to your servlet container. The manner in which this is implemented is not standardized, so it depends on your application server / servlet container. I use ServletExec (http://www.newatlanta.com/products/servletexec/) and the admin ui allows me to define data sources so when my web app boots up, they are available via a JNDI lookup (see example in this thread). I'm not sure how this is done in Tomcat, although I'm very sure many others on this list know, or it is probably well documented in Tomcat. HTH, robert -Original Message- From: Jan Fetyko [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:32 AM To: Struts Users Mailing List Subject: Re: Connection pool question Robert, How would I define the DB connection in struts-config.xml so it's accessible through the syntax you provided bellow ? I'm sorry but this is very new to me, so some poor level questions might follow. Jf Robert Taylor wrote: Standardization: All servlet containers that support the Servlet2.3 spec must provide a way to look up data sources via JNDI. All or most application servers support general object location via JNDI. Simplicity: To look up a data source, all you have is the following code. Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup( jdbc/data source name ); Flexibility: You can define your datasources in some file external to your code, such as a properties or xml file. This allows you to make changes without affecting your code. Decoupling: By accessing your datasources via JNDI lookup, your business objects don't depend on the web tier to provide access via the application, session, or request scope. This makes them reusable in other applications. Those are four reasons I can think of. There are probably more. Craig, has discussed the best practices way of using data sources in Struts. You may want to browser the archives. HTH, robert -Original Message- From: Howard Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 7:33 AM To: 'Struts Users Mailing List' Subject: RE: Connection pool question Thanks, I don't know much about JNDI (apart from in general terms what it is); why would doing it this way be a good thing? Howard -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 12:10 To: Struts Users Mailing List Subject: RE: Connection pool question One solution might be to define several datasources in your application/servlet container where each datasource corresponds to its respective database. Then use JNDI to access the datasources from your application. robert -Original Message- From: Howard Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 6:47 AM To: '[EMAIL PROTECTED]' Subject:Connection pool question Hi, Newbie, JDBC connection pool question: My application uses a central control database. This is ok, and I can see how to use a connection pool for my application to access this. BUT... The application allows a user to recover data from a range of additional databases. That is the central database verified logins etc and then lists a number of databases for the user to connect to. I am very unsure how to handle this sub -connection. I have a number of thoughts... all bad: 1. Set up connection pools to ALL possible databases (there are less than 10), at the start in the application scope. 2. Set up a dedicated connection in the session scope. 3. Set up a dedicated connection in the request scope (cgi style). I don't like any of these answers. Anybody have experience of this sort of dynamic database connection or have any thoughts. Regards, File: ATT00047.txtFile: ATT203342.txt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To
RE: Connection pool question
On Fri, 16 Aug 2002, Robert Taylor wrote: Date: Fri, 16 Aug 2002 12:12:16 -0400 From: Robert Taylor [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Connection pool question Jan, Struts, itself, does not (yet?) support JDNI lookups, although the Servlet2.3 spec mandates that container must. So you must define your datasources to your servlet container. The manner in which this is implemented is not standardized, so it depends on your application server / servlet container. Struts doesn't *need* to support JNDI lookups itself -- if your container supports them (which Tomcat 4 does, as does any J2EE app server), then Struts-based apps can use them. I use ServletExec (http://www.newatlanta.com/products/servletexec/) and the admin ui allows me to define data sources so when my web app boots up, they are available via a JNDI lookup (see example in this thread). I'm not sure how this is done in Tomcat, although I'm very sure many others on this list know, or it is probably well documented in Tomcat. You configure JNDI resources in server.xml (or, in 4.1 you can use the admin tool). Detailed docs for your favorite version: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html HTH, robert Craig -Original Message- From: Jan Fetyko [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:32 AM To: Struts Users Mailing List Subject: Re: Connection pool question Robert, How would I define the DB connection in struts-config.xml so it's accessible through the syntax you provided bellow ? I'm sorry but this is very new to me, so some poor level questions might follow. Jf Robert Taylor wrote: Standardization: All servlet containers that support the Servlet2.3 spec must provide a way to look up data sources via JNDI. All or most application servers support general object location via JNDI. Simplicity: To look up a data source, all you have is the following code. Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup( jdbc/data source name ); Flexibility: You can define your datasources in some file external to your code, such as a properties or xml file. This allows you to make changes without affecting your code. Decoupling: By accessing your datasources via JNDI lookup, your business objects don't depend on the web tier to provide access via the application, session, or request scope. This makes them reusable in other applications. Those are four reasons I can think of. There are probably more. Craig, has discussed the best practices way of using data sources in Struts. You may want to browser the archives. HTH, robert -Original Message- From: Howard Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 7:33 AM To: 'Struts Users Mailing List' Subject: RE: Connection pool question Thanks, I don't know much about JNDI (apart from in general terms what it is); why would doing it this way be a good thing? Howard -Original Message- From:Robert Taylor [mailto:[EMAIL PROTECTED]] Sent:15 August 2002 12:10 To: Struts Users Mailing List Subject: RE: Connection pool question One solution might be to define several datasources in your application/servlet container where each datasource corresponds to its respective database. Then use JNDI to access the datasources from your application. robert -Original Message- From: Howard Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 6:47 AM To: '[EMAIL PROTECTED]' Subject:Connection pool question Hi, Newbie, JDBC connection pool question: My application uses a central control database. This is ok, and I can see how to use a connection pool for my application to access this. BUT... The application allows a user to recover data from a range of additional databases. That is the central database verified logins etc and then lists a number of databases for the user to connect to. I am very unsure how to handle this sub -connection. I have a number of thoughts... all bad: 1. Set up connection pools to ALL possible databases (there are less than 10), at the start in the application scope. 2. Set up a dedicated connection in the session scope. 3. Set up a dedicated connection in the request scope (cgi style). I don't like any of these answers. Anybody have experience of this sort of dynamic database connection or have any thoughts. Regards, File: ATT00047.txtFile: ATT203342.txt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Connection pool question
On Fri, 16 Aug 2002, Robert Taylor wrote: Date: Fri, 16 Aug 2002 12:27:10 -0400 From: Robert Taylor [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Connection pool question Hmmm...let me clarify. First JDNI is supposed to be JNDI (dyslexia sets in). Second, when I said Struts does not (yet?) support JNDI lookups, I meant that the Struts framework does not bind the datasources that can be defined in struts-config.xml to the InitialContext. Within Struts, you can use JNDI to look up data sources, but you have to have some mechanism that binds the data sources to the InitialContext. That mechanism is provided by your container. It's nothing that an application (or an application framework) needs to worry about. Craig As mentioned earlier, Craig has stated some best practices for accessing data sources in a web application. I don't know the thread off hand, but you should be able to find it in the archives. robert -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 12:12 PM To: Struts Users Mailing List Subject: RE: Connection pool question Jan, Struts, itself, does not (yet?) support JDNI lookups, although the Servlet2.3 spec mandates that container must. So you must define your datasources to your servlet container. The manner in which this is implemented is not standardized, so it depends on your application server / servlet container. I use ServletExec (http://www.newatlanta.com/products/servletexec/) and the admin ui allows me to define data sources so when my web app boots up, they are available via a JNDI lookup (see example in this thread). I'm not sure how this is done in Tomcat, although I'm very sure many others on this list know, or it is probably well documented in Tomcat. HTH, robert -Original Message- From: Jan Fetyko [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 9:32 AM To: Struts Users Mailing List Subject: Re: Connection pool question Robert, How would I define the DB connection in struts-config.xml so it's accessible through the syntax you provided bellow ? I'm sorry but this is very new to me, so some poor level questions might follow. Jf Robert Taylor wrote: Standardization: All servlet containers that support the Servlet2.3 spec must provide a way to look up data sources via JNDI. All or most application servers support general object location via JNDI. Simplicity: To look up a data source, all you have is the following code. Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup( jdbc/data source name ); Flexibility: You can define your datasources in some file external to your code, such as a properties or xml file. This allows you to make changes without affecting your code. Decoupling: By accessing your datasources via JNDI lookup, your business objects don't depend on the web tier to provide access via the application, session, or request scope. This makes them reusable in other applications. Those are four reasons I can think of. There are probably more. Craig, has discussed the best practices way of using data sources in Struts. You may want to browser the archives. HTH, robert -Original Message- From: Howard Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 7:33 AM To: 'Struts Users Mailing List' Subject: RE: Connection pool question Thanks, I don't know much about JNDI (apart from in general terms what it is); why would doing it this way be a good thing? Howard -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 12:10 To:Struts Users Mailing List Subject: RE: Connection pool question One solution might be to define several datasources in your application/servlet container where each datasource corresponds to its respective database. Then use JNDI to access the datasources from your application. robert -Original Message- From: Howard Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 6:47 AM To: '[EMAIL PROTECTED]' Subject:Connection pool question Hi, Newbie, JDBC connection pool question: My application uses a central control database. This is ok, and I can see how to use a connection pool for my application to access this. BUT... The application allows a user to recover data from a range of additional databases. That is the central database verified logins etc and then lists a number of databases for
RE: Friday (almost funny) Humor
ROTFLMAO!! Mark -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 12:02 PM To: Struts Users Mailing List Subject: Friday (almost funny) Humor Its funny what a little 'search and replace' can do..LOL *** HEADLINE NEWS *** Microsoft Bashing Now Considered a Hate Crime Washington DC - George W. Bush signed into law yesterday legislation that makes Microsoft bashing an offense covered under the hate crime statute. Anyone convicted of Microsoft bashing will now face Federal charges. The law is in response to the recent beating of a student at the University of Colorado by a Sun Certified Java Developer. When asked for comment, Blurg Stevens who has been charged with the crime said, He kept shoving his new laptop in my face. He was playing 'Who's your Daddy now? My little Java-Bitch' mp3 (The new hit by Roadkill) on Windows Media Player. It was really getting to me. I just (pause) couldn't help myself!. Law enforcement officials have been given some guidelines to follow when determining if a crime is covered by the statute. For example if a person beats someone to death with a hammer they would potentially face murder charges only in a state court. However, if a person beats someone to death with a hammer while yelling You .Net developing bastard, then they would be charged under the hate crimes statute and face trial in a Federal court. Many oppose the law, because they feel that it is unfairly targeted at one particular group. This makes it near impossible to do our job properly without breaking the law, said Sun's PR representative Reid Tarded, the Feds are taking away one of our most useful tools. It is commonly believed that 70% of the development population are Microsoft users. Web Developers who develop with the Jakarta Struts framework often hide their use from friends and family members. Meeting other developers only in bars, IRC channels, or mailing lists. Developers who openly use Struts often face extreme prejudice and discrimination from co-workers and IT departments but say that this bigotry must be confronted. I've never been beaten because of my open sourcedness, but I get a lot of 'Microsoft sucks' comments, said Mark Galbreath, I'm glad the statute is there to protect me. Others in the Microsoft community were confused by the ruling. I went to Microsoft Bash 2000 and it was one helluva party. The feds shouldn't be stopping that, said Dumbas A. Rock. In related news, developers using Microsoft's new .Net framework are now covered under the Americans with Disabilities Act. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Friday (almost funny) Humor
James that is the funniest thing I have read in a long while!! Happy Friday to you! Its funny what a little 'search and replace' can do..LOL *** HEADLINE NEWS *** Microsoft Bashing Now Considered a Hate Crime Washington DC - George W. Bush signed into law yesterday legislation that makes Microsoft bashing an offense covered under the hate crime statute. Anyone convicted of Microsoft bashing will now face Federal charges. The law is in response to the recent beating of a student at the University of Colorado by a Sun Certified Java Developer. When asked for comment, Blurg Stevens who has been charged with the crime said, He kept shoving his new laptop in my face. He was playing 'Who's your Daddy now? My little Java-Bitch' mp3 (The new hit by Roadkill) on Windows Media Player. It was really getting to me. I just (pause) couldn't help myself!. Law enforcement officials have been given some guidelines to follow when determining if a crime is covered by the statute. For example if a person beats someone to death with a hammer they would potentially face murder charges only in a state court. However, if a person beats someone to death with a hammer while yelling You .Net developing bastard, then they would be charged under the hate crimes statute and face trial in a Federal court. Many oppose the law, because they feel that it is unfairly targeted at one particular group. This makes it near impossible to do our job properly without breaking the law, said Sun's PR representative Reid Tarded, the Feds are taking away one of our most useful tools. It is commonly believed that 70% of the development population are Microsoft users. Web Developers who develop with the Jakarta Struts framework often hide their use from friends and family members. Meeting other developers only in bars, IRC channels, or mailing lists. Developers who openly use Struts often face extreme prejudice and discrimination from co-workers and IT departments but say that this bigotry must be confronted. I've never been beaten because of my open sourcedness, but I get a lot of 'Microsoft sucks' comments, said Mark Galbreath, I'm glad the statute is there to protect me. Others in the Microsoft community were confused by the ruling. I went to Microsoft Bash 2000 and it was one helluva party. The feds shouldn't be stopping that, said Dumbas A. Rock. In related news, developers using Microsoft's new .Net framework are now covered under the Americans with Disabilities Act. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection pool question
which Tomcat 4 does, as does any J2EE app server Well Craig, there where many of us who could not get it running with 4.0x The lookup was null! Some succeeded using 4.1x. Rainer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Passing Struts parameters to JavaScript functions.
Please see if the attached example code can help. Mei -Original Message- From: Ray [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 8:06 AM To: Struts Users Mailing List Subject: Re: Passing Struts parameters to JavaScript functions. Yes, that would be great, except that I'm reading the stuf from a collection, which might be quite large. I was wondering if there was a way to do it, without having to have twenty or thirty hidden fields on the form. At 08:39 16/08/2002 -0500, you wrote: Ray Don't pass the value to Javascript. Put the value of id in a hidden field in the form then Javascript can get the value via document.formName.hiddenFiledName.value. Later, aj Ray wrote: Hi there ... :-) I was hoping someone could help me with a validation problem. I'm trying to build a simple page that deletes an item from a database, when the user clicks on the delete link. Before going on to delete the item though, I need to ask the user if she's sure that she wants to delete the item. I thought the easiest way to do this, was a JavaScript call that would display a dialog: html:link onclick=askDelete(bean:write name=myCollectionElement property=id/)delete/html:link I'm trying to pass the bean value to the askDelete function, but the syntax is shafted. How do I go about doing this? My next problem would be calling the deleteItem.do method from Javascript, whilst making sure that the URL-rewriting stuff stays intact. Is there in fact, a better way to do this? I've heard of something called the Validation Framework, which works clientside. Are there any tutorials on using it? __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] script //Constructs the array holding taxcode and percent value var taxes = new Array(); var uomConversions = new Array(); //holds the touom as key, conversion factor as value % //jsp script block to populate the javascript array. //TaxRate and UomConversion are java classes. TaxRate[] rates = (TaxRate[])request.getAttribute(taxRates); out.println(taxes['']='0.0'); for (int i=0; irates.length; i++) { out.println(taxes[' + rates[i].getId() + '] = ' + rates[i].getPercent() + ';); } UomConversion[] conversions = (UomConversion[]) request.getAttribute(uomConversions); out.println(uomConversions[' + conversions[0].getFromUom() + '] = \'1.0'); for (int i=0; iconversions.length; i++) { out.println(uomConversions[' + conversions[i].getToUom() + '] = ' + conversions[i].getConvertFactor() + ';); } % function setConvertFactor(){ if (! validateFields()) { return false; } var uomVal = document.forms[0].uom.value; var factor = uomConversions[uomVal]; //here it uses the array uomConversions if (factor != null) { document.forms[0].convertFactor.value = factor; } document.forms[0].convertFactor.focus(); } function setTaxAmount() { doCalculate(); var total = parseString(document.forms[0].totalPrice.value); var taxRate = taxes[document.forms[0].taxCode.value]; //here it uses the array taxes var tax = 0.0; if (taxRate != null) { tax = taxRate * total/100; } document.forms[0].taxAmount.value = formatMoney(tax); doCalculate(); } /script -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]