pop up window to save message
Hello, i have a list of row to dispaly, in each row, there is an attribute comment that i dispplay only a first part of this message and if the user want to see or change all message, if he clicks on this attribute, it opens a popup window in which he can modify this message and save it any one has an idea how develop this?, of course, i will have a bean:write in which i will place a link, the question is about how make a pop out that dispaly a message and permit to the user to change it and save the modification Regards Elyes.
My code working fine on Firefox.But it is not working on IE-7.
Hello everyone, I am working on struts2.0.My code working fine on Firefox.But it is not working on IE-7(same code). Here is a snippet of my code in the jsp: body s:url id=tempMilestoneRemoveURL namespace=/u action=viewConfirm s:param name=messageConfirms:text name=milestone_confirm_remove s:param name=milestoneDTO.name value=%{milestoneDTO.name} / s:param name=milestoneDTO.dividedPoP.name value=%{milestoneDTO.dividedPoP.name} / /s:text /s:param s:param name=yesURLs:url namespace=/p action=removeMilestone s:param name={milestoneDTO.milestoneid value=%{{milestoneDTO.milestoneid} //s:url/s:param s:param name=noURL s:url namespace=/p action=viewEditMilestone / /s:param /s:url s:a href=%{tempMilestoneRemoveURL} style=text-decoration:none buttons:text name=Delete //button/s:a /body If clicks on this Delete link as button, it is working fine on Firefox But it is not working on IE-7. Please help me How to approaching code of IE-7. s:a href=%{tempMilestoneRemoveURL} style=text-decoration:none buttons:text name=Delete //button/s:a Thank you, Seshagiri V seshagi...@kensium.com. US Main: 877 KENSIUM (536.7486) US Fax: 312.242.3029 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: - The information contained in this e-mail is strictly confidential and for the intended use of the addressee only. Any disclosure, use or copying of the information by anyone other than the intended recipient is prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and securely discard this message.
Re: Turning freemarker logging off
Turning off package freemarker or freemarker.cache would do the needful I guess. nodje wrote: Hi, I'm using Struts 2.1.2. I've configured log4j logging with the following line log4j.logger.com.opensymphony.xwork2.ognl=ERROR in order to turn off what seemed to be xwork logging. However, I'm still getting hundreds of line like these: Could not find template in cache, creating new one; id=[template/css_xhtml/form.ftl[en_US,UTF-8,parsed] ] DEBUG [945512...@qtp0-2] cache.debug:81 | Compiling FreeMarker template template/css_xhtml/form.ftl[en_US,UTF-8,parsed] from jar:file:/Users/nodje/Documents/project/allence/alpha2/target/alpha2/WEB-INF/lib/struts2-core-2.1.2.jar!/template/css_xhtml/form.ftl DEBUG [945512...@qtp0-2] cache.debug:81 | Could not find template in cache, creating new one; id=[template/css_xhtml/form-validate.ftl[en_US,UTF-8,parsed] ] What I don't understand is from which class this logging comes from: cache.debug:81 should indicate a class and the calling method. But in cache.debug:81 'cache' is not a class. There must be some centralized system used to perfom logging. Anyone knows where this logging comes from? cheers -nodje -- View this message in context: http://www.nabble.com/Turning-freemarker-logging-off-tp21287074p21623600.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
I18N on labels of form
Hi, I have a problem with internationalization the labels of a form. Writing s:textfield ... label=s:property value=mystring / / doesn't work. Is there a way to implement correct I18N on form labels? Cheers, Michael - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: I18N on labels of form
2009/1/23 Michael Obster mich...@obster.org: Writing s:textfield ... label=s:property value=mystring / / doesn't work. Is there a way to implement correct I18N on form labels? Use key attribute instead s:textfield key=mystring name=myProperty/ or you can use OGNL expression s:textfield label=%{getText('mystring')} namemyProperty/ Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: I18N on labels of form
Thank you! /Michael Lukasz Lenart schrieb: 2009/1/23 Michael Obster mich...@obster.org: Writing s:textfield ... label=s:property value=mystring / / doesn't work. Is there a way to implement correct I18N on form labels? Use key attribute instead s:textfield key=mystring name=myProperty/ or you can use OGNL expression s:textfield label=%{getText('mystring')} namemyProperty/ Regards - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Spring Security method security with struts2 make all request params in action NULL
I need to use method security in my Struts2 application. It works as I want - deny user with no permission and allow access when user has proper one. But when user with granted access get into secured method which is the method of Struts action, all request params there are set to NULL. Please, help me to resolve the issue, if anybody already occured it. Or may be someone could share his knowledge how to properly configure Struts2 application to use Spring Secure method security. -- View this message in context: http://www.nabble.com/Spring-Security-method-security-with-struts2-make-all-request-params-in-action-NULL-tp21624393p21624393.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Handling Browser Back/Forward Button in Struts2
Hi Shekher, all my testing was under SSL connection. So without pragma and cache control it's not working - sadly. Best greetings, Paweł Wielgus. 2009/1/22 shekher awasthi shekher.awas...@gmail.com: Hi Paweł, another way we can do this by using SSL as we are dealing in secure zone so using SSL for this might be a good case. the application i have seen so far who have dealt with this back/forward button always using HTTPS protocol. i am also diving in to this case study and will share the results On 1/22/09, shekher awasthi shekher.awas...@gmail.com wrote: one of the banking application site which i tested today when user get logged off from and try to hit the back button he will be shown a different page instead the one in the cache so i am also loking in to this aspect. On 1/22/09, shekher awasthi shekher.awas...@gmail.com wrote: using javascript is not a sure short solution as i tested it throughly and javascript behaviour is not consistent throught regarding setting header i did this i developed a custom interceptor which is doing this but again its not worked as expected. i am still clueless how online banking application doing this trick i am still on RD mode for this if find anything will share it On 1/22/09, Paweł Wielgus poulw...@gmail.com wrote: Hi Ehtesham, it was said before on this thread that user can simply turn of javascript whenever he wants, thats why i was looking for more server controlled solution. But thank You for pointing it out, You made me to add it to my blog post. Best greetings, Paweł Wielgus. 2009/1/22 Ehteshamul Haque ehsho...@yahoo.com: Hi, I am not that much expert I I used the following javascript code before in each page and it workded fine. script language=JavaScript var x=window.history.length; if (window.history[x]!=window.location) { window.history.forward(); } /script If it work for you I will be very happy. Thank you. -Ehtesham --- On Thu, 1/22/09, Paweł Wielgus poulw...@gmail.com wrote: From: Paweł Wielgus poulw...@gmail.com Subject: Re: Handling Browser Back/Forward Button in Struts2 To: Struts Users Mailing List user@struts.apache.org Date: Thursday, January 22, 2009, 12:34 AM Hi Shekher, it was very interesting subject, so i dig a little more. Here [1] is what i found, with some tests. Basicly it turns out that You should add headers in page and to response. [1] - http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html Best greetings, Paweł Wielgus. 2009/1/21 shekher awasthi shekher.awas...@gmail.com: Is it possible that either i should only put these header in the logout action where i am removing the session and den redirecting the user to index page something like this HttpServletResponse response=null; response=ServletActionContext.getResponse(); response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache); response.setHeader(Expires, 0); or can we create a interceptor which can do this for all the request wheer we want this feature?? 2009/1/21 shekher awasthi shekher.awas...@gmail.com i tried using setting the eader values but they are not working as expected i can even go and move back using broswer back button. if i will find anything helpfull will share with you till then hard luck :) 2009/1/21 Paweł Wielgus poulw...@gmail.com Hi Shekher, what i meant is that it can be done from server side. Check for example Your e-banking application, i did it on mine :-). There, when You press back button browser won't serve You cached page but ask server for fresh one - this is controlled with content-cache and pragma, but i can't be more helpfull to You here because i haven't done it before. Best greetings, Paweł Wielgus. 2009/1/21 shekher awasthi shekher.awas...@gmail.com: Hi Paweł, thats true it only send request to server if i will refresh the page and for that i have already custom interceptor places which is checking the user object in session in order to confirm that the request is from authorized user but when i make use of back button it serve the page from the local chache,so the problem is related to client side more than that of server handling still trying to find a firm solution for it 2009/1/20 Paweł Wielgus poulw...@gmail.com Hi Shekher, first try this scenario: 1. logout user 2. back button - check for logs if action was fired 3. refresh page - check for logs if action was fired Most likely only the 3. will fire action because browser will serve cached version of that page. I was about to write that to deal with it You can use https scheme, but i just got it checked and it's not true. So maybe using pragma and or cache-control will do?
Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18
2009/1/22 Jan Fröhlich jan.froehl...@infomotion.de: And if - are there any other work arounds than installing tomcat in a different path, cause I have to use a preinstalled tomcat in a path with blank spaces. You can checkout XWork and build it for your self or I can share my build, then you have to only replace that jar in your projects. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Handling Browser Back/Forward Button in Struts2
Can you guide me the way how to use SSL in struts2 i am looking in to this IDE i am using is MyEclispe and i am testing it using tomcat On Fri, Jan 23, 2009 at 7:33 PM, Paweł Wielgus poulw...@gmail.com wrote: Hi Shekher, all my testing was under SSL connection. So without pragma and cache control it's not working - sadly. Best greetings, Paweł Wielgus. 2009/1/22 shekher awasthi shekher.awas...@gmail.com: Hi Paweł, another way we can do this by using SSL as we are dealing in secure zone so using SSL for this might be a good case. the application i have seen so far who have dealt with this back/forward button always using HTTPS protocol. i am also diving in to this case study and will share the results On 1/22/09, shekher awasthi shekher.awas...@gmail.com wrote: one of the banking application site which i tested today when user get logged off from and try to hit the back button he will be shown a different page instead the one in the cache so i am also loking in to this aspect. On 1/22/09, shekher awasthi shekher.awas...@gmail.com wrote: using javascript is not a sure short solution as i tested it throughly and javascript behaviour is not consistent throught regarding setting header i did this i developed a custom interceptor which is doing this but again its not worked as expected. i am still clueless how online banking application doing this trick i am still on RD mode for this if find anything will share it On 1/22/09, Paweł Wielgus poulw...@gmail.com wrote: Hi Ehtesham, it was said before on this thread that user can simply turn of javascript whenever he wants, thats why i was looking for more server controlled solution. But thank You for pointing it out, You made me to add it to my blog post. Best greetings, Paweł Wielgus. 2009/1/22 Ehteshamul Haque ehsho...@yahoo.com: Hi, I am not that much expert I I used the following javascript code before in each page and it workded fine. script language=JavaScript var x=window.history.length; if (window.history[x]!=window.location) { window.history.forward(); } /script If it work for you I will be very happy. Thank you. -Ehtesham --- On Thu, 1/22/09, Paweł Wielgus poulw...@gmail.com wrote: From: Paweł Wielgus poulw...@gmail.com Subject: Re: Handling Browser Back/Forward Button in Struts2 To: Struts Users Mailing List user@struts.apache.org Date: Thursday, January 22, 2009, 12:34 AM Hi Shekher, it was very interesting subject, so i dig a little more. Here [1] is what i found, with some tests. Basicly it turns out that You should add headers in page and to response. [1] - http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html Best greetings, Paweł Wielgus. 2009/1/21 shekher awasthi shekher.awas...@gmail.com: Is it possible that either i should only put these header in the logout action where i am removing the session and den redirecting the user to index page something like this HttpServletResponse response=null; response=ServletActionContext.getResponse(); response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache); response.setHeader(Expires, 0); or can we create a interceptor which can do this for all the request wheer we want this feature?? 2009/1/21 shekher awasthi shekher.awas...@gmail.com i tried using setting the eader values but they are not working as expected i can even go and move back using broswer back button. if i will find anything helpfull will share with you till then hard luck :) 2009/1/21 Paweł Wielgus poulw...@gmail.com Hi Shekher, what i meant is that it can be done from server side. Check for example Your e-banking application, i did it on mine :-). There, when You press back button browser won't serve You cached page but ask server for fresh one - this is controlled with content-cache and pragma, but i can't be more helpfull to You here because i haven't done it before. Best greetings, Paweł Wielgus. 2009/1/21 shekher awasthi shekher.awas...@gmail.com: Hi Paweł, thats true it only send request to server if i will refresh the page and for that i have already custom interceptor places which is checking the user object in session in order to confirm that the request is from authorized user but when i make use of back button it serve the page from the local chache,so the problem is related to client side more than that of server handling still trying to find a firm solution for it 2009/1/20 Paweł Wielgus poulw...@gmail.com Hi Shekher, first try this scenario: 1. logout user 2.
Test mail
Test Mail
RE: My code working fine on Firefox.But it is not working on IE-7.
Can u send the html that generates the code... Mileidys González Prieto Consultant i-Frontier Henck Arronstraat 16 | P.O.Box 12858 | Paramaribo, Suriname (SA) Office: (597)-424073 | Mobile: (597)-8810219 www.i-frontier.net -Original Message- From: Seshagiri V [mailto:seshagi...@kensium.com] Sent: Friday, January 23, 2009 7:50 AM To: user@struts.apache.org Subject: My code working fine on Firefox.But it is not working on IE-7. Hello everyone, I am working on struts2.0.My code working fine on Firefox.But it is not working on IE-7(same code). Here is a snippet of my code in the jsp: body s:url id=tempMilestoneRemoveURL namespace=/u action=viewConfirm s:param name=messageConfirms:text name=milestone_confirm_remove s:param name=milestoneDTO.name value=%{milestoneDTO.name} / s:param name=milestoneDTO.dividedPoP.name value=%{milestoneDTO.dividedPoP.name} / /s:text /s:param s:param name=yesURLs:url namespace=/p action=removeMilestone s:param name={milestoneDTO.milestoneid value=%{{milestoneDTO.milestoneid} //s:url/s:param s:param name=noURL s:url namespace=/p action=viewEditMilestone / /s:param /s:url s:a href=%{tempMilestoneRemoveURL} style=text-decoration:none buttons:text name=Delete //button/s:a /body If clicks on this Delete link as button, it is working fine on Firefox But it is not working on IE-7. Please help me How to approaching code of IE-7. s:a href=%{tempMilestoneRemoveURL} style=text-decoration:none buttons:text name=Delete //button/s:a Thank you, Seshagiri V seshagi...@kensium.com. US Main: 877 KENSIUM (536.7486) US Fax: 312.242.3029 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: - The information contained in this e-mail is strictly confidential and for the intended use of the addressee only. Any disclosure, use or copying of the information by anyone other than the intended recipient is prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and securely discard this message. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Problem in sending mail to mailing list
Hi All, I am unable to send new mail in struts2 mailing list while i was able to reply to one of the post in the mailing list when i am trying to paste content of my xml file it is giving me the following error Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 552 552 spam score (5.0) exceeded threshold (state 18). can any body poin tme the reason even i susbcribed mailing list to my alternative id butsame problem is coming there also any help in this regard?
Re: Problem in sending mail to mailing list
its not a big one just a small fragment but when ever iam trying to post it i am getting the same message thats why i am clueless i even tried to send same message from my other id but faced same problem, then i even removed the XML part from my post but problem remains same can you suggest any thing else to look in to?? On 1/23/09, Dave Newton newton.d...@yahoo.com wrote: shekher awasthi wrote: when i am trying to paste content of my xml file [...] How big is your XML snippet? People post fairly large XML fragments all the time with no issues, AFAIK. Dave == sanity check == ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; !-- START SNIPPET: xworkSample -- struts !-- Some or all of these can be flipped to true for debugging -- constant name=struts.i18n.reload value=false / constant name=struts.devMode value=true / constant name=struts.configuration.xml.reload value=false / constant name=struts.custom.i18n.resources value=globalMessages / constant name=struts.action.extension value=action,, / constant name=struts.codebehind.defaultPackage value=person / constant name=struts.freemarker.manager.classname value=customFreemarkerManager / constant name=struts.serve.static value=true / constant name=struts.serve.static.browserCache value=false / include file=struts-chat.xml / include file=struts-interactive.xml / include file=struts-hangman.xml / include file=struts-tags.xml/ include file=struts-validation.xml / include file=struts-actionchaining.xml / include file=struts-ajax.xml / include file=struts-fileupload.xml / include file=struts-person.xml / include file=struts-wait.xml / include file=struts-jsf.xml / include file=struts-token.xml / include file=struts-model-driven.xml / include file=struts-integration.xml / include file=struts-filedownload.xml / include file=struts-conversion.xml / include file=struts-freemarker.xml / include file=struts-tiles.xml / include file=struts-xslt.xml / package name=default extends=struts-default interceptors interceptor-stack name=crudStack interceptor-ref name=checkbox / interceptor-ref name=params / interceptor-ref name=staticParams / interceptor-ref name=defaultStack / /interceptor-stack /interceptors default-action-ref name=showcase / action name=showcase resultshowcase.jsp/result /action action name=viewSource class=org.apache.struts2.showcase.source.ViewSourceAction resultviewSource.jsp/result /action action name=date class=org.apache.struts2.showcase.DateAction method=browse result name=success/date.jsp/result /action /package package name=skill extends=default namespace=/skill default-interceptor-ref name=crudStack/ action name=list class=org.apache.struts2.showcase.action.SkillAction method=list result/empmanager/listSkills.jsp/result interceptor-ref name=basicStack/ /action action name=edit class=org.apache.struts2.showcase.action.SkillAction result/empmanager/editSkill.jsp/result interceptor-ref name=params / interceptor-ref name=basicStack/ /action action name=save class=org.apache.struts2.showcase.action.SkillAction method=save result name=input/empmanager/editSkill.jsp/result result type=redirectedit.action?skillName=${currentSkill.name}/result /action action name=delete class=org.apache.struts2.showcase.action.SkillAction method=delete result name=error/empmanager/editSkill.jsp/result result type=redirectedit.action?skillName=${currentSkill.name}/result /action /package package name=employee extends=default namespace=/employee default-interceptor-ref name=crudStack/ action name=list class=org.apache.struts2.showcase.action.EmployeeAction method=list result/empmanager/listEmployees.jsp/result interceptor-ref name=basicStack/ /action action name=edit-* class=org.apache.struts2.showcase.action.EmployeeAction param name=empId{1}/param result/empmanager/editEmployee.jsp/result interceptor-ref name=crudStackparam name=validation.excludeMethodsexecute/param/interceptor-ref /action action name=save class=org.apache.struts2.showcase.action.EmployeeAction method=save result name=input/empmanager/editEmployee.jsp/result result type=redirectedit-${currentEmployee.empId}.action/result /action action name=delete
Re: Problem in sending mail to mailing list
umesh awasthi wrote: can you suggest any thing else to look in to?? Not really; maybe somebody using gmail can comment. Another option is to put code fragments on a source-hosting service like pastebin etc. Some folks that haven't figured out how to send text-only emails often change characters to [, which is another option (but can be hard to read). Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts2 and SSL
HI All, i am trying to impliment SSL in my application using struts2-ssl-plugin i am using o interceptor for SSL implimentation which is a part of the SSL plugin a when i am testing my application browser first time providing information abt the security certificate console is giving the following log information 10:32:33,296 INFO com.googlecode.sslplugin.interceptors.SSLInterceptor -Going to SSL mode, redirecting to No result returned for action com.opensymphony.xwork2.ActionSupport at action - file:/F:/EclipseProjects2009/.metadata/.plugins/com.genuitec.eclipse.easie.tomcat.myeclipse/tomcat/webapps/BillSmart/WEB-INF/classes/com/raisonne/billsmart/user/action/user.xml:79:29 do any one have idea where i am doing wrong thanks in advance
Re: Problem in sending mail to mailing list
I had this problem before and it was because the email was being sent as Rich Text. change your email option to simple text and you should be fine. --- On Fri, 1/23/09, Dave Newton newton.d...@yahoo.com wrote: From: Dave Newton newton.d...@yahoo.com Subject: Re: Problem in sending mail to mailing list To: Struts Users Mailing List user@struts.apache.org Received: Friday, January 23, 2009, 5:12 PM umesh awasthi wrote: can you suggest any thing else to look in to?? Not really; maybe somebody using gmail can comment. Another option is to put code fragments on a source-hosting service like pastebin etc. Some folks that haven't figured out how to send text-only emails often change characters to [, which is another option (but can be hard to read). Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org __ Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
having trouble with type conversion in struts 2.1.6
Hi All! Could anybody please tell me if I should add anything to the struts2blank project (of struts 2.1.6) so that type conversion error handling ( i mean the -- invalid.fieldvalue.fieldname) would work properly. I am clearly missing something, because instead of displaying invalid.fieldvalue my project (witch is based on struts2blank) throws-- IllegalArgumentException: Cannot format given Object as a Number. Any body ? I am getting desperate and thinking of abandoning struts2.1.6 alltoghether :( Thank you in advance. Sergio. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: org.apache.struts2.dispatcher.StrutsRequestWrapper cannot be cast to org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper
I think the problem is just that you need to add the following parameter inside your html form: enctype=multipart/form-data and then the cast should work. red phoenix-2 wrote: In http://struts.apache.org/2.0.14/docs/how-do-we-upload-files.html , it use MultiPartRequestWrapper multipartRequest = (MultiPartRequestWrapper) ServletActionContext.getRequest(); It still raise java.lang.ClassCastException: org.apache.struts2.dispatcher.StrutsRequestWrapper cannot be cast to org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper. My popuse is that when jsp sumbit to action,I can get upload file name and the stream of upload file,then I can write the stream of upload file into blob of oracle database.I don't know how to get the stream of upload file! I still puzzled with why raise above error. I don't find the different between my code and http://struts.apache.org/2.0.14/docs/how-do-we-upload-files.html. Where wrong with my code? On Tue, Dec 16, 2008 at 11:13 PM, Dave Newton newton.d...@yahoo.com wrote: --- On Tue, 12/16/08, red phoenix wrote: [...] MultiPartRequestWrapper multipartRequest = (MultiPartRequestWrapper) ServletActionContext.getRequest(); [...] org.apache.struts2.dispatcher.StrutsRequestWrapper cannot be cast to org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper Why raise above error? Because StrutsRequestWrappers can't be cast to MultiPartRequestWrappers. How to correct it? Use the built-in file upload capabilities of Struts 2; there's no reason to access the request manually. Here's that link again: http://struts.apache.org/2.0.14/docs/how-do-we-upload-files.html Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/org.apache.struts2.dispatcher.StrutsRequestWrapper-cannot-be-cast-to-org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper-tp21034825p21630535.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts 2.1.6 conventions plugin questions
I figured out #1 - my IndexAction hadn't declared a @Namespace(/) annotation. In conjunction with struts.convention.redirect.to.slash set to true it was getting invoked on every request for a missing action. Kind of a neat side effect actually that might be useful some day.. :-). I'm going to go ahead and assume that #2 is also something I screwed up myself, but I'll certainly post an issue into JIRA if I can create a small reproducible test case for this behavior. Thanks! Allen On Thu, Jan 22, 2009 at 3:46 PM, Musachy Barroso musa...@gmail.com wrote: 1) how does the conventions plugin handle missing actions or 404s? Previously I'd configured an error-page 404 handler in my web.xml that seemed to work well, but now any invalid / missing URL goes back to the IndexAction I configured to handle requests for /). Not sure why errors are redirected to /. They shouldn't, there is got to be some config somewhere making it do this, you can share more details on your config. 2) For some reason type conversion is no longer being performed on some of my domain models. As an example I have a LongitudeLatitudeBox that has Doubles for the longitude/latitude pairs, but OGNL is now complaining that LongitudeLatitudeBox doesn't have setters that take Strings. Any ideas on why this might happen after switching to the Conventions plugin? I am lost on this one also, please give us more details, or open a jira ticket. 3) Minor nitpick on http://struts.apache.org/2.x/docs/annotations.html has InterfectorRefs instead of InterceptorRefs. Dave took care of it. musachy -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Allen Lee Center for the Study of Institutional Diversity [http://csid.asu.edu] School of Human Evolution and Social Change [http://shesc.asu.edu] College of Liberal Arts and Sciences Arizona State University | P.O. Box 872402 | Tempe, Arizona 85287-2402 Office: 480.727.0401 | Fax: 480.965.7671 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts 2.1.6 conventions plugin questions
#2 might me related to http://jira.opensymphony.com/browse/XW-670. musachy On Fri, Jan 23, 2009 at 3:00 PM, Allen Lee allen@asu.edu wrote: I figured out #1 - my IndexAction hadn't declared a @Namespace(/) annotation. In conjunction with struts.convention.redirect.to.slash set to true it was getting invoked on every request for a missing action. Kind of a neat side effect actually that might be useful some day.. :-). I'm going to go ahead and assume that #2 is also something I screwed up myself, but I'll certainly post an issue into JIRA if I can create a small reproducible test case for this behavior. Thanks! Allen On Thu, Jan 22, 2009 at 3:46 PM, Musachy Barroso musa...@gmail.com wrote: 1) how does the conventions plugin handle missing actions or 404s? Previously I'd configured an error-page 404 handler in my web.xml that seemed to work well, but now any invalid / missing URL goes back to the IndexAction I configured to handle requests for /). Not sure why errors are redirected to /. They shouldn't, there is got to be some config somewhere making it do this, you can share more details on your config. 2) For some reason type conversion is no longer being performed on some of my domain models. As an example I have a LongitudeLatitudeBox that has Doubles for the longitude/latitude pairs, but OGNL is now complaining that LongitudeLatitudeBox doesn't have setters that take Strings. Any ideas on why this might happen after switching to the Conventions plugin? I am lost on this one also, please give us more details, or open a jira ticket. 3) Minor nitpick on http://struts.apache.org/2.x/docs/annotations.html has InterfectorRefs instead of InterceptorRefs. Dave took care of it. musachy -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Allen Lee Center for the Study of Institutional Diversity [http://csid.asu.edu] School of Human Evolution and Social Change [http://shesc.asu.edu] College of Liberal Arts and Sciences Arizona State University | P.O. Box 872402 | Tempe, Arizona 85287-2402 Office: 480.727.0401 | Fax: 480.965.7671 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Test mail
User groups doesn't exist, please try other e-mail address! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Only call actions from certain forms
Hi all, My forms all submit to a different action than that which renders the pages. Is there a recommended way to prevent/mitigate the effect of users directly calling the actions (via their URL) that forms are submitted to? In this case, the actions' fields are null, which is somewhat irritating in an action method that has associated validation.. Andy. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Only call actions from certain forms
I can think of 2 security implementations: 1)Portlets (Jetspeed or Plumtree comes to mind) 2)implement either JNDI/JDBC/or MemoryRealm http://tomcat.apache.org/tomcat-4.1-doc/catalina/funcspecs/fs-memory-realm.html HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. From: a.sy...@ucl.ac.uk To: user@struts.apache.org Subject: Only call actions from certain forms Date: Fri, 23 Jan 2009 23:19:34 + Hi all, My forms all submit to a different action than that which renders the pages. Is there a recommended way to prevent/mitigate the effect of users directly calling the actions (via their URL) that forms are submitted to? In this case, the actions' fields are null, which is somewhat irritating in an action method that has associated validation.. Andy. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Windows Live™: E-mail. Chat. Share. Get more ways to connect. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_012009
Re: Only call actions from certain forms
Martin, I could be reading his question wrong, but I think he is trying to limit POSTs/GETs of his actions so that they only come from the JSPs that he intends. This is a harder problem than it seems. My gut response was to tell him to check out HDIV, but I'm not sure whether that is built-in functionality they advertise. If this were a requirement for me, I'd look into writing an interceptor that checks the HTTP_REFERER and USER_AGENT, but even that is not going to be a full-proof solution. I think the nature of HTTP is that you can't fully enforce it. Another solution would be to try to generate a random token that your form retrieves via AJAX and sets to a hidden field. Then, validate the token in your method before proceeding. This would take care of most use-cases, but it might introduce other problems (users with noscript). What is the purpose of tying the OP's users directly to the forms? Is it a security concern, or is there another reason? -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher On Friday 23 January 2009 21:23:09 Martin Gainty wrote: I can think of 2 security implementations: 1)Portlets (Jetspeed or Plumtree comes to mind) 2)implement either JNDI/JDBC/or MemoryRealm http://tomcat.apache.org/tomcat-4.1-doc/catalina/funcspecs/fs-memory-realm. html HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. From: a.sy...@ucl.ac.uk To: user@struts.apache.org Subject: Only call actions from certain forms Date: Fri, 23 Jan 2009 23:19:34 + Hi all, My forms all submit to a different action than that which renders the pages. Is there a recommended way to prevent/mitigate the effect of users directly calling the actions (via their URL) that forms are submitted to? In this case, the actions' fields are null, which is somewhat irritating in an action method that has associated validation.. Andy. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Windows Live™: E-mail. Chat. Share. Get more ways to connect. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_012009 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Only call actions from certain forms
Andy Sykes wrote: My forms all submit to a different action than that which renders the pages. Is there a recommended way to prevent/mitigate the effect of users directly calling the actions (via their URL) that forms are submitted to? In this case, the actions' fields are null, which is somewhat irritating in an action method that has associated validation.. The simplest solution, although somewhat hacky, might be to just check for a hidden form token in the action's validate method. If it's not there, it wasn't reached from the form. If it is, call super.validate() which will run any XML/annotation-based validation. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Only call actions from certain forms
Hi all, Cheers for the suggestions - I guess I was just looking for a sanity check from the list. My current method (almost exactly the same as below) is to check a choice form field for null in the validateXXX() method - this is the case when you call the action without POST from a form. If null, I can return INPUT from the validation method (which, interestingly enough, lets me set the return type as String, and have it honoured as a valid result - I thought void was the only valid validateXXX result type). The input result kicks the user to the form they should've used. Job done. I'm not using XML or annotation validators - 95% of my validation is more complex than those allow. The reasoning behind wanting to do this is my users are somewhat curious, and are prone to poking. I'd prefer for them to not see blank pages, stack traces, or otherwise! Andy. On 24 Jan 2009, at 02:52, Dave Newton wrote: Andy Sykes wrote: My forms all submit to a different action than that which renders the pages. Is there a recommended way to prevent/mitigate the effect of users directly calling the actions (via their URL) that forms are submitted to? In this case, the actions' fields are null, which is somewhat irritating in an action method that has associated validation.. The simplest solution, although somewhat hacky, might be to just check for a hidden form token in the action's validate method. If it's not there, it wasn't reached from the form. If it is, call super.validate() which will run any XML/annotation-based validation. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: My code working fine on Firefox.But it is not working on IE-7.
Hello, I am sending the html that generates the code (application run on IE-7). html head titleEditing Milestone Milestone | PoPProject, by Paradigm PoP/title /head body a id=editMilestone_ href=/u/viewConfirm.action?milestoneDTO.milestoneid=1amp;messageConfirm=Yo u+are+about+to+remove+a+milestone%2C+%22Milestone%22%2C+from+the+PoP%2C%22Un titled%22.amp;yesURL=%2Fp%2FremoveMilestone.action%3FmilestoneDTO.milestone id%3D1amp;noURL=%2Fp%2FviewEditMilestone.action%3FmilestoneDTO.milestoneid% 3D1 style=text-decoration:nonebutton Delete/button/a /body /html I am sending the html that generates the code (application run on Firefox). html head titleEditing Milestone Milestone | PoPProject, by Paradigm PoP/title /head body a id=editMilestone_ href=/u/viewConfirm.action?milestoneDTO.milestoneid=1amp;messageConfirm=Yo u+are+about+to+remove+a+milestone%2C+%22Milestone%22%2C+from+the+PoP%2C%22Un titled%22.amp;yesURL=%2Fp%2FremoveMilestone.action%3FmilestoneDTO.milestone id%3D1amp;noURL=%2Fp%2FviewEditMilestone.action%3FmilestoneDTO.milestoneid% 3D1 style=text-decoration:nonebutton Delete/button/a /body /html Thank you, Seshagiri V seshagi...@kensium.com. US Main: 877 KENSIUM (536.7486) US Fax: 312.242.3029 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: - The information contained in this e-mail is strictly confidential and for the intended use of the addressee only. Any disclosure, use or copying of the information by anyone other than the intended recipient is prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and securely discard this message. -Original Message- From: Mileidys Gonzalez Prieto [mailto:mileidys.gonza...@i-frontier.net] Sent: Friday, January 23, 2009 9:36 PM To: 'Seshagiri V'; user@struts.apache.org Subject: RE: My code working fine on Firefox.But it is not working on IE-7. Can u send the html that generates the code... Mileidys González Prieto Consultant i-Frontier Henck Arronstraat 16 | P.O.Box 12858 | Paramaribo, Suriname (SA) Office: (597)-424073 | Mobile: (597)-8810219 www.i-frontier.net -Original Message- From: Seshagiri V [mailto:seshagi...@kensium.com] Sent: Friday, January 23, 2009 7:50 AM To: user@struts.apache.org Subject: My code working fine on Firefox.But it is not working on IE-7. Hello everyone, I am working on struts2.0.My code working fine on Firefox.But it is not working on IE-7(same code). Here is a snippet of my code in the jsp: body s:url id=tempMilestoneRemoveURL namespace=/u action=viewConfirm s:param name=messageConfirms:text name=milestone_confirm_remove s:param name=milestoneDTO.name value=%{milestoneDTO.name} / s:param name=milestoneDTO.dividedPoP.name value=%{milestoneDTO.dividedPoP.name} / /s:text /s:param s:param name=yesURLs:url namespace=/p action=removeMilestone s:param name={milestoneDTO.milestoneid value=%{{milestoneDTO.milestoneid} //s:url/s:param s:param name=noURL s:url namespace=/p action=viewEditMilestone / /s:param /s:url s:a href=%{tempMilestoneRemoveURL} style=text-decoration:none buttons:text name=Delete //button/s:a /body If clicks on this Delete link as button, it is working fine on Firefox But it is not working on IE-7. Please help me How to approaching code of IE-7. s:a href=%{tempMilestoneRemoveURL} style=text-decoration:none buttons:text name=Delete //button/s:a Thank you, Seshagiri V seshagi...@kensium.com. US Main: 877 KENSIUM (536.7486) US Fax: 312.242.3029 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: - The information contained in this e-mail is strictly confidential and for the intended use of the addressee only. Any disclosure, use or copying of the information by anyone other than the intended recipient is prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and securely discard this message. Internal Virus Database is out of date. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.0/1862 - Release Date: 12/23/2008 12:08 PM
RE: My code working fine on Firefox.But it is not working on IE-7.
Hi, In Firefox, selecting text(as a href=# only If click on Delete link as button then that url woring fine(go to next page). In IE-7, not select text(as a href=# If click on Delete link as button then nothig happen (could not go to next page) I checked both the html that generates the code same. why not select text(as a href=# If click on Delete link as button On IE-7. Pl follows snapshot. In Firefox:- In IE-7:- Pl How to approaching code Thank you, Seshagiri V seshagi...@kensium.com. US Main: 877 KENSIUM (536.7486) US Fax: 312.242.3029 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: - The information contained in this e-mail is strictly confidential and for the intended use of the addressee only. Any disclosure, use or copying of the information by anyone other than the intended recipient is prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and securely discard this message. _ From: Seshagiri V [mailto:seshagi...@kensium.com] Sent: Saturday, January 24, 2009 10:39 AM To: 'Mileidys Gonzalez Prieto'; 'user@struts.apache.org' Subject: RE: My code working fine on Firefox.But it is not working on IE-7. Hello, I am sending the html that generates the code (application run on IE-7). html head titleEditing Milestone Milestone | PoPProject, by Paradigm PoP/title /head body a id=editMilestone_ href=/u/viewConfirm.action?milestoneDTO.milestoneid=1amp;messageConfirm=Yo u+are+about+to+remove+a+milestone%2C+%22Milestone%22%2C+from+the+PoP%2C%22Un titled%22.amp;yesURL=%2Fp%2FremoveMilestone.action%3FmilestoneDTO.milestone id%3D1amp;noURL=%2Fp%2FviewEditMilestone.action%3FmilestoneDTO.milestoneid% 3D1 style=text-decoration:nonebutton Delete/button/a /body /html I am sending the html that generates the code (application run on Firefox). html head titleEditing Milestone Milestone | PoPProject, by Paradigm PoP/title /head body a id=editMilestone_ href=/u/viewConfirm.action?milestoneDTO.milestoneid=1amp;messageConfirm=Yo u+are+about+to+remove+a+milestone%2C+%22Milestone%22%2C+from+the+PoP%2C%22Un titled%22.amp;yesURL=%2Fp%2FremoveMilestone.action%3FmilestoneDTO.milestone id%3D1amp;noURL=%2Fp%2FviewEditMilestone.action%3FmilestoneDTO.milestoneid% 3D1 style=text-decoration:nonebutton Delete/button/a /body /html Thank you, Seshagiri V seshagi...@kensium.com. US Main: 877 KENSIUM (536.7486) US Fax: 312.242.3029 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: - The information contained in this e-mail is strictly confidential and for the intended use of the addressee only. Any disclosure, use or copying of the information by anyone other than the intended recipient is prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and securely discard this message. -Original Message- From: Mileidys Gonzalez Prieto [mailto:mileidys.gonza...@i-frontier.net] Sent: Friday, January 23, 2009 9:36 PM To: 'Seshagiri V'; user@struts.apache.org Subject: RE: My code working fine on Firefox.But it is not working on IE-7. Can u send the html that generates the code... Mileidys González Prieto Consultant i-Frontier Henck Arronstraat 16 | P.O.Box 12858 | Paramaribo, Suriname (SA) Office: (597)-424073 | Mobile: (597)-8810219 www.i-frontier.net -Original Message- From: Seshagiri V [mailto:seshagi...@kensium.com] Sent: Friday, January 23, 2009 7:50 AM To: user@struts.apache.org Subject: My code working fine on Firefox.But it is not working on IE-7. Hello everyone, I am working on struts2.0.My code working fine on Firefox.But it is not working on IE-7(same code). Here is a snippet of my code in the jsp: body s:url id=tempMilestoneRemoveURL namespace=/u action=viewConfirm s:param name=messageConfirms:text name=milestone_confirm_remove s:param name=milestoneDTO.name value=%{milestoneDTO.name} / s:param name=milestoneDTO.dividedPoP.name value=%{milestoneDTO.dividedPoP.name} / /s:text /s:param s:param name=yesURLs:url namespace=/p action=removeMilestone s:param name={milestoneDTO.milestoneid value=%{{milestoneDTO.milestoneid} //s:url/s:param s:param name=noURL s:url namespace=/p action=viewEditMilestone /
Anchors Not working in IE...........fine In Firefox...........
Hello, Anchors Not working in IE...fine In Firefox... Thank you, Seshagiri V seshagi...@kensium.com. US Main: 877 KENSIUM (536.7486) US Fax: 312.242.3029 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: - The information contained in this e-mail is strictly confidential and for the intended use of the addressee only. Any disclosure, use or copying of the information by anyone other than the intended recipient is prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and securely discard this message. -Original Message- From: Mileidys Gonzalez Prieto [mailto:mileidys.gonza...@i-frontier.net] Sent: Friday, January 23, 2009 9:36 PM To: 'Seshagiri V'; user@struts.apache.org Subject: RE: My code working fine on Firefox.But it is not working on IE-7. Can u send the html that generates the code... Mileidys González Prieto Consultant i-Frontier Henck Arronstraat 16 | P.O.Box 12858 | Paramaribo, Suriname (SA) Office: (597)-424073 | Mobile: (597)-8810219 www.i-frontier.net -Original Message- From: Seshagiri V [mailto:seshagi...@kensium.com] Sent: Friday, January 23, 2009 7:50 AM To: user@struts.apache.org Subject: My code working fine on Firefox.But it is not working on IE-7. Hello everyone, I am working on struts2.0.My code working fine on Firefox.But it is not working on IE-7(same code). Here is a snippet of my code in the jsp: body s:url id=tempMilestoneRemoveURL namespace=/u action=viewConfirm s:param name=messageConfirms:text name=milestone_confirm_remove s:param name=milestoneDTO.name value=%{milestoneDTO.name} / s:param name=milestoneDTO.dividedPoP.name value=%{milestoneDTO.dividedPoP.name} / /s:text /s:param s:param name=yesURLs:url namespace=/p action=removeMilestone s:param name={milestoneDTO.milestoneid value=%{{milestoneDTO.milestoneid} //s:url/s:param s:param name=noURL s:url namespace=/p action=viewEditMilestone / /s:param /s:url s:a href=%{tempMilestoneRemoveURL} style=text-decoration:none buttons:text name=Delete //button/s:a /body If clicks on this Delete link as button, it is working fine on Firefox But it is not working on IE-7. Please help me How to approaching code of IE-7. s:a href=%{tempMilestoneRemoveURL} style=text-decoration:none buttons:text name=Delete //button/s:a Thank you, Seshagiri V seshagi...@kensium.com. US Main: 877 KENSIUM (536.7486) US Fax: 312.242.3029 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: - The information contained in this e-mail is strictly confidential and for the intended use of the addressee only. Any disclosure, use or copying of the information by anyone other than the intended recipient is prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and securely discard this message. Internal Virus Database is out of date. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.0/1862 - Release Date: 12/23/2008 12:08 PM - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org