Re: HELP!!
On 4/30/07, nagesh.kumar [EMAIL PROTECTED] wrote: taglib-uri/WEB-INF/tlds/struts-html.tld /taglib-uri Please remove blank space after .tld in the above line it should be like taglib-uri/WEB-INF/tlds/struts-html.tld/taglib-uri The following advice presumes that you are using Struts 1.1 or later, on a Servlet 2.4 or later servlet container (such as Tomcat 5.x or 6.x). If you are not, you really should. There are three important things to note here: * The suggestion from Nagesh is likely to have no impact, because the servlet container should be ignoring whitespace around the values of parameters in the web.xml file. This is a good thing, because you often want (for readability) to put the value on a separate line. * The taglib declaration that Vikas is using will *only* work if you have manually copied the TLD to the specified location (WEB-INF/tlds/struts-html.tld inside the web application). But you should not have to do this, which leads to the most important point. * If you are using anything later than an ancient servlet container, specifying a taglib declaration is totally unnecessary, because the container will search inside JAR files included in your webapp. What you should be doing (for a Struts 1.x application) is declaring the following in your pages: %@ taglib prefix=html uri=http://struts.apache.org/tags-html; % and doing *nothing* in web.xml. The servlet container will find the correct tag library descriptor in the struts JAR files in WEB-INF/lib with no further actions on your part. See the Struts 1.x user guide[1] for more current information. Craig [1] http://struts.apache.org/1.x/userGuide/index.html Thanks Regards Nagesh Reddy -Original Message- From: vikas rao [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 10:10 AM To: Struts Users Mailing List Subject: HELP!! Hi, I am getting this exception: org.apache.jasper.JasperException: /index.jsp(9,0) No tag defined in tag library imported with prefix html My index.jsp file code starts like this: %@ taglib uri=/WEB-INF/tlds/struts-html.tld prefix=html % so what is the problem? I have added this in the web.xml file: taglib taglib-uri/WEB-INF/tlds/struts-html.tld /taglib-uri taglib-location/WEB-INF/tlds/struts-html.tld/taglib-location /taglib /web-app I am sooo frustrated, cant make a single struts program work :(. help!! vikas. DISCLAIMER: The information in this e-mail is the property of InterGlobe and is confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and will be unlawful. If you receive this message in error, please notify the sender immediately and delete all copies of this message - 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: 2 questions
Laurie I mean: 1. I mean that some of the companies build some tools for helping in working on project, or tell everybody around that this technologie is good :) 2. I mean if this main forum for discusing Struts 1? for example Spring has forum : forum.springframework.com , does Struts sth like this or this is the main one? Thnx Laurie Harper wrote: puchacz wrote: Hi I have 2 questions: 1. If there are some big companies (like IBM or sth.) which help to build up Struts 1 ? Depends on what you mean by 'help' ;-) Struts is developed entirely by volunteers. As far as I know, there are no developers whose work on Struts is directly sponsored by any company, large or small. 2. If this forum is the main one concern Struts 1 ? This is the main forum for discussing the use of Struts, both the 1.x versions and the 2.x versions, yes. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/2-questions-tf3671924.html#a10265329 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: First problem!
The tld would be automatically picked up if its under web-inf\tlfs.. Thats not the problem, the problem is that Just open that tld file and you would find the uri tag there, pick up that uri and put it in the jsp. %@ taglib uri=uri from the tld file prefix=s % Hope i made sense.. Sarish On 5/1/07, vikas rao [EMAIL PROTECTED] wrote: Hi, This is my first post, just started working with struts, and have run into problems! i have an index.jsp page: %@ taglib uri=\WEB-INF\struts-html.tld prefix=s % and when i try to access this page: http://localhost:8080/Mystruts/index.jsp i'm getting the exception : org.apache.jasper.JasperException: File \WEB-INF\struts-html.tld not found well, struts-html.tld is inside the tlds folder inside web-inf, should i give \web-inf\tlds\struts-html.tld as the path? i tried that, but that again ran me into more problems. please help! vikas. -- Regards, Sarish 09342640504
RE: HELP!!
In your web.xml Try = taglib taglib-uri/html/taglib-uri taglib-location/WEB-INF/tlds/struts-html.tld/taglib-location /taglib taglib taglib-uri/nested/taglib-uri taglib-location/WEB-INF/tlds/struts-nested.tld/taglib-location /taglib taglib taglib-uri/bean/taglib-uri taglib-location/WEB-INF/tlds/struts-bean.tld/taglib-location /taglib taglib taglib-uri/logic/taglib-uri taglib-location/WEB-INF/tlds/struts-logic.tld/taglib-location /taglib = And in the jsp %@ taglib uri=/bean prefix=bean % %@ taglib uri=/logic prefix=logic % %@ taglib uri=/nested prefix=nested % %@ taglib uri=/html prefix=html % I hope this helps .. Regards Guru -Original Message- From: vikas rao [mailto:[EMAIL PROTECTED] Sent: 01 May 2007 05:40 To: Struts Users Mailing List Subject: HELP!! Hi, I am getting this exception: org.apache.jasper.JasperException: /index.jsp(9,0) No tag defined in tag library imported with prefix html My index.jsp file code starts like this: %@ taglib uri=/WEB-INF/tlds/struts-html.tld prefix=html % so what is the problem? I have added this in the web.xml file: taglib taglib-uri/WEB-INF/tlds/struts-html.tld /taglib-uri taglib-location/WEB-INF/tlds/struts-html.tld/taglib-location /taglib /web-app I am sooo frustrated, cant make a single struts program work :(. help!! vikas. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP!!
what is the struts version you are using? Thanks, Nuwan. - Original Message - From: vikas rao [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, May 01, 2007 4:40 AM Subject: HELP!! Hi, I am getting this exception: org.apache.jasper.JasperException: /index.jsp(9,0) No tag defined in tag library imported with prefix html My index.jsp file code starts like this: %@ taglib uri=/WEB-INF/tlds/struts-html.tld prefix=html % so what is the problem? I have added this in the web.xml file: taglib taglib-uri/WEB-INF/tlds/struts-html.tld /taglib-uri taglib-location/WEB-INF/tlds/struts-html.tld/taglib-location /taglib /web-app I am sooo frustrated, cant make a single struts program work :(. help!! vikas. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP!!
hi, try this. and see. and you dont need to add any entry in your web.xml %@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean % %@ taglib uri=http://jakarta.apache.org/struts/tags-html; prefix=html % %@ taglib uri=http://jakarta.apache.org/struts/tags-logic; prefix=logic % Thanks, Nuwan - Original Message - From: vikas rao [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, May 01, 2007 4:40 AM Subject: HELP!! Hi, I am getting this exception: org.apache.jasper.JasperException: /index.jsp(9,0) No tag defined in tag library imported with prefix html My index.jsp file code starts like this: %@ taglib uri=/WEB-INF/tlds/struts-html.tld prefix=html % so what is the problem? I have added this in the web.xml file: taglib taglib-uri/WEB-INF/tlds/struts-html.tld /taglib-uri taglib-location/WEB-INF/tlds/struts-html.tld/taglib-location /taglib /web-app I am sooo frustrated, cant make a single struts program work :(. help!! vikas. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP!!
I am using struts 2.0.6...some of the sample tutorials i saw all deal with the 1.x versions, plus, the jar files which come along with the lib folder of the struts 2.0.6 version seem quite different from the 1.x versions...u think its better i use the earlier version??? On 5/1/07, Nuwan Chandrasoma [EMAIL PROTECTED] wrote: what is the struts version you are using? Thanks, Nuwan. - Original Message - From: vikas rao [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, May 01, 2007 4:40 AM Subject: HELP!! Hi, I am getting this exception: org.apache.jasper.JasperException: /index.jsp(9,0) No tag defined in tag library imported with prefix html My index.jsp file code starts like this: %@ taglib uri=/WEB-INF/tlds/struts-html.tld prefix=html % so what is the problem? I have added this in the web.xml file: taglib taglib-uri/WEB-INF/tlds/struts-html.tld /taglib-uri taglib-location/WEB-INF/tlds/struts-html.tld/taglib-location /taglib /web-app I am sooo frustrated, cant make a single struts program work :(. help!! vikas. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 questions
--- puchacz [EMAIL PROTECTED] wrote: 2. I mean if this main forum for discusing Struts 1? Laurie Harper wrote: This is the main forum for discussing the use of Struts, both the 1.x versions and the 2.x versions, So again, yes. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP!!
--- vikas rao [EMAIL PROTECTED] wrote: I am using struts 2.0.6... Yes, well, that will be an issue if you're trying to use the Struts 1 tags. If you're using Struts 2 you should use the Struts 2 tags. u think its better i use the earlier version??? If you're starting from scratch I would use Struts 2. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP!!
well, yeah i am starting from scratch,just beginning to learn struts, the thing is, i'd find it difficult to get help from the internet and books if i have to use the new version right? On 5/1/07, Dave Newton [EMAIL PROTECTED] wrote: --- vikas rao [EMAIL PROTECTED] wrote: I am using struts 2.0.6... Yes, well, that will be an issue if you're trying to use the Struts 1 tags. If you're using Struts 2 you should use the Struts 2 tags. u think its better i use the earlier version??? If you're starting from scratch I would use Struts 2. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP!!
--- vikas rao [EMAIL PROTECTED] wrote: well, yeah i am starting from scratch,just beginning to learn struts, the thing is, i'd find it difficult to get help from the internet and books if i have to use the new version right? Depends. For Struts 2 the old WebWork in Action book is still largely relevent, a new Struts in Action will be published soon, the wiki has a ton of information (not always super-easy to find, but it's often there), there's a mailing list (this one), and a large quantity of sample applications in the download. If you want to maintain old Struts 1 programs then S1 is the way to go. But I don't know how much *new* development will be S1 (although I know of at least one company that pretty much refuses to move forward). d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP!!
i dont think so, there is some good learning stuff, you can start with this. http://struts.apache.org/2.x/docs/bootstrap.html http://www.infoq.com/articles/converting-struts-2-part1 Thanks, Nuwan - Original Message - From: vikas rao [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, May 01, 2007 9:13 AM Subject: Re: HELP!! well, yeah i am starting from scratch,just beginning to learn struts, the thing is, i'd find it difficult to get help from the internet and books if i have to use the new version right? On 5/1/07, Dave Newton [EMAIL PROTECTED] wrote: --- vikas rao [EMAIL PROTECTED] wrote: I am using struts 2.0.6... Yes, well, that will be an issue if you're trying to use the Struts 1 tags. If you're using Struts 2 you should use the Struts 2 tags. u think its better i use the earlier version??? If you're starting from scratch I would use Struts 2. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - 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]
Jsp out to Persist
Hi All, I have a scenario like I need to persist or get stream of generated output JSP OUT PUT [HTML] I have flow like ACTIONJSP gives HTML out oput to browser Now I need to persist this generated html from jsp to some file. How can I close this Please give me a solution Or How can I call this action jsp with out HTTP also. Thanks Regards Nagesh Reddy DISCLAIMER: The information in this e-mail is the property of InterGlobe and is confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and will be unlawful. If you receive this message in error, please notify the sender immediately and delete all copies of this message - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jsp out to Persist
Are you saving the file to the client or to the server? If you want the client to save the file, you can set the content disposition header... this will cause a file download dialog to appear response.setHeader(content-disposition, attachment; filename=someFileName.html); If you want to save the file to the server, you could use a javax.servlet.Filter which is mapped to the uri(s) that you want to keep a record of. You could wrap the resppnse in a custom ResponseWrapper The response wrapper overrides getOutputStream() and getWriter() so that they return objects that write to the file system and the wrapped response. Cheers, Lance, nagesh.kumar wrote: Hi All, I have a scenario like I need to persist or get stream of generated output JSP OUT PUT [HTML] I have flow like ACTIONJSP gives HTML out oput to browser Now I need to persist this generated html from jsp to some file. How can I close this Please give me a solution Or How can I call this action jsp with out HTTP also. Thanks Regards Nagesh Reddy DISCLAIMER: The information in this e-mail is the property of InterGlobe and is confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and will be unlawful. If you receive this message in error, please notify the sender immediately and delete all copies of this message - 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: When will Struts 2.1 be released?
when is 2.0.8 release coming up ? Tks Herrera Musachy Barroso wrote: You should probably use 2.0.6, as there is no date set for 2.1 (has ever been a date?). What problems are you referring to? There is a 2.0.8 release coming up. musachy On 4/30/07, Minerva CC [EMAIL PROTECTED] wrote: Hi, I plan to use Struts 2 to build a demo by the end of May. Is there any release date has been set? Should I wait for the new release or work around with the problems that the current version has? Thanks, Willa __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Hey you! Would you help me to carry the stone? Pink Floyd -- View this message in context: http://www.nabble.com/When-will-Struts-2.1-be-released--tf3672571.html#a10267747 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jsp out to Persist
Thanks a lot buddy, I need to send a mail by using the same html generated by jsp just like your idea [save the file to the server] How can I implement this do u have any example where I can refer. Thanks Regards Nagesh Reddy. -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 4:52 PM To: Struts Users Mailing List Subject: Re: Jsp out to Persist Are you saving the file to the client or to the server? If you want the client to save the file, you can set the content disposition header... this will cause a file download dialog to appear response.setHeader(content-disposition, attachment; filename=someFileName.html); If you want to save the file to the server, you could use a javax.servlet.Filter which is mapped to the uri(s) that you want to keep a record of. You could wrap the resppnse in a custom ResponseWrapper The response wrapper overrides getOutputStream() and getWriter() so that they return objects that write to the file system and the wrapped response. Cheers, Lance, nagesh.kumar wrote: Hi All, I have a scenario like I need to persist or get stream of generated output JSP OUT PUT [HTML] I have flow like ACTIONJSP gives HTML out oput to browser Now I need to persist this generated html from jsp to some file. How can I close this Please give me a solution Or How can I call this action jsp with out HTTP also. Thanks Regards Nagesh Reddy DISCLAIMER: The information in this e-mail is the property of InterGlobe and is confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and will be unlawful. If you receive this message in error, please notify the sender immediately and delete all copies of this message - 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] DISCLAIMER: The information in this e-mail is the property of InterGlobe and is confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and will be unlawful. If you receive this message in error, please notify the sender immediately and delete all copies of this message - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
s:url bug
Hi, I think I have found a bug with the url tag. If I have a url with 2 params s:url id=msgUrl action=test method=delete s:param name=lastPage value=%{'home'} / s:param name=messageId value=%{test.messageId} / /s:url I get %{msgUrl} gives /test/test!delete.action?lastPage=homeamp;amp;messageId=3851761 Am I doing something wrong? __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Solutions Ltd Registered in England No. 5081669 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP UFI Charitable Trust Registered in England No. 3658378 Registered Charity No. 1081028 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP This email has been scanned by the MessageLabs Email Security System. __
Re: s:url bug
Hi, I think there is a jira ticket for this, look at these links. it may help you. https://issues.apache.org/struts/browse/WW-1624 http://forums.opensymphony.com/thread.jspa?threadID=46866tstart=0 Thanks, Nuwan. - Original Message - From: David Harland [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, May 01, 2007 11:51 AM Subject: s:url bug Hi, I think I have found a bug with the url tag. If I have a url with 2 params s:url id=msgUrl action=test method=delete s:param name=lastPage value=%{'home'} / s:param name=messageId value=%{test.messageId} / /s:url I get %{msgUrl} gives /test/test!delete.action?lastPage=homeamp;amp;messageId=3851761 Am I doing something wrong? __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Solutions Ltd Registered in England No. 5081669 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP UFI Charitable Trust Registered in England No. 3658378 Registered Charity No. 1081028 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP This email has been scanned by the MessageLabs Email Security System. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jsp out to Persist
Ah... this is simpler then, I thought you were recording pages as users were viewing them. Do you need to be logged in to view the page? If yes, check out commons-httpclient, which will maintin cookies for you You will neeed to post to the login page then navigate to the page you want and save the inputStream() for the page http://jakarta.apache.org/commons/httpclient/tutorial.html If no, you can simple use a java.net.URL and openStream() to get a stream to the html (genereated by jsp). http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html nagesh.kumar wrote: Thanks a lot buddy, I need to send a mail by using the same html generated by jsp just like your idea [save the file to the server] How can I implement this do u have any example where I can refer. Thanks Regards Nagesh Reddy. -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 4:52 PM To: Struts Users Mailing List Subject: Re: Jsp out to Persist Are you saving the file to the client or to the server? If you want the client to save the file, you can set the content disposition header... this will cause a file download dialog to appear response.setHeader(content-disposition, attachment; filename=someFileName.html); If you want to save the file to the server, you could use a javax.servlet.Filter which is mapped to the uri(s) that you want to keep a record of. You could wrap the resppnse in a custom ResponseWrapper The response wrapper overrides getOutputStream() and getWriter() so that they return objects that write to the file system and the wrapped response. Cheers, Lance, nagesh.kumar wrote: Hi All, I have a scenario like I need to persist or get stream of generated output JSP OUT PUT [HTML] I have flow like ACTIONJSP gives HTML out oput to browser Now I need to persist this generated html from jsp to some file. How can I close this Please give me a solution Or How can I call this action jsp with out HTTP also. Thanks Regards Nagesh Reddy DISCLAIMER: The information in this e-mail is the property of InterGlobe and is confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and will be unlawful. If you receive this message in error, please notify the sender immediately and delete all copies of this message - 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] DISCLAIMER: The information in this e-mail is the property of InterGlobe and is confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and will be unlawful. If you receive this message in error, please notify the sender immediately and delete all copies of this message - 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: [s2] Dreamweaver plugin for Struts 2?
Good Morning Jason Please let me know when you see a Struts Plugin as I would like to use it in Flash Last year I developed a handshaking for a set of libraries to be called from CF by use of object tag The documentation on using cfx:remote seems to be sparse and incomplete Thanks Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Jason Wyatt [EMAIL PROTECTED] To: 'Struts Users Mailing List' user@struts.apache.org Sent: Monday, April 30, 2007 10:47 PM Subject: [s2] Dreamweaver plugin for Struts 2? I'm hoping to use Dreamweaver for complex JSP layouts with Struts 2 tags. I have a Dreamweaver plugin for Struts 1.x but there doesn't seem to be one for Struts 2 yet. There seems to be a Dreamweaver plugin for WebWorks and was thinking the Struts 2 tags might be close enough to WebWorks for the Dreamwaver WebWorks plugin to render struts 2 tags in jsp pages. Has anyone tried this, or have other suggestions? Thanks in advance, Jason - Falun Dafa Truth - Compassion - Forbearance A mind body practice under persecution in China http://www.faluninfo.net - 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]
Release date 2.0.7 ? 2.0.8?
Hi Have you any probable release dates for the next version of struts 2. Thanks Dave. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Solutions Ltd Registered in England No. 5081669 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP UFI Charitable Trust Registered in England No. 3658378 Registered Charity No. 1081028 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP This email has been scanned by the MessageLabs Email Security System. __
Struts2 - JSF Plugin in portal environment
Hello, I'm trying to get Struts2 working in a portlet environment... so far, so good. However, we have one portlet that requires the use of some 3rd party jsf components. So I've been trying to get the jsf plugin to work with the struts-portlet-default stuff. First thing I noticed, was that the jsf-default definitions in the struts2-jsf-plugin-2.0.6.jar extend struts-default. Since I needed one that extends struts-portlet-default, I copied the package definition over to my own struts-jsf.xml file and made the appropriate changes... If anybody could help me out with this and let me know where I've gone wrong, it would be greatly appreciated. Thanks! -Michael struts-jsf.xml -- struts package name=portlet-jsf-default extends=struts-portlet-default result-types result-type name=jsf class=org.apache.struts2.jsf.FacesResult / /result-types interceptors interceptor class=org.apache.struts2.jsf.FacesSetupInterceptor name=jsfSetup / interceptor class=org.apache.struts2.jsf.RestoreViewInterceptor name=jsfRestore / interceptor class=org.apache.struts2.jsf.ApplyRequestValuesInterceptor name=jsfApply / interceptor class=org.apache.struts2.jsf.ProcessValidationsInterceptor name=jsfValidate / interceptor class=org.apache.struts2.jsf.UpdateModelValuesInterceptor name=jsfUpdate / interceptor class=org.apache.struts2.jsf.InvokeApplicationInterceptor name=jsfInvoke / interceptor-stack name=jsfStack interceptor-ref name=jsfSetup param name=variableResolverorg.apache.struts2.jsf.StrutsVariableResolver/param param name=navigationHandlerorg.apache.struts2.jsf.StrutsNavigationHandler/param /interceptor-ref interceptor-ref name=jsfRestore / interceptor-ref name=jsfApply / interceptor-ref name=jsfValidate / interceptor-ref name=jsfUpdate / interceptor-ref name=jsfInvoke / /interceptor-stack /interceptors default-interceptor-ref name=jsfStack/ /package package name=jsf namespace=/advstruts/jsf extends=portlet-jsf-default interceptors interceptor-stack name=jsfFullStack interceptor-ref name=portletDefaultStack / interceptor-ref name=jsfStack/ /interceptor-stack /interceptors default-interceptor-ref name=jsfFullStack/ action name=Jsf result name=success type=jsf/WEB-INF/pages/hello-simple.jsp/result /action !-- action name=JsfSubmit result name=success type=jsf/WEB-INF/pages/hello-form-submit.jsp/result /action -- /package /struts -- StackTrace: -- 12:07:40,089 DEBUG [Jsr168Dispatcher:300] Entering render 12:07:40,105 DEBUG [PortletRequestMap:53] Dumping request parameters: 12:07:40,105 DEBUG [PortletRequestMap:58] struts.portlet.mode = view 12:07:40,120 DEBUG [PortletRequestMap:58] struts.portlet.action = /advstruts/jsf/Jsf 12:07:40,120 DEBUG [PortletSessionMap:56] Dumping session info: 12:07:40,120 DEBUG [PortletSessionMap:61] com.liferay.util.servlet.SessionMessages = {} 12:07:40,120 DEBUG [PortletSessionMap:61] com.liferay.util.servlet.SessionErrors = {} 12:07:40,120 DEBUG [Jsr168Dispatcher:399] serviceAction 12:07:40,120 DEBUG [Jsr168Dispatcher:407] Creating action proxy for name = Jsf, namespace = /advstruts/jsf 12:07:40,136 DEBUG [FileUploadInterceptor:204] Bypassing /advstruts/jsf/ Jsf 12:07:40,198 DEBUG [AnnotationValidationInterceptor:134] Validating /advstruts/jsf/Jsf with method execute. 12:07:40,276 ERROR [Jsr168Dispatcher:439] Could not execute action java.lang.NullPointerException at com.sun.faces.portlet.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:53) at org.apache.struts2.jsf.FacesSetupInterceptor.intercept(FacesSetupInterceptor.java:221) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216) at org.apache.struts2.portlet.interceptor.PortletPreferencesInterceptor.intercept(PortletPreferencesInterceptor.java:102) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216) -- -- http://mbowman.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:
utf-8 resource files in struts
Hello, I'm trying to make a simple application that will support multiple languages. It works fine when I add two latin resource files for example _en and _fr. But when I try to add _bg (Bulgarian, cyrillic) file which is saved as utf-8 the text is not correctly displayed on the site. I have added %@ page contentType=text/html; charset=UTF-8 pageEncoding=UTF-8 language=java % to the jsp file but this doesn't help. Any ideas? Ozkan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: s:url bug
Hi, From the constructed url I assume you refer the url like this: a href=s:property value=%{msgUrl}/some message/a Try using s:a/, like this s:a href=%{#msgUrl}some text again/s:a AFAIK, s:a / will give you the correct url. HTH, MK Tan On 5/1/07, David Harland [EMAIL PROTECTED] wrote: Hi, I think I have found a bug with the url tag. If I have a url with 2 params s:url id=msgUrl action=test method=delete s:param name=lastPage value=%{'home'} / s:param name=messageId value=%{test.messageId} / /s:url I get %{msgUrl} gives /test/test!delete.action?lastPage=homeamp;amp;messageId=3851761 Am I doing something wrong? __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Solutions Ltd Registered in England No. 5081669 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP UFI Charitable Trust Registered in England No. 3658378 Registered Charity No. 1081028 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP This email has been scanned by the MessageLabs Email Security System. __
Re: utf-8 resource files in struts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ozkan, zkn wrote: I'm trying to make a simple application that will support multiple languages. It works fine when I add two latin resource files for example _en and _fr. But when I try to add _bg (Bulgarian, cyrillic) file which is saved as utf-8 the text is not correctly displayed on the site. It used to be that all .properties files had to be in ISO-8859-1 form, with escape sequences for non-Latin characters. If you have a UTF-8 properties file, transform it for deployment like this: $ native2ascii -encoding UTF-8 your.properties your.properties.iso88591 The file your.properties.iso88591 should now contain the appropriate information to be loaded by your app. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGN0gc9CaO5/Lv0PARAoPnAJ9q6aQkh61pHJoHKFIjfQy/xJwJXQCfZR0A R5xChci2SLVvZ7ocL37HfrA= =VdPP -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: utf-8 resource files in struts
I found this helpful on understanding how cyrillic characters are represented thru Unicode http://en.wikipedia.org/wiki/Cyrillic_alphabet If you're using windows so You'll need to load Cyrillic Input MethodEditor http://www.microsoft.com/windows/ie/ie6/downloads/recommended/ime/default.mspx As well as Load in cyrillic fonts so you can actually see the correct characters for 'codepoints' http://babel.uoregon.edu/yamada/fonts/russian.html Anyone else??? M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: zkn [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, May 01, 2007 9:28 AM Subject: utf-8 resource files in struts Hello, I'm trying to make a simple application that will support multiple languages. It works fine when I add two latin resource files for example _en and _fr. But when I try to add _bg (Bulgarian, cyrillic) file which is saved as utf-8 the text is not correctly displayed on the site. I have added %@ page contentType=text/html; charset=UTF-8 pageEncoding=UTF-8 language=java % to the jsp file but this doesn't help. Any ideas? Ozkan - 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]
Tiles Controllers (preparer)
How can I place a bean on the OGNL from within my Tiles Controller so that it's properties are available to the S2 custom tags? -- Scott [EMAIL PROTECTED]
Re: Tiles 2 woes
Antonio -- Does the ViewPreparer (aka Tiles Controller) has access to the OGNL stack? I am trying to figure out a way to push beans on the root of the tree (like S2 does) so the S2 custom tags will implicitly link up with them from my page parts. The only thing I have been able to figure out so far is how to attach the tiles controller generated beans to the #request object which results in messy jsp code. Scott On 4/12/07, Antonio Petrelli [EMAIL PROTECTED] wrote: 2007/4/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Thanks Antonio. This is what I decided after searching through the Tiles jar for prepare. Can you tell me if Tiles2 is documented somewhere. Documentation is on the way, since we were busy preparing a release (and having Easter holidays :-) ) it never came out, but I hope it is a question of some weeks. The official Tiles site is: http://tiles.apache.org/ Also, is there a guide that explains the required changes when migrating Tiles1 to Tiles2? I am working on it right now. This looks like some really nice work and I'm happy to see that Tiles has remained in lockstep with Struts. I have used Tiles for years and have always thought it was one of the greatest strengths of Struts. In fact, most developers around here don't even view them as being unrelated. This is probably why I posted in the Struts area. I assume that you are not alone, there are still some Struts pages that refer to Tiles 2 as a sandbox project, and Struts-Tiles is still there, though it seems not to be supported anymore. Sorry about that, Don't be sorry, you were in the *right* mailing list in your first questions, but then they became Tiles-related and not Struts-related. Anyway stay tuned for a release of Tiles 2 very soon. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott [EMAIL PROTECTED]
[S2] s:url w/ params?
All, Quick question with S2 tags using s:url. Have the following: input type=button onclick=location.href='s:url action=editActions:param name=method value=add//s:url' Value=Add/ When viewing the page source after rendering should it not read: location.href='editAction.do?method=add' ? Or is my understanding of the param tag incorrect and in this case do you need explicitly do location.href='s:url action=editAction/?method=add' Thanks in advance! Regards, Paul
Re: [S2] s:url w/ params?
--- Paul [EMAIL PROTECTED] wrote: input type=button onclick=location.href='s:url action=editActions:param name=method value=add//s:url' Value=Add/ When viewing the page source after rendering should it not read: location.href='editAction.do?method=add' ? http://struts.apache.org/2.x/docs/tag-syntax.html Value is an object, so you'd probably want: s:param name=method value=%{'add'}/ That's probably why they have the warning in yellow on (every?) tag doc page and the link above contains the following gem: = value is an Object! [...] if there is a reason to set the value directly, be advised that value is an Object NOT a String. Since value is not a String, whatever is passed to value is evaluated as an expression - NOT a String literal. ;) I *think* what they're trying to say is that it's not a string, but an object. (That section always makes me smile; it's a great reminder for every... single... time... I do the exact same thing because I forgot.) d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles 2 woes
--- [EMAIL PROTECTED] wrote: Antonio -- Not directed towards me so I'm somewhat hesitant to answer given responses in the past, but: ./views/jsp/TagUtils.java: ValueStack stack = (ValueStack) req.getAttribute(ServletActionContext.STRUTS_VALUESTACK_KEY); Perhaps the stack is accessible from within the request, but I cannot test this at the moment. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [S2] s:url w/ params?
Ah! Doh! Thanks once again Dave. Works now. :) P. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 11:02 AM To: Struts Users Mailing List;Paul Subject: Re: [S2] s:url w/ params? --- Paul [EMAIL PROTECTED] wrote: input type=button onclick=location.href='s:url action=editActions:param name=method value=add//s:url' Value=Add/ When viewing the page source after rendering should it not read: location.href='editAction.do?method=add' ? http://struts.apache.org/2.x/docs/tag-syntax.html Value is an object, so you'd probably want: s:param name=method value=%{'add'}/ That's probably why they have the warning in yellow on (every?) tag doc page and the link above contains the following gem: = value is an Object! [...] if there is a reason to set the value directly, be advised that value is an Object NOT a String. Since value is not a String, whatever is passed to value is evaluated as an expression - NOT a String literal. ;) I *think* what they're trying to say is that it's not a string, but an object. (That section always makes me smile; it's a great reminder for every... single... time... I do the exact same thing because I forgot.) d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
addFieldError and action tag in a JSP
Hello, I use the action tag in a JSP: s:action name=references id=references /. When I submit from this JSP to another action, say target.action, and I meet addFieldError(...) in the execute() method of the target action, if I return to the JSP to display the field error message, all my code in the JSP doesn't have access anymore to the #references from the action tag... Why? Thanks. -- Guillaume Carré - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [S2] s:url w/ params?
--- Paul [EMAIL PROTECTED] wrote: Doh! Thanks once again Dave. Works now. :) I was thinking about getting value is an Object! as a tattoo, but that's a little esoteric, even for me. I settled for a couple of Post-It! (tm) notes. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [BEER] Re: Books
On 27/04/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: I don't know what information I can or can't give out, so suffice it to say you won't be waiting too much longer for books specifically on S2... and no, before anyone asks, I'm not writing one :) Is this the one that you're hinting at http://www.amazon.com/Struts-Design-Programming-Tutorial/dp/0980331609 Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dynamic parameters in struts.xml
Hello everyone, I am using Struts2 and I am curious how to pass dynamic parameter values to an action. I have following XML snippet: action name=otherDeposite class=com.zduniak.web.actions.OtherDepositeAction result name=back type=redirect-action param name=actionNameaccountsList/param /result result name=next type=redirect-action param name=actionNameaccountsList/param param name=myParametermyValue/param param name=myParameter2{#myValue}/param param name=myParameter3{myValue}/param param name=myParameter4%{myValue}/param param name=myParameter5${myValue}/param param name=myParameter6%{#myValue}/param /result result name=input/jsp/otherDeposite.jsp/result /action myValue is a getter method in OtherDepositeAction action class. Unfortunately none of these expressions are properly exchanged into value from myValue property. Is there any solution to passing dynamic parameters while redirecting to another action ? Thank you and kind regards, -- Marcin Zduniak[EMAIL PROTECTED] + 48 600 27 88 66 http://www.zduniak.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [BEER] Re: Books
--- Roger Varley [EMAIL PROTECTED] wrote: On 27/04/07, Frank W. Zammetti wrote: I don't know what information I can or can't give out, so suffice it to say you won't be waiting too much longer for books specifically on S2... Is this the one that you're hinting at He's probably talking about SiAv2. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [BEER] Re: Books
No sir, Zathras says not the one! :) Frank (which I guess means you can surmise that not only will you not have to wait too long for S2 books, but you'll have choices to make too!) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) and JavaScript, DOM Scripting and Ajax Projects (2007, Apress, ISBN 1-59059-816-4) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Tue, May 1, 2007 11:35 am, Roger Varley wrote: On 27/04/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: I don't know what information I can or can't give out, so suffice it to say you won't be waiting too much longer for books specifically on S2... and no, before anyone asks, I'm not writing one :) Is this the one that you're hinting at http://www.amazon.com/Struts-Design-Programming-Tutorial/dp/0980331609 Regards - 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: [BEER] Re: Books
On Tue, May 1, 2007 11:43 am, Dave Newton wrote: He's probably talking about SiAv2. Geez, you know your a geek when you see SiAv2 and think it's an abbreviation for some sort of new Aliens vs. Predator movie. Frank (of course, your an even BIGGER geek if you think it might actually not suck eggs this time around) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) and JavaScript, DOM Scripting and Ajax Projects (2007, Apress, ISBN 1-59059-816-4) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [BEER] Re: Books
--- Frank W. Zammetti [EMAIL PROTECTED] wrote: On Tue, May 1, 2007 11:43 am, Dave Newton wrote: He's probably talking about SiAv2. Geez, you know your a geek when you see SiAv2 and think it's an abbreviation for some sort of new Aliens vs. Predator movie. :D (of course, your an even BIGGER geek if you think it might actually not suck eggs this time around) Hope springs eternal :/ d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] populating user roles
I would like to populate the user roles from a database during login, but have not found any examples how to do so in Struts2. I have found an example how to use RolesInterceptor to secure access to specific actions, but no hints on how to populate the roles. /Flemming This message was sent using IMP, the Internet Messaging Program. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Books Reference Material
Hello All, I'm moving into a position that requires me to work with S1. I have been toying with S1, but now that I will be required to work with it in a more day-to-day capacity, I am trying to get some opinions on good books / reference material. To date I have been using online resources to slowly learn S1, but now that I need to ramp up at a more accelerated pace I wanted to see if anyone had some recommendations on any good books on S1 or other references that will help me get up to speed quickly? I am familiar with the challenges that an MVC framework like Struts is designed to solve. In light of this, I am not looking for a dummies type learning tool, but more something that is geared toward developers who understand the concepts, but perhaps not the nuts and bolts of struts. Any input? Thanks, Rich Kroll - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Books Reference Material
Hi Rich- I havent seen any Struts2 books out yet (anyone?) As a way to slowly introduce yourself to MVC you may want to consider 'Struts in Action' HTH/ Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Richard Kroll [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, May 01, 2007 12:42 PM Subject: Books Reference Material Hello All, I'm moving into a position that requires me to work with S1. I have been toying with S1, but now that I will be required to work with it in a more day-to-day capacity, I am trying to get some opinions on good books / reference material. To date I have been using online resources to slowly learn S1, but now that I need to ramp up at a more accelerated pace I wanted to see if anyone had some recommendations on any good books on S1 or other references that will help me get up to speed quickly? I am familiar with the challenges that an MVC framework like Struts is designed to solve. In light of this, I am not looking for a dummies type learning tool, but more something that is geared toward developers who understand the concepts, but perhaps not the nuts and bolts of struts. Any input? Thanks, Rich Kroll - 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: Books Reference Material
--- Martin Gainty [EMAIL PROTECTED] wrote: I havent seen any Struts2 books out yet (anyone?) He specifically asked for S1 books. From: Richard Kroll [EMAIL PROTECTED] I'm moving into a position that requires me to work with S1. _Programming Struts_ and Struts in Action was my go-to book for awhile, but they're a bit long-in-the-tooth; lately I've just used online references. Several people have told me that _Struts: The Complete Reference_ 2e is their current fave. And it's complete, says so right in the title. I believe it covers 1.3 as well. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] populating user roles
The easiest way I've found to do this is to write a ServletFilter that wraps the HttpServletRequest with a class that implements the isUserInRole method based on your database roles from an object you populated and placed in the Session. Josh On 5/1/07, Flemming Seerup [EMAIL PROTECTED] wrote: I would like to populate the user roles from a database during login, but have not found any examples how to do so in Struts2. I have found an example how to use RolesInterceptor to secure access to specific actions, but no hints on how to populate the roles. /Flemming This message was sent using IMP, the Internet Messaging Program. - 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: Books Reference Materia
Go for Struts 2, don't worry about Struts 1 too much. I'm allowed to say this because I know we will be working together and we will be rewriting everything on top of S2 very soon :) musachy On 5/1/07, Dave Newton [EMAIL PROTECTED] wrote: --- Martin Gainty [EMAIL PROTECTED] wrote: I havent seen any Struts2 books out yet (anyone?) He specifically asked for S1 books. From: Richard Kroll [EMAIL PROTECTED] I'm moving into a position that requires me to work with S1. _Programming Struts_ and Struts in Action was my go-to book for awhile, but they're a bit long-in-the-tooth; lately I've just used online references. Several people have told me that _Struts: The Complete Reference_ 2e is their current fave. And it's complete, says so right in the title. I believe it covers 1.3 as well. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd
RE: Books Reference Materia
Go for Struts 2, don't worry about Struts 1 too much. I'm allowed to say this because I know we will be working together and we will be rewriting everything on top of S2 very soon :) musachy I wondered if you were going to be on this list, good to see you here! I'll start focusing my attention to S2 related materials then. Thanks for the pointer! Rich Kroll - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Books Reference Materia
--- Richard Kroll [EMAIL PROTECTED] wrote: I wondered if you were going to be on this list, good to see you here! Musachy lives here; he's the man--working with him should be entertaining :) d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Integrating with other frameworks
1.Could anybody explain me why it is good to intagreate one framework with another? 2. When it is useful? 3. What gives it to the project? Thnx -- View this message in context: http://www.nabble.com/Integrating-with-other-frameworks-tf3676571.html#a10273717 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Integrating with other frameworks
Didn't you already ask about this two months ago? --- puchacz [EMAIL PROTECTED] wrote: 1.Could anybody explain me why it is good to intagreate one framework with another? 2. When it is useful? 3. What gives it to the project? Is this your homework or something? d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] is there an equivalent for the old html:multibox tag?
actually, I did have trouble getting it to work but it doesn't really matter because that's not really what I am looking for. That tag will create a whole list of checkboxes, but what I really need is to create a single checkbox which is part of a list. It's a weird situation so it wouldn't really surprise me if s2 didn't have support for it, but I wanted to ask. in any case, the situation is that i am iterating over a collection and displaying each entry in a list on the page. in that list i am providing a couple of checkboxes which affect the status of that entry, 1 which would delete the entry, the other which would set a different status. so my basic code is ... s:iterator list=myCollection tr class=entry td // delete checkbox /td td // status checkbox /td td // print entry details /td /tr /s:iterator so i'm not really trying to print a whole list of checkboxes, i'm trying to print a single checkbox which is based on a list. it looks like that's what the old html:multibox tag was for, but i dunno, i didn't write the original code that i am updating :/ -- Allen Dave Newton wrote: --- Allen Gilliland [EMAIL PROTECTED] wrote: Is there a direct equivalent struts2 tag to the struts1 html:multibox tag? I am looking at some old code being migrated and i'm not sure how best to accomplish the same thing in struts2 ... Does s:checkboxlist.../ not work for you? http://struts.apache.org/2.x/docs/checkboxlist.html d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - 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]
Validation Action Instantiation
I am having a problem with an Action class when validation fails. A property that is being set in this Action via the hyperlink is being lost when validation intercedes and the Action is regenerated. Has anyone else observed this? Is there a way to restore the Action properties by way of configuration? -- Scott [EMAIL PROTECTED]
Re: utf-8 resource files in struts
On 01.05.2007, at 17:01, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ozkan, zkn wrote: I'm trying to make a simple application that will support multiple languages. It works fine when I add two latin resource files for example _en and _fr. But when I try to add _bg (Bulgarian, cyrillic) file which is saved as utf-8 the text is not correctly displayed on the site. It used to be that all .properties files had to be in ISO-8859-1 form, with escape sequences for non-Latin characters. If you have a UTF-8 properties file, transform it for deployment like this: $ native2ascii -encoding UTF-8 your.properties your.properties.iso88591 The file your.properties.iso88591 should now contain the appropriate information to be loaded by your app. Thanks, that worked. But why do you say had to be? Is there other way to do it? Or may be just I didn't understand you. We tried with struts 1 and struts 2 and it wasn't working. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGN0gc9CaO5/Lv0PARAoPnAJ9q6aQkh61pHJoHKFIjfQy/xJwJXQCfZR0A R5xChci2SLVvZ7ocL37HfrA= =VdPP -END PGP SIGNATURE- - 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: utf-8 resource files in struts
On 01.05.2007, at 17:21, Martin Gainty wrote: I found this helpful on understanding how cyrillic characters are represented thru Unicode http://en.wikipedia.org/wiki/Cyrillic_alphabet If you're using windows so You'll need to load Cyrillic Input MethodEditor http://www.microsoft.com/windows/ie/ie6/downloads/recommended/ime/ default.mspx We are using OS X. But it's not a problem with fonts. We can display data in cyrillic. The problem only occurs when reading data from a resource file. As well as Load in cyrillic fonts so you can actually see the correct characters for 'codepoints' http://babel.uoregon.edu/yamada/fonts/russian.html Anyone else??? M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: zkn [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, May 01, 2007 9:28 AM Subject: utf-8 resource files in struts Hello, . I'm trying to make a simple application that will support multiple languages. It works fine when I add two latin resource files for example _en and _fr. But when I try to add _bg (Bulgarian, cyrillic) file which is saved as utf-8 the text is not correctly displayed on the site. . I have added %@ page contentType=text/html; charset=UTF-8 pageEncoding=UTF-8 language=java % to the jsp file but this doesn't help. . Any ideas? . Ozkan . - 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: Integrating with other frameworks
Sorry Dave but I didn't... And please don't tell me to make a google searching , because If I could find this information I wouldn't be asked for help. Yes it my homework! Dave Newton-4 wrote: Didn't you already ask about this two months ago? --- puchacz [EMAIL PROTECTED] wrote: 1.Could anybody explain me why it is good to intagreate one framework with another? 2. When it is useful? 3. What gives it to the project? Is this your homework or something? d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Integrating-with-other-frameworks-tf3676571.html#a10274997 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] is there an equivalent for the old html:multibox tag?
Okay, I guess that s:checkbox can do what I want but I am having trouble getting the multiple values from the results of my checkboxes. So if I have this ... s:iterator id=entry value=myCollection s:checkbox name=deleteIds fieldValue=%{entry.id} / s:checkbox name=disableIds fieldValue=%{entry.id} / /s:iterator and in my action ... private String[] deleteIds = new String[0]; public String[] getDeleteIds(); public void setDeleteIds(String[] deleteIds); // same thing for disableIds I think that should work but I'm not getting the values that I expect. When I check only a single box it seems to submit values for both the delete and disabled boxes, and if I check multiple boxes I only get a single value. I am also curious why there are 2 inputs for my checkboxes ... input type=checkbox name=deleteIds value=0112f2dd1248f33f011248f6bcb40004 id=globalCommentManagement_deleteIs/ input type=hidden name=__checkbox_deleteIds value=0112f2dd1248f33f011248f6bcb40004/ is String[] the right type to use for collecting the values of the checkboxes? why am i not getting the multiple values and why are the 2 checkboxes affecting each other? -- Allen Allen Gilliland wrote: actually, I did have trouble getting it to work but it doesn't really matter because that's not really what I am looking for. That tag will create a whole list of checkboxes, but what I really need is to create a single checkbox which is part of a list. It's a weird situation so it wouldn't really surprise me if s2 didn't have support for it, but I wanted to ask. in any case, the situation is that i am iterating over a collection and displaying each entry in a list on the page. in that list i am providing a couple of checkboxes which affect the status of that entry, 1 which would delete the entry, the other which would set a different status. so my basic code is ... s:iterator list=myCollection tr class=entry td // delete checkbox /td td // status checkbox /td td // print entry details /td /tr /s:iterator so i'm not really trying to print a whole list of checkboxes, i'm trying to print a single checkbox which is based on a list. it looks like that's what the old html:multibox tag was for, but i dunno, i didn't write the original code that i am updating :/ -- Allen Dave Newton wrote: --- Allen Gilliland [EMAIL PROTECTED] wrote: Is there a direct equivalent struts2 tag to the struts1 html:multibox tag? I am looking at some old code being migrated and i'm not sure how best to accomplish the same thing in struts2 ... Does s:checkboxlist.../ not work for you? http://struts.apache.org/2.x/docs/checkboxlist.html d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - 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: Integrating with other frameworks
Dejavu? http://www.mail-archive.com/user@struts.apache.org/msg56310.html musachy On 5/1/07, puchacz [EMAIL PROTECTED] wrote: Sorry Dave but I didn't... And please don't tell me to make a google searching , because If I could find this information I wouldn't be asked for help. Yes it my homework! Dave Newton-4 wrote: Didn't you already ask about this two months ago? --- puchacz [EMAIL PROTECTED] wrote: 1.Could anybody explain me why it is good to intagreate one framework with another? 2. When it is useful? 3. What gives it to the project? Is this your homework or something? d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Integrating-with-other-frameworks-tf3676571.html#a10274997 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: Integrating with other frameworks
Now I feel shame but I forgot about this. :) Sorry again! Musachy Barroso wrote: Dejavu? http://www.mail-archive.com/user@struts.apache.org/msg56310.html musachy On 5/1/07, puchacz [EMAIL PROTECTED] wrote: Sorry Dave but I didn't... And please don't tell me to make a google searching , because If I could find this information I wouldn't be asked for help. Yes it my homework! Dave Newton-4 wrote: Didn't you already ask about this two months ago? --- puchacz [EMAIL PROTECTED] wrote: 1.Could anybody explain me why it is good to intagreate one framework with another? 2. When it is useful? 3. What gives it to the project? Is this your homework or something? d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Integrating-with-other-frameworks-tf3676571.html#a10274997 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd -- View this message in context: http://www.nabble.com/Integrating-with-other-frameworks-tf3676571.html#a10275278 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: Integrating with other frameworks
--- puchacz [EMAIL PROTECTED] wrote: Yes it my homework! In that case I would consider thinking about the answer to these questions yourself for awhile: they are not particularly difficult. 1.Could anybody explain me why it is good to intagreate one framework with another? Here are some questions to get you started. Do all frameworks provide identical functionality? Are there any reasons to use a framework besides its functionality? d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S1] Application container during development for fastest code/test cycle?
We're developing a Struts application which will be deployed onto Websphere eventually. However, I find Websphere very heavy weight do use during development - publishing seems to take for ever, and seems as thought for many changes it must be restarted. What's a common container to use during development that will facilitate the fastest (computer burden-wise) code, deploy, test, code, deploy, test cycles etc? I've tried Tomcat, and that seems to work better, but it still has to be restarted (well, eclipse (RAD actually) seems to insist on restarting it). Jetty? And are there any guides out there to guide in setting up the fastest environment? Is there anyway to get changes instantaneously viewable aka Grails / Rails etc? I will need to setup JNI for the datasource (DB2 and Oracle) in the container, and even better have the container support j_security_check. -- View this message in context: http://www.nabble.com/-S1--Application-container-during-development-for-fastest-code-test-cycle--tf3677559.html#a10276929 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ActionForm
In which scope does the ActionForm lives??? In request or session?? Or what?? If in the Action Class I set some values to the form, do I have to add the form back to the request or what do I have to do so the success page will see the modified form??? Is it this scope ??(JSP ---form--- Action.java form--- JSP ) Please help.
Re: ActionForm
It lives in whatever scope you tell it :-) There is a scope parameter on the action tag. It defaults to session. Objects persist until the holder is thrownaway. For requests, objects in request scope are thrown out when the request is thrown out. Objects in the session are thrown out when the session is thrown out, etc. Paul On 5/1/07, Ashuin Sharma Chamorro [EMAIL PROTECTED] wrote: In which scope does the ActionForm lives??? In request or session?? Or what?? If in the Action Class I set some values to the form, do I have to add the form back to the request or what do I have to do so the success page will see the modified form??? Is it this scope ??(JSP ---form--- Action.java form--- JSP ) Please help.
ActionForm
From: Ashuin Sharma Chamorro Sent: Tuesday, May 01, 2007 5:12 PM To: 'Struts Users Mailing List' Subject: ActionForm In which scope does the ActionForm lives??? In request or session?? Or what?? If in the Action Class I set some values to the form, do I have to add the form back to the request or what do I have to do so the success page will see the modified form??? Is it this scope ??(JSP ---form--- Action.java form--- JSP ) Please help.
Re: When will Struts 2.1 be released?
Pedro Herrera wrote: when is 2.0.8 release coming up ? Tks Herrera 2.0.7 was released? Where do I get it? The apache.org site is showing 2.0.6 still. tia, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: When will Struts 2.1 be released?
Struts 2 version 2.0.6 is the current latest GA version. The Struts Project Management is using a Milestone Build system of numbering. This means GA or public release may skip version number if a build doesn't make the grade (acceptable Apache Struts Community Standards of quality). That build version is skipped and a new version number is assigned as the next release. Here's a link to give you more information about how the fine hard working people at Apache Struts (and WebWorks) manages build version numbers: http://struts.apache.org/kickstart.html#releases I think I got this correct. But by all means, please correct me if I am off base on this. On 01/05/07, Patrick J. Maloney [EMAIL PROTECTED] wrote: Pedro Herrera wrote: when is 2.0.8 release coming up ? Tks Herrera 2.0.7 was released? Where do I get it? The apache.org site is showing 2.0.6 still. tia, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: utf-8 resource files in struts
I found something nice about JBuilder (version 2006, anyway): If you paste cyrillic into a .props file and then save it, it will escape it for you (you don't see it until you reopen the file). Then, you just need to put UTF-8 in the HTML file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles 2 woes
For the sake of completeness, this appears to work fine. I can access values using the S2 tags from ValueStack from the tile's JSP, setting the values via either setValue() or push(). That said, given s:action.../ I'm not sure I see a huge advantage to doing so; I was thinking about this several months ago and was unsure if the (slight) extra work to do this in a preparer was really worth it. Does anybody have any thoughts regarding the value of Tiles view preparers in an S2 environment? To me (right now, at least) it seems like extra work, another API to deal with, (potential) synchronization issues, etc., since I already have a lot of the functionality built-in to S2. Thanks, Dave --- Dave Newton [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote: Antonio -- Not directed towards me so I'm somewhat hesitant to answer given responses in the past, but: ./views/jsp/TagUtils.java: ValueStack stack = (ValueStack) req.getAttribute(ServletActionContext.STRUTS_VALUESTACK_KEY); Perhaps the stack is accessible from within the request, but I cannot test this at the moment. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] populating user roles
To achieve this we wrote a custom AuthInterceptor which we added to the default stack, which adds some core authorisation functionality - add user object (with roles) to the session, add a custom user menu (based on roles) to the session and checks authorisation for the action. It's pretty straight forward with Interceptors. Mark Mernard has an example on his blog which is a good starting point and WW in Action also has a good example, just download the source code from the manning site and look for the sample AuthInterceptor code. Z. I would like to populate the user roles from a database during login, but have not found any examples how to do so in Struts2. I have found an example how to use RolesInterceptor to secure access to specific actions, but no hints on how to populate the roles. /Flemming This message was sent using IMP, the Internet Messaging Program. - 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: utf-8 resource files in struts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ozkan, zkn wrote: Thanks, that worked. But why do you say had to be? Is there other way to do it? Or may be just I didn't understand you. Sorry for the confusion. I started that message before I did a bit of research and confirmed that it it still the case. java.util.Properties.load() (and therefore use of java.util.PropertyResourceBundle through java.util.ResourceBundle.getBundle()) always require ISO-8859-1 encoding in properties files. You can load properties files in other ways, but really ResourceBundle.getBundle is the best possible way to load a properties file. We tried with struts 1 and struts 2 and it wasn't working. This should be completely independent of Struts. It's just the way that Java works. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGOAFi9CaO5/Lv0PARAhElAJ9SlDlBZrxFxnD6CKhbQCpyN5QALQCeIoW9 dJVepGnJNDFaljIc4QeCQfQ= =vprw -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: utf-8 resource files in struts
zkn wrote: On 01.05.2007, at 17:01, Christopher Schultz wrote: It used to be that all .properties files had to be in ISO-8859-1 form, with escape sequences for non-Latin characters. ... But why do you say had to be? Is there other way to do it? Or may be just I didn't understand you. We tried with struts 1 and struts 2 and it wasn't working. This requirement is still in place; it comes from the Java API specification for the Properties file format (referenced from the PropertyResourceBundle documentation): http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html#encoding L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic parameters in struts.xml
Marcin Zduniak wrote: Hello everyone, I am using Struts2 and I am curious how to pass dynamic parameter values to an action. I have following XML snippet: action name=otherDeposite class=com.zduniak.web.actions.OtherDepositeAction result name=back type=redirect-action param name=actionNameaccountsList/param /result result name=next type=redirect-action param name=actionNameaccountsList/param param name=myParametermyValue/param param name=myParameter2{#myValue}/param param name=myParameter3{myValue}/param param name=myParameter4%{myValue}/param param name=myParameter5${myValue}/param param name=myParameter6%{#myValue}/param /result result name=input/jsp/otherDeposite.jsp/result /action myValue is a getter method in OtherDepositeAction action class. Unfortunately none of these expressions are properly exchanged into value from myValue property. Is there any solution to passing dynamic parameters while redirecting to another action ? I believe the parameters should become part of the query string for the redirect, which should work. The correct form is what you have for myParameter5, i.e. the '${myValue}' form. Are you sure your getter is correctly specified and returning a non-null, non-empty value? Is the action definitely returning a result of 'next'? What happens if you don't use a redirect? L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] populating user roles
Those are good pointers. The key is that it all depends on how you are handling authentication and authorization, since there are so many possible approaches. For example, if you use container managed security, setting up the roles is a matter of configuring your container appropriately. If you're using a non-'standards based' authentication mechanism (filters, S2 interceptors, or other custom functionality), you'll need to manage roles yourself. Zoran's pointers should get you on your way in that case. L. Zoran Avtarovski wrote: To achieve this we wrote a custom AuthInterceptor which we added to the default stack, which adds some core authorisation functionality - add user object (with roles) to the session, add a custom user menu (based on roles) to the session and checks authorisation for the action. It's pretty straight forward with Interceptors. Mark Mernard has an example on his blog which is a good starting point and WW in Action also has a good example, just download the source code from the manning site and look for the sample AuthInterceptor code. Z. I would like to populate the user roles from a database during login, but have not found any examples how to do so in Struts2. I have found an example how to use RolesInterceptor to secure access to specific actions, but no hints on how to populate the roles. /Flemming This message was sent using IMP, the Internet Messaging Program. - 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: [OT] [S1] Application container during development for fastest code/test cycle?
Antony Stubbs wrote: We're developing a Struts application which will be deployed onto Websphere eventually. However, I find Websphere very heavy weight do use during development - publishing seems to take for ever, and seems as thought for many changes it must be restarted. What's a common container to use during development that will facilitate the fastest (computer burden-wise) code, deploy, test, code, deploy, test cycles etc? I've tried Tomcat, and that seems to work better, but it still has to be restarted (well, eclipse (RAD actually) seems to insist on restarting it). Jetty? And are there any guides out there to guide in setting up the fastest environment? Is there anyway to get changes instantaneously viewable aka Grails / Rails etc? I will need to setup JNI for the datasource (DB2 and Oracle) in the container, and even better have the container support j_security_check. This is in no way Struts specific, but I generally use either Tomcat with a deployment descriptor set up to support reloading (hot deployment) of the web-app, or Jetty via the Maven plugin. Adding a suitably configured deployment descriptor to your app may well make Eclipse/RAD/whatever use hot-deploy behaviour too, but you'll need to go through their support channels to confirm that (or just give it a try :-) L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Conditional validation
Is there a way to setup conditional validation through the validation.xml file? I'm currently user the visitor validator method where my core user validation properties are in a User-validation.xml file. I want to be able to use this same file for all my user actions (register, add, update) and just have conditional code which looks a user field to determine validation. At the moment I'm using a combination of the valididation.xml file and the validate method in the action. I know the following doesn't work, but can I have something like this: !DOCTYPE validators PUBLIC -//OpenSymphony Group//XWork Validator 1.0.2//EN http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd; validators validator type=expression param name=expression user.action.equals('insert') || user.action.equals('register')/param !-- only validate these fileds when inserting and registering a user -- field name=user.password field-validator type=requiredstring message key=user.password.empty/ /field-validator /field field name=user.confirmPassword field-validator type=requiredstring message key=user.confirmPassword.empty/ /field-validator /field /validator !-- core validated fields -- field name=user.name field-validator type=requiredstring message key=user.name.empty resource not found/message /field-validator /field field name=user.email field-validator type=requiredstring short-circuit=true message key=user.email.empty/ /field-validator field-validator type=email message key=user.email.invalid/ /field-validator /field field name=user.phone field-validator type=stringlength param name=minLength10/param message key=user.phone.length/ /field-validator /field field name=user.city field-validator type=requiredstring message key=user.city.empty/ /field-validator /field Z. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]