Re: upload validation failures are blanking my form values
On Friday 12 March 2004 19:43, you wrote: Greetings, I was browsing through the Struts mail lists and found the thread that you started. I am having the exact same problem. Do you know of a work around or fix for this problem? TIA, Craig user ignorance mate. i filed a bug, http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24503 you can voice your support and maybe someone in the team will have a look at it. Otherwise someone else emailed me a couple of monthes ago *rummages around* -- I just ran into the same problem... and googled up your unanswered query. But I think I just figured it out... in the stuts config set the property for the file element to org.apache.struts.upload.FormFile not to java.lang.String. Then in the action class or form or wherever you need to do it cast it back from object. Thats my guess. I bet you already figured that out. :) -- To be honest, I'm not sure he even had the same problem as me, so I don't know if that will help you (it doesn't help me). Let me know if you find a solution or persuade someone to fix it. c - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: upload validation failures are blanking my form values
On Friday 12 March 2004 20:27, you wrote: Thanks for the reply. Nice to know I'm not alone. I found a suggested work around that involved using JavaScript to alter the HTML form's action attribute by appending the the values you want to remember as parameters. See http://mail-archives.apache.org/eyebrowse/ReadMsg?listId= 42msgNo=54731 for details. Happy sailing! Craig aaah. Now I hate Javascript, but my colleague at work will love that hacked script you linked to. I'm gonna CC again to the struts list in the hope other people are also able to make good use of your good digging. later, c - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Prelogon Action to init a List
Hi, your best be would be to make a /GoTo/LoginPage action (using whatever nomenclature you have) that makes this list for you. This is a good design principle anyway because you should avoid exposing jsp pages directly to the end user. For example, I have an index.jsp page at the root of my applications (where users are directed by apache), that is empty except for a logic:forward tag which sends every user to this action. The actual login jsp page is then in a separate location that the user is never aware of. does that help? c ps yes, you could also modify the checklogontag to forward to an action. pps never put business logic in a form. On Monday 24 November 2003 15:16, Hunziker Dennis wrote: Hello To initialize a list for a drop-down element at our logonpage (logon.jsp), we need a prelogon action. The problem i have is that the connection i use to fill this list is stored in the session, so i cant init the list in our logonform. Question: How would you do that? Is it possible to forward from the CheckLogonTag (Same as the CheckLogonTag in the struts example webapp) to another action? Kind regards Dennis Hunziker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Turn off javascript validation generation
yes, check the site docs, but basically submit as you would when you don't want validation. also you could do this, html:javascript formName=XForm dynamicJavascript=true staticJavascript=false/ script language=Javascript1.1 src=% =request.getContextPath()%/pages/staticJavascript.jsp/ script where staticJavascript.jsp contains %@ page language=java % %-- set document type to Javascript (addresses a bug in Netscape according to a web resource --% %@ page contentType=application/x-javascript % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % html:javascript dynamicJavascript=false staticJavascript=true/ that will cache 99.9% of the javascipt you're complaining about. c On Tuesday 18 November 2003 23:17, Wendy Smoak wrote: Is there a way to turn off all (750 lines!) of the JavaScript that gets generated for form validation? Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ProcessAction and RESULT attribute
no no no. by RESULT i think it must mean the processResult object. what happens is :- ProcessAction will try a getName() on your ProcessResult object and to and set an attribute in the request (or session if you specify) with that name. if getName() returns null it will try and use the attribute property for the action in your struts-config instead. hope that helps. oh yeah, and DON'T RELY ON THE BOOK. read the source. c On Tuesday 18 November 2003 20:54, Felipe Nascimento wrote: Hi, I really needed to know how ProcessAction acts. Struts In Action says The ProcessAction will than just save the ResultList collection in request scope, using the default RESULT attribute name, and forward control to success.. The problem is that i am not getting a RESULT attribute in my jsp. Please, anyone Tks Felipe --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.538 / Virus Database: 333 - Release Date: 10/11/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: file upload
i've not used dynaforms with fileupload so if that is the problem I couldn't say. you could try it with a normal formBean. However as the problem is trying to set a formfile using a string it looks like the problem could be in your jsp. have you set the enctype like below, html:form action=/blah enctype=multipart/form-data and the form property using html:file rather than html:text html:file property=pb_file/ goodluck, c On Friday 14 November 2003 13:38, sairam manda wrote: Hello Sir, I am new to sturts . I want to upload a file . I am using dynaform . these are snippets in the dynaform I used form-property name=pb_file type=org.apache.struts.upload.FormFile/ and in my action class I used the following code FormFile file = (FormFile) form.get(pb_file); I get the following error org.apache.commons.beanutils.ConversionException: Cannot assign value of type 'java.lang.String' to property 'pb_file' of type 'org.apache.struts.upload.FormFile' org.apache.struts.action.DynaActionForm.set(DynaActionFo rm.java:423) org.apache.commons.beanutils.PropertyUtils.setSimplePrope rty(PropertyUtils.java:1769) org.apache.commons.beanutils.PropertyUtils.setNestedPrope rty(PropertyUtils.java:1684) org.apache.commons.beanutils.PropertyUtils.setProperty(Pr opertyUtils.java:1713) org.apache.commons.beanutils.BeanUtils.setProperty(BeanUt ils.java:1019) org.apache.commons.beanutils.BeanUtils.populate(BeanUtils .java:808) org.apache.struts.util.RequestUtils.populate(RequestUtils .java:1252) org.apache.struts.action.RequestProcessor.processPopulate (RequestProcessor.java:821) org.apache.struts.action.RequestProcessor.process(Request Processor.java:254) org.apache.struts.action.ActionServlet.process(ActionServ let.java:1482) org.apache.struts.action.ActionServlet.doPost(ActionServl et.java:525) javax.servlet.http.HttpServlet.service(HttpServlet.java:7 63) javax.servlet.http.HttpServlet.service(HttpServlet.java:8 56) can somebody make me waware of the problem. regards sairam _ Enjoy shopping online? Get this e credit card. http://server1.msn.co.in/features/amex/ It cuts cost adds value! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File upload problem with Struts 1.1
have you got the commons-upload jar in your lib dir? you need that as well as the struts jars. Also check your controller (in struts-config) has something like this (though i think it's optional actually), controller maxFileSize=300K / c On Wednesday 12 November 2003 08:18, Raman Garg wrote: Hi, We are getting error while file uploading using struts 1.1. We have a demo code for file uploading which demostrates the file uploading using struts. When we run there application code works fine but when we submit the form by setting enctype for the form it throws the following error. (Remember we are not doing anything in the action or in the form just getteer and setters) so issue is with enctype settings. It may use some internal class while sending data using enctype. Please advise us what to do. We downloaded the sample file uploading code from : http://forum.exadel.com/viewtopic.php?t=120 But according to me the problem can be with setting of enctype. follwoing is the code for our form html:form action=/ImageUploadSubmit enctype=multipart/form-data html:file property=fileName/ br html:submit value=Upload/ /html:form java.lang.NoSuchMethodError: org.apache.commons.fileupload.FileUpload.setSizeMax (I)V at org.apache.struts.upload.CommonsMultipartRequestHandler.h andleRequest (CommonsMultipartRequestHandler.java:219) at org.apache.struts.util.RequestUtils.populate(RequestUtils .java:1055) at org.apache.struts.action.RequestProcessor.processPopulate (RequestProcessor.java:798) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:254) at org.apache.struts.action.ActionServlet.process (ActionServlet.java:1422) at org.apache.struts.action.ActionServlet.doPost(ActionServl et.java:523) at javax.servlet.http.HttpServlet.service(HttpServlet.java:7 60) at com.tavant.lg.controller.servlet.LoanGeniusFrontControlle rServlet.service (LoanGeniusFrontControllerServlet.java:81) at javax.servlet.http.HttpServlet.service(HttpServlet.java:8 53) at weblogic.servlet.internal.ServletStubImpl$ServletInvocati onAction.run (ServletStubImpl.java:1053) at weblogic.servlet.internal.ServletStubImpl.invokeServlet (ServletStubImpl.java:387) at weblogic.servlet.internal.ServletStubImpl.invokeServlet (ServletStubImpl.java:305) at weblogic.servlet.internal.WebAppServletContext$ServletInv ocationAction.run (WebAppServletContext.java:6291) at weblogic.security.acl.internal.AuthenticatedSubject.doAs (AuthenticatedSubject.java:317) at weblogic.security.service.SecurityManager.runAs (SecurityManager.java:97) at weblogic.servlet.internal.WebAppServletContext.invokeServ let (WebAppServletContext.java:3575) at weblogic.servlet.internal.ServletRequestImpl.execute (ServletRequestImpl.java:2573) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java: 178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151) == Any Suggestion or help will be highly appreciated. Best Regards Raman Garg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XML importing :
if you're using it on a small scale (or for unit testing like me) then dbunit (www.dbunit.org) is a great tool that integrates with ant very well. c On Tuesday 11 November 2003 13:54, [EMAIL PROTECTED] wrote: Sorry for a unrelated question, but is there a easy way of taking xml data and importing it into a relational database some like person nameMike/name /person gets translated as insert into user values (Mike) etc.. Mike * *** The information in this message is confidential and may be legally privileged. It is intended solely for the addressee; access to this email by anyone else is unauthorised. If you are not the intended recipient: (1) you are kindly requested to return a copy of this message to the sender indicating that you have received it in error, and to destroy the received copy; and (2) any disclosure or distribution of this message, as well as any action taken or omitted to be taken in reliance on its content, is prohibited and may be unlawful. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File upload problem with Struts 1.1
hi, are you using a struts nightly build? it appears that might require a different version of commons-upload (cvs probably). c On Wednesday 12 November 2003 11:20, Garg Raman \(SDinc\) wrote: Hi Connor, Thanks for your reply. We have the commons-upload.jar in the lib of our appliction directory and as well the struts.jar. We also have set the Controller size to 2MB which is quite nice for any file. If you want to see the error coming itself we can pass on the URL for our development server Any other suggestion will be appreciated . Looking forward to hear from you. Cheers Raman Garg - Original Message - From: Caoilte O'Connor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:42 PM Subject: Re: File upload problem with Struts 1.1 have you got the commons-upload jar in your lib dir? you need that as well as the struts jars. Also check your controller (in struts-config) has something like this (though i think it's optional actually), controller maxFileSize=300K / c On Wednesday 12 November 2003 08:18, Raman Garg wrote: Hi, We are getting error while file uploading using struts 1.1. We have a demo code for file uploading which demostrates the file uploading using struts. When we run there application code works fine but when we submit the form by setting enctype for the form it throws the following error. (Remember we are not doing anything in the action or in the form just getteer and setters) so issue is with enctype settings. It may use some internal class while sending data using enctype. Please advise us what to do. We downloaded the sample file uploading code from : http://forum.exadel.com/viewtopic.php?t=120 But according to me the problem can be with setting of enctype. follwoing is the code for our form html:form action=/ImageUploadSubmit enctype=multipart/form-data html:file property=fileName/ br html:submit value=Upload/ /html:form java.lang.NoSuchMethodError: org.apache.commons.fileupload.FileUpload.setSizeMax (I)V at org.apache.struts.upload.CommonsMultipartRequestHandl er.h andleRequest (CommonsMultipartRequestHandler.java:219) at org.apache.struts.util.RequestUtils.populate(RequestU tils .java:1055) at org.apache.struts.action.RequestProcessor.processPopu late (RequestProcessor.java:798) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:254) at org.apache.struts.action.ActionServlet.process (ActionServlet.java:1422) at org.apache.struts.action.ActionServlet.doPost(ActionS ervl et.java:523) at javax.servlet.http.HttpServlet.service(HttpServlet.ja va:7 60) at com.tavant.lg.controller.servlet.LoanGeniusFrontContr olle rServlet.service (LoanGeniusFrontControllerServlet.java:81) at javax.servlet.http.HttpServlet.service(HttpServlet.ja va:8 53) at weblogic.servlet.internal.ServletStubImpl$ServletInvo cati onAction.run (ServletStubImpl.java:1053) at weblogic.servlet.internal.ServletStubImpl.invokeServl et (ServletStubImpl.java:387) at weblogic.servlet.internal.ServletStubImpl.invokeServl et (ServletStubImpl.java:305) at weblogic.servlet.internal.WebAppServletContext$Servle tInv ocationAction.run (WebAppServletContext.java:6291) at weblogic.security.acl.internal.AuthenticatedSubject.d oAs (AuthenticatedSubject.java:317) at weblogic.security.service.SecurityManager.runAs (SecurityManager.java:97) at weblogic.servlet.internal.WebAppServletContext.invoke Serv let (WebAppServletContext.java:3575) at weblogic.servlet.internal.ServletRequestImpl.execute (ServletRequestImpl.java:2573) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.j ava: 178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java: 151) == Any Suggestion or help will be highly appreciated. Best Regards Raman Garg --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xdoclet strutsconfigxml thingy
Does anyone who uses XDoclet know how to make it generate struts-config sub-app config files? I've been looking at it and can't work out whether it's covered. c - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xdoclet strutsconfigxml thingy
ok. i have something similar enough. But which bit in that specifies that you have a subapp, ie struts-config-XXX.xml instead of, struts-config.xml and do you put the subapp xml merge files in a sub dir of the root merge dir? or specify them as a separate merge dir in another webdoclet invocation. cheers c On Wednesday 12 November 2003 13:23, [EMAIL PROTECTED] wrote: Yes it is quitte easy: In build.xml target name=xdoclet.web taskdef name=webdoclet classname=xdoclet.modules.web.WebDocletTask classpathref=xdoclet.classpath / webdoclet destdir=${resources.dir}/manager/WEB-INF mergedir=${xdoclet.merge.dir}/manager fileset dir=${classes.dir}/manager includes= **/*Action.java/ fileset dir=${classes.dir}/manager includes= **/*Form.java/ fileset dir=${classes.dir}/manager includes= **/*Servlet.java/ deploymentdescriptor servletspec=${servlet.spec.version} distributable=false sessiontimeout=240 taglib uri=struts-bean location=/WEB-INF/struts-bean.tld / taglib uri=struts-html location=/WEB-INF/struts-html.tld / taglib uri=struts-logic location=/WEB-INF/struts-logic.tld / taglib uri=struts-nested location=/WEB-INF/struts-nested.tld / taglib uri=struts-tiles location=/WEB-INF/struts-tiles.tld / taglib uri=sitemesh-decorator location=/WEB-INF/sitemesh-decorator.tld / taglib uri=sitemesh-page location=/WEB-INF/sitemesh-page.tld / taglib uri=http://jakarta.apache.org/taglibs/jstl/core; location=/WEB-INF/c.tld / taglib uri=http://jakarta.apache.org/taglibs/jstl/fmt; location=/WEB-INF/fmt.tld / /deploymentdescriptor strutsconfigxml version=1.1/ /webdoclet /target In your Java files: * @struts.action * name=changeStateForm * path=/change_state * scope=request * validate=false * @struts.action-forward * name=success * path=/main.jsp * @struts.action-exception * key=advertisement.doesnt.exists.exception * type=nl.informatiefabriek.om.exception.advertisement.Adv ertisementDoesNotExistException * path=/error.jsp * scope=request * @struts.action-exception * key=relation.doesnt.exists.exception * type=nl.informatiefabriek.om.exception.relation.Relation DoesNotExistsException * path=/error.jsp * scope=request */ public class ChangeStateAction extends BaseAction { // your class } Good luck, Regards, Harm de Laat Informatiefabriek The Netherlands Caoilte O'Connor [EMAIL PROTECTED] 11/12/2003 01:11 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To Struts Users Mailing List [EMAIL PROTECTED] cc Subject xdoclet strutsconfigxml thingy Does anyone who uses XDoclet know how to make it generate struts-config sub-app config files? I've been looking at it and can't work out whether it's covered. c - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: upload validation failures are blanking my form values
I've tried all the normal tricks. They don't fix it, because as long as you don't try and upload a file it's not broken to begin with. I'm familiar with all the newbie problems, I've been using struts for two and a half years. thanks the same, I'll see if it's something i can fix in the struts source. it is very obscure. c On Friday 07 November 2003 06:04, muzammil shahbaz wrote: Caoilte, Can you afford session scope in this scenario. There must be no problem in this scope. If not, then try to redirect on the page through the same action class which u use it for preparing it. This will be sort of chaining. Regards, MMS -- From: Caoilte O'Connor [SMTP:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 7:00 PM To: [EMAIL PROTECTED] Subject: Re: upload validation failures are blanking my form values it's not quite the same problem as that guy is having. I don't mind file fields being blanked, because chances are the validation error is from that particular file being too big. my problem is that every single field in the form is being blanked (ie text ones which describe the file too, not just the file one), and that this only happens when you upload a file (ie it won't happen on exactly the same page if you don't try to upload the file and there is a validation error). i think this must be a bug in struts, caoilte On Thursday 06 November 2003 14:33, Susan Bradeen wrote: Maybe this archive thread can help you? http://marc.theaimsgroup.com/?t=10475202833r=1w=2 Susan On 11/06/2003 06:22:05 AM Caoilte O'Connor wrote: Hi, I've got a bizarre bug with the struts-upload tools. Struts-upload works when, 1) everything validates correctly. 2) there is a validation error and you do not attempt to upload a file. but it breaks as soon as i try to upload a file and there is a validation error for any reason. The errors get reported correctly and I get returned to the input page BUT all the form fields are blanked. This does NOT happen if I do not attempt to upload a file. I have confirmed this also happens in the struts-upload example webapp. Has anyone else been infuriated by this bug and found any workarounds? I'm not using a nightly build. cheers, caoilte --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
upload validation failures are blanking my form values
Hi, I've got a bizarre bug with the struts-upload tools. Struts-upload works when, 1) everything validates correctly. 2) there is a validation error and you do not attempt to upload a file. but it breaks as soon as i try to upload a file and there is a validation error for any reason. The errors get reported correctly and I get returned to the input page BUT all the form fields are blanked. This does NOT happen if I do not attempt to upload a file. I have confirmed this also happens in the struts-upload example webapp. Has anyone else been infuriated by this bug and found any workarounds? I'm not using a nightly build. cheers, caoilte - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: upload validation failures are blanking my form values
it's not quite the same problem as that guy is having. I don't mind file fields being blanked, because chances are the validation error is from that particular file being too big. my problem is that every single field in the form is being blanked (ie text ones which describe the file too, not just the file one), and that this only happens when you upload a file (ie it won't happen on exactly the same page if you don't try to upload the file and there is a validation error). i think this must be a bug in struts, caoilte On Thursday 06 November 2003 14:33, Susan Bradeen wrote: Maybe this archive thread can help you? http://marc.theaimsgroup.com/?t=10475202833r=1w=2 Susan On 11/06/2003 06:22:05 AM Caoilte O'Connor wrote: Hi, I've got a bizarre bug with the struts-upload tools. Struts-upload works when, 1) everything validates correctly. 2) there is a validation error and you do not attempt to upload a file. but it breaks as soon as i try to upload a file and there is a validation error for any reason. The errors get reported correctly and I get returned to the input page BUT all the form fields are blanked. This does NOT happen if I do not attempt to upload a file. I have confirmed this also happens in the struts-upload example webapp. Has anyone else been infuriated by this bug and found any workarounds? I'm not using a nightly build. cheers, caoilte --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting current session in ActionForm
you can do it during the reset which is sent the request along with the actionmapping. I believe the Artimus example does some clever locale_key setting like this. c On Thursday 06 November 2003 18:09, Taner Diler wrote: Hi, I get my default values from ActionForm object. But I can not implement localization feature to default values. Because, I can not get current session and struts LOCALE_KEY attribute from session in form object. How can I get current session object in my form object? Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: confirm unsubscribe from struts-user@jakarta.apache.org
On Tuesday 05 August 2003 13:46, [EMAIL PROTECTED] wrote: Hi! This is the ezmlm program. I'm managing the [EMAIL PROTECTED] mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] To confirm that you would like [EMAIL PROTECTED] removed from the struts-user mailing list, please send an empty reply to this address: struts-user-uc.1060087597.llhignackapomcbmgjho-me=caoilte [EMAIL PROTECTED] Usually, this happens when you just hit the reply button. If this does not work, simply copy the address and paste it into the To: field of a new message. or click here: mailto:struts-user-uc.1060087597.llhignackapomcbmgjho-me [EMAIL PROTECTED] I haven't checked whether your address is currently on the mailing list. To see what address you used to subscribe, look at the messages you are receiving from the mailing list. Each message has your address hidden inside its return path; for example, [EMAIL PROTECTED] receives messages with return path: struts-user-return-number[EMAIL PROTECTED] he.org. Some mail programs are broken and cannot handle long addresses. If you cannot reply to this request, instead send a message to [EMAIL PROTECTED] and put the entire address listed above into the Subject: line. --- Administrative commands for the struts-user list --- I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address: To subscribe to the list, send a message to: [EMAIL PROTECTED] To remove your address from the list, send a message to: [EMAIL PROTECTED] Send mail to the following for info and FAQ for this list: [EMAIL PROTECTED] [EMAIL PROTECTED] Similar addresses exist for the digest list: [EMAIL PROTECTED] [EMAIL PROTECTED] To get messages 123 through 145 (a maximum of 100 per request), mail: [EMAIL PROTECTED] To get an index with subject and author for messages 123-456 , mail: [EMAIL PROTECTED] They are always returned as sets of 100, max 2000 per request, so you'll actually get 100-499. To receive all messages with the same subject as message 12345, send an empty message to: [EMAIL PROTECTED] The messages do not really need to be empty, but I will ignore their content. Only the ADDRESS you send to is important. You can start a subscription for an alternate address, for example [EMAIL PROTECTED], just add a hyphen and your address (with '=' instead of '@') after the command word: [EMAIL PROTECTED] g To stop subscription for this address, mail: [EMAIL PROTECTED] org In both cases, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete your subscription. If despite following these instructions, you do not get the desired results, please contact my owner at [EMAIL PROTECTED] Please be patient, my owner is a lot slower than I am ;-) --- Enclosed is a copy of the request I received. Return-Path: [EMAIL PROTECTED] Received: (qmail 28542 invoked from network); 5 Aug 2003 12:46:37 - Received: from zinc.btinternet.com (194.73.73.148) by daedalus.apache.org with SMTP; 5 Aug 2003 12:46:37 - Received: from host217-44-174-234.range217-44.btcentralplus.com ([217.44.174.234] helo=caryatin.mshome.net) by zinc.btinternet.com with esmtp (Exim 3.22 #23) id 19k1D3-0002wl-00 for [EMAIL PROTECTED]; Tue, 05 Aug 2003 13:46:37 +0100 From: Caoilte O'Connor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Tue, 5 Aug 2003 13:46:37 +0100 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: [EMAIL PROTECTED] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
those ace logic jsp tags
Hi, I've been using the if/else/case/switch tags for a while and love them. Is there any chance that they'll ever be incorporated into Struts proper? I've also found one slightly annoying bug. In most languages you can do an, if X and X.Y then where X.Y doesn't get evaluated if X fails (thinks back to uni, possibly making them LR languages?). anyway, I can't do that with the if/else tags, ie I have to do alogic:if name=oldusersportaccess op=present alogic:then alogic:if name=oldusersportaccess property=sportAccess.access value=true op=equal/ alogic:then instead of alogic:if name=oldusersportaccess op=present alogic:and name=oldusersportaccess property=sportAccess.access value=true op=equal/ alogic:then which would be neater. Do you know about this/ is there anything that can be done about it? cheers again. I've had no other problems so far, caoilte - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: those ace logic jsp tags
On Monday 10 February 2003 1:03 pm, Taylor Cowan wrote: there any chance that they'll ever be incorporated into Struts proper? The direction for struts seems to be conformance/reliance on the JSTL as much as possible, therefore, you'd use the JSTL tags with matching functionality. eh? that'll teach me to stop reading the mailing list. Where can I find out more about Struts integration with JSTL? c - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: defeating caching
thanks for the tip, but I've already tried adding that line and people still complain that their proxy servers are caching pages (these are school networks where that's the only way to access the internet). - Is there a particular place in the struts-config where the controller element must go? I have it at the top just below struts-config at the moment. The dtd seems to suggest having it lower but that breaks my action mappings when i reboot. - Could it be that some pages don't have the right tag in and are not getting the expiry tags set correctly. It's possible the web designers have left html:base tags out on some pages. caoilte On Thursday 02 January 2003 6:39 pm, Siggelkow, Bill wrote: Add the following stanza to your struts-config.xml ... controller nocache=true/ -Original Message- From: Caoilte O'Connor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 01, 2003 10:36 PM To: [EMAIL PROTECTED] Subject: defeating caching Hi, Can anyone tell me exactly what options I should set for struts1.1 to defeat web caching. I found the option in the dtd and a few mentions of it in the archives, but no information anywhere on how to set it for all pages the webapp returns. much appreciated, caoilte -- 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]
defeating caching
Hi, Can anyone tell me exactly what options I should set for struts1.1 to defeat web caching. I found the option in the dtd and a few mentions of it in the archives, but no information anywhere on how to set it for all pages the webapp returns. much appreciated, caoilte -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
sessionIDs between servers
Hi, I'm forwarding to a secure server but users are losing their form information when they hit the back button. Presumably the cookie isn't being saved somehow. Can anyone advise me on the best way to maintain the users session ID? Is there an easy way to turn on request based sessions for just that form? or a way to make the cookie last longer? I'm using tomcat4 and struts1.0 thx c -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
the best way to log action hits
Hi, I need to change my webapp to log the number of hits certain actions get and from which session etc etc. Can anyone point me towards the right way to look at doing this. Ideally I would use Log4J or something similar, but I'm a bit worried about having to parse lots of large text files every time my boss wants a gander (especially if he insists on having it done as a jsp page). I know this isn't strictly struts related, but any stabs at how other people have done *in their struts app* appreciated, Caoilte -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]