Re: nested:select to logic:iterate or nested:iterate
id="product"> Thanks, Nuwan - Original Message - From: "Bhanu Valasa" <[EMAIL PROTECTED]> To: Sent: Friday, January 19, 2007 7:20 PM Subject: nested:select to logic:iterate or nested:iterate Hello gurus I have struts tag in my jsp, which displays HTML select option box with selected (a String array in the bean) Instead HTML Select box I want to print the String array elements in text format. Could some one please help me how to use logic:iterate or nested:iterate Please suggest thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Any hope to have ajax form submission working?
Hi Musachy, Your question to prepare some test form/page gave some results. My problem was that I had problems submitting remote forms. Submitting with a button had problems, then I tried to submit it with the element. And it worked in FF but not in IE. But I found something interesting after long testing :) Some pseudocode below: Save IE 6 In this case makes request to '/app/namespace/my.action' ut does not attach params. If I switch targets attribute to point to the second div - then it works and passes params The only difference that I see is that it is not it's parent div. Under FF it works in both cases. Is there any special reason of this behaviour? Can it be fixed? Now I can easily make workarounds - now I know the reason of failures, but can it be fixed? Or this is some bug in IE? Or maybe this is not allowed? In fact what I tried is that the 'myParentDiv' element is of type and the form is loaded by the browser in a separate request. But I tried to make both div elements to be declared with that preload their contents. It still works only if the target is not the parent div but the other div. Best Regards Dariusz Wojtas On 1/17/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: Can you create a ticket with the scenarios that do not work? I'll probably have time to go over it on the weekend. thanks musachy Dariusz Wojtas wrote: > Hi Musachy, > > This is probably lack of precision from my side. > Saying "ajax forms" I thought about remote forms. > > Even having them working with inputs of type submit/image only (no > anchors) - just to have one method of submission that works in all > cases. Currently there are problems with both: anchor and input button > submission. > > At least one submission method that works with remote forms in all > scenarios > > Best regards > Dariusz Wojtas > > > On 1/17/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: >> I think the problem is only with files right? On showcase there are >> several examples (not the remoting forms), like on the div, anchor, and >> button page which work. >> >> regards >> musachy >> >> Dariusz Wojtas wrote: >> > Hi, >> > >> > Does the current form submission come from a problem in dojo? >> > Or is this something else? >> > What are the current conclusions about it? >> > >> > I do not want to be too annoying, this is just important for me. >> > Any chance to have it working within a week or two? >> > >> > Best regards >> > Dariusz Wojtas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] question about controlling display with css_xhtml theme and errors
So, I'm working on my first S2 application and enjoying a lot of the things which always looked pretty cool about WebWork. However, I'm doing client side validation with s:form and the "css_xhtml" theme, and there's something I want to change. Given my design, the insertion of error messages at the "top" of the control looks awful. I want the messages at the bottom. What is the best way to take control of this? I'm no CSS whiz, but I don't think there's a way to do it just with CSS rules. Do I need to override the definition of the "addError" javascript method which actually puts the message in the HTML? That seems a lot harder than it should be. Do I need to tell the designers that they designed it wrong? ;-) Thanks in advance, Joe -- Joe Germuska [EMAIL PROTECTED] * http://blog.germuska.com "The truth is that we learned from João forever to be out of tune." -- Caetano Veloso
Re: [s2]Targeting a link to open in a
2.0.3 is around the corner (a few days maybe) musachy walidito wrote: when will it be available because a very important feature of struts 2 in general, and of my application. ? thanks Musachy Barroso-2 wrote: My bad, that's new on 2.0.2. musachy walidito wrote: yes with the same error, and let me rewrite what i wrote on my post : moreover, the thing i'm worried about is that I looked into struts-tag.tld in struts2-core-2.0.1.jar in the META-INF package, and I did not find any "targets" attribute declaration... any idea? Musachy Barroso-2 wrote: With the same error? musachy walidito wrote: sorry i posted the wrong code, but i tried both target and targets. both doesnt work Musachy Barroso-2 wrote: The anchor and the submit tags have a "targets" attribute that does that. In "targets" you can specify a comma-delimited list of ids, whose content will be updated with html returned from from your action: Showcase has several examples of this. More info here: http://cwiki.apache.org/confluence/display/WW/Ajax+Tags regards musachy walidito wrote: Hi everybody, My new dilema is : I have created my "own" ajax widgets by putting I want to put links inside this widget (a button for exemple or a " ...) that are linked to an Action class, but that targets the same widgets. If its not clear, let me illustrate. I display a list of objects in my widget, I display a link to delete/modify one row of my list. When clicking on it, it calls an action that performs the change (modify the row) . And now I don't know what to do in order to refresh the display of the list ONLY IN MY AJAX WIDGET, without refreshing all the page. thanks a lot - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2]Targeting a link to open in a
when will it be available because a very important feature of struts 2 in general, and of my application. ? thanks Musachy Barroso-2 wrote: > > My bad, that's new on 2.0.2. > > musachy > > walidito wrote: >> yes with the same error, >> and let me rewrite what i wrote on my post : >> moreover, the thing i'm worried about is that I looked into >> struts-tag.tld >> in struts2-core-2.0.1.jar in the META-INF package, and I did not find any >> "targets" attribute declaration... >> >> any idea? >> >> >> Musachy Barroso-2 wrote: >> >>> With the same error? >>> >>> musachy >>> >>> walidito wrote: >>> sorry i posted the wrong code, but i tried both target and targets. both doesnt work Musachy Barroso-2 wrote: > The anchor and the submit tags have a "targets" attribute that does > that. In "targets" you can specify a comma-delimited list of ids, > whose > content will be updated with html returned from from your action: > > > > > > Showcase has several examples of this. More info here: > > http://cwiki.apache.org/confluence/display/WW/Ajax+Tags > > regards > musachy > > walidito wrote: > > >> Hi everybody, >> My new dilema is : >> I have created my "own" ajax widgets by putting > in >> a >> struts 2 tabbedPanel. This allows to refresh its content and works >> fine. >> I want to put links inside this widget (a button for exemple or a " >> ...) >> that are linked to an Action class, but that targets the same >> widgets. >> If its not clear, let me illustrate. I display a list of objects in >> my >> widget, I display a link to delete/modify one row of my list. When >> clicking >> on it, it calls an action that performs the change (modify the row) . >> And >> now I don't know what to do in order to refresh the display of the >> list >> ONLY >> IN MY AJAX WIDGET, without refreshing all the page. >> >> thanks a lot >> >> >> > - > 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] > > > -- View this message in context: http://www.nabble.com/-s2-Targeting-a-link-to-open-in-a-%3Cs%3Adiv-theme%3D%22ajax%22-box---tf3040935.html#a8457552 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]Targeting a link to open in a
My bad, that's new on 2.0.2. musachy walidito wrote: yes with the same error, and let me rewrite what i wrote on my post : moreover, the thing i'm worried about is that I looked into struts-tag.tld in struts2-core-2.0.1.jar in the META-INF package, and I did not find any "targets" attribute declaration... any idea? Musachy Barroso-2 wrote: With the same error? musachy walidito wrote: sorry i posted the wrong code, but i tried both target and targets. both doesnt work Musachy Barroso-2 wrote: The anchor and the submit tags have a "targets" attribute that does that. In "targets" you can specify a comma-delimited list of ids, whose content will be updated with html returned from from your action: Showcase has several examples of this. More info here: http://cwiki.apache.org/confluence/display/WW/Ajax+Tags regards musachy walidito wrote: Hi everybody, My new dilema is : I have created my "own" ajax widgets by putting I want to put links inside this widget (a button for exemple or a " ...) that are linked to an Action class, but that targets the same widgets. If its not clear, let me illustrate. I display a list of objects in my widget, I display a link to delete/modify one row of my list. When clicking on it, it calls an action that performs the change (modify the row) . And now I don't know what to do in order to refresh the display of the list ONLY IN MY AJAX WIDGET, without refreshing all the page. thanks a lot - 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: [s2]Targeting a link to open in a
yes with the same error, and let me rewrite what i wrote on my post : moreover, the thing i'm worried about is that I looked into struts-tag.tld in struts2-core-2.0.1.jar in the META-INF package, and I did not find any "targets" attribute declaration... any idea? Musachy Barroso-2 wrote: > > With the same error? > > musachy > > walidito wrote: >> sorry i posted the wrong code, >> but i tried both target and targets. >> both doesnt work >> >> Musachy Barroso-2 wrote: >> >>> The anchor and the submit tags have a "targets" attribute that does >>> that. In "targets" you can specify a comma-delimited list of ids, whose >>> content will be updated with html returned from from your action: >>> >>> >>> >>> >>> >>> Showcase has several examples of this. More info here: >>> >>> http://cwiki.apache.org/confluence/display/WW/Ajax+Tags >>> >>> regards >>> musachy >>> >>> walidito wrote: >>> Hi everybody, My new dilema is : I have created my "own" ajax widgets by putting >>> a struts 2 tabbedPanel. This allows to refresh its content and works fine. I want to put links inside this widget (a button for exemple or a " ...) that are linked to an Action class, but that targets the same widgets. If its not clear, let me illustrate. I display a list of objects in my widget, I display a link to delete/modify one row of my list. When clicking on it, it calls an action that performs the change (modify the row) . And now I don't know what to do in order to refresh the display of the list ONLY IN MY AJAX WIDGET, without refreshing all the page. thanks a lot >>> - >>> 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] > > > -- View this message in context: http://www.nabble.com/-s2-Targeting-a-link-to-open-in-a-%3Cs%3Adiv-theme%3D%22ajax%22-box---tf3040935.html#a8456615 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]Targeting a link to open in a
As I said, I tried both targets and target. both does not work. moreover, the thing i'm worried about is that I looked into struts-tag.tld in struts2-core-2.0.1.jar in the META-INF package, and I did not find any "targets" attribute declaration... How come ? Musachy Barroso-2 wrote: > > It is "targets" instead of "target"(can be more than one) > > musachy > > walidito wrote: >> thank you very much, >> when I try the following code, or the equivalent without the s:url stuff, >> I >> get this error : >> >> Attribute target invalid for tag a according to TLD at >> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512) >> at >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) >> at >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) >> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at >> javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at >> >> my code : >> >> > target="bookdiv"> >> mylink >> >> >> that should refer to : >> >> >> > theme="ajax" href="/BookAction.do" >> delay="1000" updateFreq="6" loadingText="loading..."> >> >> strange no ?! >> >> >> Hi everybody, >> My new dilema is : >> I have created my "own" ajax widgets by putting > struts 2 tabbedPanel. This allows to refresh its content and works fine. >> I want to put links inside this widget (a button for exemple or a " >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-s2-Targeting-a-link-to-open-in-a-%3Cs%3Adiv-theme%3D%22ajax%22-box---tf3040935.html#a8456411 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]Targeting a link to open in a
With the same error? musachy walidito wrote: sorry i posted the wrong code, but i tried both target and targets. both doesnt work Musachy Barroso-2 wrote: The anchor and the submit tags have a "targets" attribute that does that. In "targets" you can specify a comma-delimited list of ids, whose content will be updated with html returned from from your action: Showcase has several examples of this. More info here: http://cwiki.apache.org/confluence/display/WW/Ajax+Tags regards musachy walidito wrote: Hi everybody, My new dilema is : I have created my "own" ajax widgets by putting - 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]Targeting a link to open in a
sorry i posted the wrong code, but i tried both target and targets. both doesnt work Musachy Barroso-2 wrote: > > The anchor and the submit tags have a "targets" attribute that does > that. In "targets" you can specify a comma-delimited list of ids, whose > content will be updated with html returned from from your action: > > > > > > Showcase has several examples of this. More info here: > > http://cwiki.apache.org/confluence/display/WW/Ajax+Tags > > regards > musachy > > walidito wrote: >> Hi everybody, >> My new dilema is : >> I have created my "own" ajax widgets by putting > struts 2 tabbedPanel. This allows to refresh its content and works fine. >> I want to put links inside this widget (a button for exemple or a " ...) >> that are linked to an Action class, but that targets the same widgets. >> If its not clear, let me illustrate. I display a list of objects in my >> widget, I display a link to delete/modify one row of my list. When >> clicking >> on it, it calls an action that performs the change (modify the row) . And >> now I don't know what to do in order to refresh the display of the list >> ONLY >> IN MY AJAX WIDGET, without refreshing all the page. >> >> thanks a lot >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-s2-Targeting-a-link-to-open-in-a-%3Cs%3Adiv-theme%3D%22ajax%22-box---tf3040935.html#a8456085 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]Targeting a link to open in a
It is "targets" instead of "target"(can be more than one) musachy walidito wrote: thank you very much, when I try the following code, or the equivalent without the s:url stuff, I get this error : Attribute target invalid for tag a according to TLD at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at my code : mylink that should refer to : strange no ?! Hi everybody, My new dilema is : I have created my "own" ajax widgets by putting I want to put links inside this widget (a button for exemple or a " - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2]Targeting a link to open in a
thank you very much, when I try the following code, or the equivalent without the s:url stuff, I get this error : Attribute target invalid for tag a according to TLD at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at my code : mylink that should refer to : strange no ?! Hi everybody, My new dilema is : I have created my "own" ajax widgets by putting http://www.nabble.com/-s2-Targeting-a-link-to-open-in-a-%3Cs%3Adiv-theme%3D%22ajax%22-box---tf3040935.html#a8455843 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
nested:select to logic:iterate or nested:iterate
Hello gurus I have struts tag in my jsp, which displays HTML select option box with selected (a String array in the bean) Instead HTML Select box I want to print the String array elements in text format. Could some one please help me how to use logic:iterate or nested:iterate Please suggest thanks
RE: OWASP standards
never mind, I found it http://www.us.apachecon.com/presentations/TH19/TH19-OWASP-updated.ppt Thanks anyways -Original Message- From: Shabada, Gnaneshwer [mailto:[EMAIL PROTECTED] Sent: Friday, January 19, 2007 1:51 PM To: 'Struts Users Mailing List' Subject: RE: OWASP standards Thanks Gary, but I couldnt access any archived webcast for this presentation? Do you happen to have that link? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, January 19, 2007 10:53 AM To: Struts Users Mailing List Subject: Re: OWASP standards >From: "Shabada, Gnaneshwer" <[EMAIL PROTECTED]> > > > Hello, > Are there any Java frameworks or Java Utility projects which comply to OWASP > standards in terms of data validation etc., Please share if you know of any > such frameworks > David Chandler had a presentation on OWASP at the ApacheCon US 2006 [1]. [1] http://www.us.apachecon.com/html/sessions.html#TH19 > Thank you > Gnan > Gary > > This email message is for the sole use of the intended recipient (s) and may > contain confidential and privileged information. Any unauthorized review, > use, disclosure or distribution is prohibited. If you are not the intended > recipient, please contact the sender by reply email and destroy all copies > of the original message. To reply to our email administrator directly, send > an email to [EMAIL PROTECTED] > Toys "R" Us, Inc. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, send an email to [EMAIL PROTECTED] Toys "R" Us, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, send an email to [EMAIL PROTECTED] Toys "R" Us, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OWASP standards
>From: "Shabada, Gnaneshwer" <[EMAIL PROTECTED]> > > > Thanks Gary, but I couldnt access any archived webcast for this > presentation? Do you happen to have that link? > Unfortunately I don't. You might shoot David an email and ask about it ([EMAIL PROTECTED]). It was good presentation. Gary > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, January 19, 2007 10:53 AM > To: Struts Users Mailing List > Subject: Re: OWASP standards > > > >From: "Shabada, Gnaneshwer" > > > > > > Hello, > > Are there any Java frameworks or Java Utility projects which comply to > OWASP > > standards in terms of data validation etc., Please share if you know of > any > > such frameworks > > > > David Chandler had a presentation on OWASP at the ApacheCon US 2006 [1]. > > [1] http://www.us.apachecon.com/html/sessions.html#TH19 > > > > Thank you > > Gnan > > > > > Gary > > > > > This email message is for the sole use of the intended recipient (s) and > may > > contain confidential and privileged information. Any unauthorized review, > > use, disclosure or distribution is prohibited. If you are not the intended > > > recipient, please contact the sender by reply email and destroy all copies > > > of the original message. To reply to our email administrator directly, > send > > an email to [EMAIL PROTECTED] > > Toys "R" Us, Inc. > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > This email message is for the sole use of the intended recipient (s) and may > contain confidential and privileged information. Any unauthorized review, > use, disclosure or distribution is prohibited. If you are not the intended > recipient, please contact the sender by reply email and destroy all copies > of the original message. To reply to our email administrator directly, send > an email to [EMAIL PROTECTED] > Toys "R" Us, Inc. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
RE: OWASP standards
Thanks Gary, but I couldnt access any archived webcast for this presentation? Do you happen to have that link? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, January 19, 2007 10:53 AM To: Struts Users Mailing List Subject: Re: OWASP standards >From: "Shabada, Gnaneshwer" <[EMAIL PROTECTED]> > > > Hello, > Are there any Java frameworks or Java Utility projects which comply to OWASP > standards in terms of data validation etc., Please share if you know of any > such frameworks > David Chandler had a presentation on OWASP at the ApacheCon US 2006 [1]. [1] http://www.us.apachecon.com/html/sessions.html#TH19 > Thank you > Gnan > Gary > > This email message is for the sole use of the intended recipient (s) and may > contain confidential and privileged information. Any unauthorized review, > use, disclosure or distribution is prohibited. If you are not the intended > recipient, please contact the sender by reply email and destroy all copies > of the original message. To reply to our email administrator directly, send > an email to [EMAIL PROTECTED] > Toys "R" Us, Inc. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, send an email to [EMAIL PROTECTED] Toys "R" Us, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2]Targeting a link to open in a
The anchor and the submit tags have a "targets" attribute that does that. In "targets" you can specify a comma-delimited list of ids, whose content will be updated with html returned from from your action: Showcase has several examples of this. More info here: http://cwiki.apache.org/confluence/display/WW/Ajax+Tags regards musachy walidito wrote: Hi everybody, My new dilema is : I have created my "own" ajax widgets by putting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Format a number in a input
How can format a number in a input text?
[s2]Targeting a link to open in a
Hi everybody, My new dilema is : I have created my "own" ajax widgets by putting http://www.nabble.com/-s2-Targeting-a-link-to-open-in-a-%3Cs%3Adiv-theme%3D%22ajax%22-box---tf3040935.html#a8452631 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: Timed Java Script Request & Struts?
I'm not sure what your suggesting is architecturally a good idea, but that's for you to decide :) I'm all about helping you make it happen regardless, so... In addition to the options others have mentioned, another to consider is the AjaxParts Taglib (APT), a part of Java Web Parts (JWP): http://javawebparts.sourceforge.net/ More specifically: http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html This will allow you to fire an AJAX request on a timer, without having to write any Javascript. It will work with Struts 1.x, 2.x, or any other (java-based) framework. Frank -- 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) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Fri, January 19, 2007 9:09 am, Peter Neu wrote: > Hello, > > > > in one of my endless attempts to fight the evil browser backward button > mechanism I was thinging about this: > > > > Can I make a periodic java script (ajax) request to determine when a user > hit the evil button and tries to work > > a page that is not current anymore? Say the user hit the back button and > now > resides on the "wrong" page > > I make a hidden ajax request and determine he is in the wrong pace. Then I > give him a notice and send him back > > to the right place. > > > > Is this possible? How would I make the periodic request? > > > > Cheers, > > Pete > > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts2
My advice is also that you use Struts 2 for your project. I have only six month experience on struts 1.x, and I can tell you that I prefer struts 2 that is much more simple to use. The only pb id see for struts 2 is its pretty poor documentation. Do not hesitate to search your responses in webwork's book/site/forum in addition to the official doc, and this website. I'm sure the first GA release will definitly bring the struts 1 community to strut 2, and a little book on it will seal its success. As a newbie, What I liked a lot in struts 2 is that you are free to use very simple elements of it without having to learn every concept of the entire framework. That allowed me to quickly set up a MVC web app using JSPs, hibernate, struts 2's ajax components etc without going deep into interceptors concepts etc (not used in struts 1). Aljosa Mohorovic-3 wrote: > > thanks for quick reply, it helps to hear positive reactions on struts2. > > On 1/19/07, André Faria <[EMAIL PROTECTED]> wrote: >> I am starting a new project now, and I really trust in Struts 2, the >> G.A. version is near us now and all the innovation of webwork is >> inserted in Struts 2 plus the knowhow of Struts 1 and it community and >> developers. Good luck! >> >> Regards, >> André Faria >> >> Laurie Harper escreveu: >> > Aljosa Mohorovic wrote: >> >> i'm about to start coding new application and i'm considering using >> >> struts2 but have no idea when will it be ready for production use. >> >> application is relatively small so i expect to deploy fast on ibm >> >> websphere (v6.x). >> >> any hints whether i should start coding using struts2? >> > >> > Go for it :-) The current release is a beta, but 2.0.3 is looking like >> > it may be voted GA -- and if it isn't, a GA is likely not far away. >> > Either way, Struts 2 is based on WebWork which is a mature and stable >> > code-base, so even in beta S2 is pretty close to being >> > production-ready IMHO. >> > >> > L. >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Aljosa Mohorovic > > http://www.revolucija.hr > Ivana Lucica 5 > 1 Zagreb, Croatia > > +385 (0)1 616 8414 > > -- View this message in context: http://www.nabble.com/struts2-tf3036473.html#a8452170 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: combining chain of commands with struts action
On 1/19/07, manunixx <[EMAIL PROTECTED]> wrote: i find this pattern very useful for dividing problems in little pieces to be combined. I'm quite surprise that no many people release on that. what do you think about it?! I'm glad you like it! I think the issue is just that adoption of Struts 1.3.x is probably relatively low -- it hasn't even been six months since we voted 1.3.5 to "General Availability." Keep using it, keep talking about it -- people will hear you and say "maybe I should check that out..." Joe Emanuele. -- View this message in context: http://www.nabble.com/combining-chain-of-commands-with-struts-action-tf3039447.html#a8451273 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Joe Germuska [EMAIL PROTECTED] * http://blog.germuska.com "The truth is that we learned from João forever to be out of tune." -- Caetano Veloso
Re: combining chain of commands with struts action
>From: manunixx <[EMAIL PROTECTED]> > > > > Joe Germuska wrote: > > > > > > Please note that I don't think a whole lot of people have been using this > > feature, so you may well find bugs or even simply find that it could use > > some refinements. But this is the basic overview of how it's supposed to > > work. > > > > I hope this helps. > > > > Joe > > > this helps!.. > > i find this pattern very useful for dividing problems in little pieces to be > combined. > I'm quite surprise that no many people release on that. > > what do you think about it?! > I'm a big fan of the commons chains for the same reason you have stated. The commands are not coupled to each other but only the context so they can be rearranged and reused within various chains. I still have the fortune of writing *new* web applications in Struts 1.1 :-) But, the nice thing about chains is that it is a utility library and pattern that can be used in any tier. For example, Shale Clay uses commons chain to build a JSF component tree that renders mark-up. > Emanuele. Gary > -- > View this message in context: > http://www.nabble.com/combining-chain-of-commands-with-struts-action-tf3039447.h > > tml#a8451273 > 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: combining chain of commands with struts action
Joe Germuska wrote: > > > Please note that I don't think a whole lot of people have been using this > feature, so you may well find bugs or even simply find that it could use > some refinements. But this is the basic overview of how it's supposed to > work. > > I hope this helps. > > Joe > this helps!.. i find this pattern very useful for dividing problems in little pieces to be combined. I'm quite surprise that no many people release on that. what do you think about it?! Emanuele. -- View this message in context: http://www.nabble.com/combining-chain-of-commands-with-struts-action-tf3039447.html#a8451273 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: OWASP standards
>From: "Shabada, Gnaneshwer" <[EMAIL PROTECTED]> > > > Hello, > Are there any Java frameworks or Java Utility projects which comply to OWASP > standards in terms of data validation etc., Please share if you know of any > such frameworks > David Chandler had a presentation on OWASP at the ApacheCon US 2006 [1]. [1] http://www.us.apachecon.com/html/sessions.html#TH19 > Thank you > Gnan > Gary > > This email message is for the sole use of the intended recipient (s) and may > contain confidential and privileged information. Any unauthorized review, > use, disclosure or distribution is prohibited. If you are not the intended > recipient, please contact the sender by reply email and destroy all copies > of the original message. To reply to our email administrator directly, send > an email to [EMAIL PROTECTED] > Toys "R" Us, Inc. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
OWASP standards
Hello, Are there any Java frameworks or Java Utility projects which comply to OWASP standards in terms of data validation etc., Please share if you know of any such frameworks Thank you Gnan This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, send an email to [EMAIL PROTECTED] Toys "R" Us, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Timed Java Script Request & Struts?
From: Peter Neu [mailto:[EMAIL PROTECTED] > So if there is no guaranteed reload of the page there is no > way to implement a timer? Meaning: I would have to test validity > prior to each submitted request. :o( AFAIK, although if someone has a cross-browser solution I'd certainly like to hear about it. This is really just a workflow thing, at least if you're just concerned about form submissions. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Timed Java Script Request & Struts?
From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED] > Wow.., I need to start a S2 project ASAP. This is really cool. You can use that or the stuff from Prototype w/o S2, yanno :) Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Timed Java Script Request & Struts?
Wow.., I need to start a S2 project ASAP. This is really cool. Thanks, Nuwan. - Original Message - From: "Musachy Barroso" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, January 19, 2007 2:42 PM Subject: Re: Timed Java Script Request & Struts? If you are using S2, you can also use Dojo's Timer: http://dojotoolkit.org/api/#dojo.lang.timing.Timer regards musachy Peter Neu wrote: Hello, in one of my endless attempts to fight the evil browser backward button mechanism I was thinging about this: Can I make a periodic java script (ajax) request to determine when a user hit the evil button and tries to work a page that is not current anymore? Say the user hit the back button and now resides on the "wrong" page I make a hidden ajax request and determine he is in the wrong pace. Then I give him a notice and send him back to the right place. Is this possible? How would I make the periodic request? Cheers, Pete - 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: combining chain of commands with struts action
This seemed to do the trick along with creating my own "custon_chain-config.xml" chainConfig org/apache/struts/chain/chain-config.xml, /WEB-INF/custom-chain-config.xml .. This works for defining an action via the catalog/command I also had no problem getting things out of a form within a "command" eg: public boolean execute(ActionContext context) throws Exception { LazyValidatorForm theForm = (LazyValidatorForm)context.getActionForm(); String somefield = (String)theForm.get("thefield"); ... context.getRequestScope().put("theresult", theresult); return false; } Joe Germuska wrote: It is unlikely that you need to use the ChainListener in a Struts 1.3.xapplication. First, you can have the ActionServlet instantiate all of your command catalogs by specifying the servlet init parameter "chainConfig" with a comma-separated list of classpath or servlet resources. Remember that if you manually provide this property, you must be sure to include the default Struts chain ("org/apache/struts/chain/chain-config.xml") or one which establishes an alternate processing chain, in addition to any of your own which are used purely for per-request custom mappings. Once you've done that, you can use the catalog and command attributes of an action to cause Struts to invoke that command for a request instead of, or in addition to an action. (The command will be executed first if you specify both a command and a "type".) You can count on your commands used in an action mapping being invoked with a Context which is actually a subclass of ActionContext and use that to access the request/response/mapping/form and the like which would be passed in to an Action's "execute" method. Please note that I don't think a whole lot of people have been using this feature, so you may well find bugs or even simply find that it could use some refinements. But this is the basic overview of how it's supposed to work. I hope this helps. Joe On 1/19/07, manunixx <[EMAIL PROTECTED]> wrote: hallo guys! I spent a lot of time trying to retrive a catalog from a struts action but i didn't get results! :( Following the guidelines found in the jakarta commonsChain, I did this: defining a catalog.xml ... adding a ChainListener to web.xml defining a parameter org.apache.commons.chain.CONFIG_CLASS_RESOURCE to tell the listener where to locate the catalog.xml trying to retrive the catalog parsed from an action by doing: Catalog catalog = CatalogFactory.getInstance().getCatalog(); // this return null Question: do I have to config a CatalogFactory before? can anyone suggest me any reference or updated documentation regarding struts action and common chain? I saw that action mapping in struts-config.xml do accepts parameters "catalog and command". Do I have to use these to interact with commands? Please halp me, I'm getting Nuts! Emanuele. -- View this message in context: http://www.nabble.com/combining-chain-of-commands-with-struts-action-tf3039447.html#a8447680 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mark Shifman MD. Ph.D. Yale Center for Medical Informatics Phone (203)737-5219 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Timed Java Script Request & Struts?
I'm Using Struts 1.x. So if there is no guaranteed reload of the page there is no way to implement a timer? Meaning: I would have to test validity prior to each submitted request. :o( -Pete > -Ursprüngliche Nachricht- > Von: Musachy Barroso [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 19. Januar 2007 15:42 > An: Struts Users Mailing List > Betreff: Re: Timed Java Script Request & Struts? > > If you are using S2, you can also use Dojo's Timer: > > http://dojotoolkit.org/api/#dojo.lang.timing.Timer > > regards > musachy > > Peter Neu wrote: > > Hello, > > > > > > > > in one of my endless attempts to fight the evil browser backward button > > mechanism I was thinging about this: > > > > > > > > Can I make a periodic java script (ajax) request to determine when a > user > > hit the evil button and tries to work > > > > a page that is not current anymore? Say the user hit the back button and > now > > resides on the "wrong" page > > > > I make a hidden ajax request and determine he is in the wrong pace. Then > I > > give him a notice and send him back > > > > to the right place. > > > > > > > > Is this possible? How would I make the periodic request? > > > > > > > > Cheers, > > > > Pete > > > > > > > > > > > > > > > > > > > > > - > 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: Timed Java Script Request & Struts?
If you are using S2, you can also use Dojo's Timer: http://dojotoolkit.org/api/#dojo.lang.timing.Timer regards musachy Peter Neu wrote: Hello, in one of my endless attempts to fight the evil browser backward button mechanism I was thinging about this: Can I make a periodic java script (ajax) request to determine when a user hit the evil button and tries to work a page that is not current anymore? Say the user hit the back button and now resides on the "wrong" page I make a hidden ajax request and determine he is in the wrong pace. Then I give him a notice and send him back to the right place. Is this possible? How would I make the periodic request? Cheers, Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Timed Java Script Request & Struts?
> I make a hidden ajax request and determine he is in the wrong pace. How would you determine he's in the "wrong" place? Back button doesn't necessarily reload the page you've moved back to. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Timed Java Script Request & Struts?
Hi, I will give a answer for your periodic request call. you have to use the java script setTimeout() function and do the call periodically. eg:- <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> "http://www.w3.org/TR/html4/loose.dtd";> function updateOrderList(){ // write you XHP call here.. setTimeout('updateOrderList()',5000); } setTimeout('updateOrderList()',5000); when the pages loads, the scripts tag in the bottom of the pages fires the setTimeout method which would call the updateOrderList() function in 5000 mili seconds, and in the function you do your ajax call, after this also you call the you call the same method.. this would spawn a never ending loop until this page is goes out of the browser window. Thanks, Nuwan. - Original Message - From: "Peter Neu" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Friday, January 19, 2007 2:09 PM Subject: Timed Java Script Request & Struts? Hello, in one of my endless attempts to fight the evil browser backward button mechanism I was thinging about this: Can I make a periodic java script (ajax) request to determine when a user hit the evil button and tries to work a page that is not current anymore? Say the user hit the back button and now resides on the "wrong" page I make a hidden ajax request and determine he is in the wrong pace. Then I give him a notice and send him back to the right place. Is this possible? How would I make the periodic request? Cheers, Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form population and locale
There is some ways to resolve this, You can look to Appfuse 1.2.9 www.appfuse.org to view an example... Regards, André Faria Zero escreveu: Hi, Thanks for your answer. I'm very surprised that this feature was not implemented in Struts 1. Regards, Zero -- Initial Header --- >From : [EMAIL PROTECTED] To : Struts Users Mailing List Cc : Date : Wed, 17 Jan 2007 16:26:15 +0100 Subject : Re: Form population and locale Hi, I use Struts 1.2.9 and I would like to know if there is any way to link the user locale (available with RequestUtils.getUserLocale(HttRequest)) with the form population process. In fact, I have many forms which have date field (with the java.util.Date type). I would format these fields according to the user locale (ie. "/MM/dd" for english users and "dd/MM/" for french users). Also, I would like that the automatic form population do the same thing. I had the same problem but found that the support of Struts (at least version 1.x) is quite poor for this issue. I have a workaround by populating the form beans using BeanUtils and registering the LocaleConverters before. So, I'd suggest to take a look at the commons-beanutils package... Cheers, Thorsten - ALICE SECURITE ENFANTS - Protégez vos enfants des dangers d'Internet en installant Sécurité Enfants, le contrôle parental d'Alice. http://www.aliceadsl.fr/securitepc/default_copa.asp - 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: Form population and locale
Hi, Thanks ! It is exactly what I need. I'm going to test it... Must I always populate manually all the forms (with FormUtils) ? Regard, Zero -- Initial Header --- From : "Hubert Rabago" <[EMAIL PROTECTED]> To : "Struts Users Mailing List" Cc : Date : Thu, 18 Jan 2007 09:52:57 -0600 Subject : Re: Form population and locale On 1/17/07, Zero <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I use Struts 1.2.9 and I would like to know if there is any > way to link the user locale (available with > RequestUtils.getUserLocale(HttRequest)) with the form > population process. > > In fact, I have many forms which have date field (with the > java.util.Date type). I would format these fields according > to the user locale (ie. "/MM/dd" for english users and > "dd/MM/" for french users). Also, I would like that the > automatic form population do the same thing. I have a Struts extension [1] that allows you to do this. If you get the binary download, there's a sample app (locale.war) which demonstrates the form accepting dates (02/15/1999 vs. 15/02/1999) and numbers (40,000.50 vs. 40.000,50) formatted depending on the user's locale. > > Thanks a lot ! > Regards, > Zero - Hubert [1] https://formdef.dev.java.net/ - ALICE SECURITE ENFANTS - Protégez vos enfants des dangers d'Internet en installant Sécurité Enfants, le contrôle parental d'Alice. http://www.aliceadsl.fr/securitepc/default_copa.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SS] Stuck with Security related issues
Hi, Problem 1: When a user login to the application, keep track of want kind of a user has loged in, for example have a User object created and put the session, and in every request you can check what kind of a user has loged in restrict other actions that is not allowed for that user for this you can have a ServletFilter and map all your action mappings and do the checking on that filter. Problem 2: For this also you can use a ServletFilter and some flag in the session and do kind of checking and restrict specified action mappings. I don't think this is the only solution for this there may be lot, hope this would have helped you a little bit. Thanks, Nuwan. - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Friday, January 19, 2007 1:57 PM Subject: [SS] Stuck with Security related issues Hi All, I am stuck with 2 problems Problem 1 In my web-application (developed on struts and hibernate)I have 2 modules User Module http://localhost:8080/SaS/Login.do Admin Module http://localhost:8080/SaS/Login.do Depending on the login credentials the respective GUI are displayed. My problem is that the Action and Form classes that are being used for both the modules are common So depending on the param in the request different result will appear for a call like this http://localhost:8080/SaS/SearchService.do So if I am accessing the admin module in one browser window and user module in another and I copy paste the URL part only "SaS/SearchService.do" to the user module URL the user can view the result which admin is only suppose to view. Is there any way to resolve this? Problem 2 I want to restrict direct access to some of my action classes eg if I have following action classes 1) Login.do 2) RegisterUser.do 3) SearchUser.do 4) Service.do Then only Login.do should be directly accessible i.e http://localhost:8080/SaS/Login.do should work But if someone does http://localhost:8080/SaS/RegisterUser.do this should not work. It should throw "UnAutorized Access" Error Any suggestion? Thanks Prerna The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form population and locale
Hi, Thanks for your answer. I'm very surprised that this feature was not implemented in Struts 1. Regards, Zero -- Initial Header --- From : [EMAIL PROTECTED] To : Struts Users Mailing List Cc : Date : Wed, 17 Jan 2007 16:26:15 +0100 Subject : Re: Form population and locale Hi, > I use Struts 1.2.9 and I would like to know if there is any > way to link the user locale (available with > RequestUtils.getUserLocale(HttRequest)) with the form > population process. > > In fact, I have many forms which have date field (with the > java.util.Date type). I would format these fields according > to the user locale (ie. "/MM/dd" for english users and > "dd/MM/" for french users). Also, I would like that the > automatic form population do the same thing. I had the same problem but found that the support of Struts (at least version 1.x) is quite poor for this issue. I have a workaround by populating the form beans using BeanUtils and registering the LocaleConverters before. So, I'd suggest to take a look at the commons-beanutils package... Cheers, Thorsten - ALICE SECURITE ENFANTS - Protégez vos enfants des dangers d'Internet en installant Sécurité Enfants, le contrôle parental d'Alice. http://www.aliceadsl.fr/securitepc/default_copa.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Timed Java Script Request & Struts?
Hello, in one of my endless attempts to fight the evil browser backward button mechanism I was thinging about this: Can I make a periodic java script (ajax) request to determine when a user hit the evil button and tries to work a page that is not current anymore? Say the user hit the back button and now resides on the "wrong" page I make a hidden ajax request and determine he is in the wrong pace. Then I give him a notice and send him back to the right place. Is this possible? How would I make the periodic request? Cheers, Pete
[SS] Stuck with Security related issues
Hi All, I am stuck with 2 problems Problem 1 In my web-application (developed on struts and hibernate)I have 2 modules User Module http://localhost:8080/SaS/Login.do Admin Module http://localhost:8080/SaS/Login.do Depending on the login credentials the respective GUI are displayed. My problem is that the Action and Form classes that are being used for both the modules are common So depending on the param in the request different result will appear for a call like this http://localhost:8080/SaS/SearchService.do So if I am accessing the admin module in one browser window and user module in another and I copy paste the URL part only "SaS/SearchService.do" to the user module URL the user can view the result which admin is only suppose to view. Is there any way to resolve this? Problem 2 I want to restrict direct access to some of my action classes eg if I have following action classes 1) Login.do 2) RegisterUser.do 3) SearchUser.do 4) Service.do Then only Login.do should be directly accessible i.e http://localhost:8080/SaS/Login.do should work But if someone does http://localhost:8080/SaS/RegisterUser.do this should not work. It should throw "UnAutorized Access" Error Any suggestion? Thanks Prerna The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Re: struts2
thanks for quick reply, it helps to hear positive reactions on struts2. On 1/19/07, André Faria <[EMAIL PROTECTED]> wrote: I am starting a new project now, and I really trust in Struts 2, the G.A. version is near us now and all the innovation of webwork is inserted in Struts 2 plus the knowhow of Struts 1 and it community and developers. Good luck! Regards, André Faria Laurie Harper escreveu: > Aljosa Mohorovic wrote: >> i'm about to start coding new application and i'm considering using >> struts2 but have no idea when will it be ready for production use. >> application is relatively small so i expect to deploy fast on ibm >> websphere (v6.x). >> any hints whether i should start coding using struts2? > > Go for it :-) The current release is a beta, but 2.0.3 is looking like > it may be voted GA -- and if it isn't, a GA is likely not far away. > Either way, Struts 2 is based on WebWork which is a mature and stable > code-base, so even in beta S2 is pretty close to being > production-ready IMHO. > > L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Aljosa Mohorovic http://www.revolucija.hr Ivana Lucica 5 1 Zagreb, Croatia +385 (0)1 616 8414
Re: Passing parameters to a struts action in URL
Hi I ve had similar problems (with struts 2 , but working in IE and not in Firefox). The problem was with the browser using a cached copy from a version of the page that did not work properly, but had now been corrected. Clearing the browser cache got rid of the problem for me. Nick nuwan chandrasoma-2 wrote: > > Hi, > > Have you tried changeing the parameter name, for eg:- try by renaming the > personid parameter name to something like personId, and also introduce a > totally new parameter to this link and read it from your action class and > see. > > Thanks, > > Nuwan. > > > - Original Message - > From: "Joe Yuen" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" ; "Struts Users > Mailing List" > Sent: Thursday, January 18, 2007 9:28 PM > Subject: RE: Passing parameters to a struts action in URL > > > > In my action class: > > public ActionForward execute(ActionMapping mapping, ActionForm form, > HttpServletRequest request, HttpServletResponse response) > throws IOException, ServletException { > > > String personid = request.getParameter("personid"); > log.debug("execute(): personid = " + personid); > > . > . > . > } > > > If it's in my code, I don't understand why would it work for one browser > and > not the other?? > > > > -Original Message- > From: Ross, Scott [mailto:[EMAIL PROTECTED] > Sent: Thu 1/18/2007 1:26 PM > To: Struts Users Mailing List > Subject: RE: Passing parameters to a struts action in URL > > I don't think this is a URL issue. What is your code to retreive the > variables from the URL? > > > > -Original Message- > From: Joe Yuen [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 18, 2007 4:12 PM > To: Struts Users Mailing List > Subject: Passing parameters to a struts action in URL > > Does anyone have an idea as to why this URL > > http://localhost:8080/Chisq/Insurance.do?action=edit&personid=1001 > > works in Firefox but not in IE6? In my action class, I can see a > personid in Firefox but in IE personid is null. > > I am using struts 1.2.8. > > Thanks, > Joe Yuen > > > > - > 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] > > > -- View this message in context: http://www.nabble.com/RE%3A-Passing-parameters-to-a-struts-action-in-URL-tf3036794.html#a8448975 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: combining chain of commands with struts action
It is unlikely that you need to use the ChainListener in a Struts 1.3.xapplication. First, you can have the ActionServlet instantiate all of your command catalogs by specifying the servlet init parameter "chainConfig" with a comma-separated list of classpath or servlet resources. Remember that if you manually provide this property, you must be sure to include the default Struts chain ("org/apache/struts/chain/chain-config.xml") or one which establishes an alternate processing chain, in addition to any of your own which are used purely for per-request custom mappings. Once you've done that, you can use the catalog and command attributes of an action to cause Struts to invoke that command for a request instead of, or in addition to an action. (The command will be executed first if you specify both a command and a "type".) You can count on your commands used in an action mapping being invoked with a Context which is actually a subclass of ActionContext and use that to access the request/response/mapping/form and the like which would be passed in to an Action's "execute" method. Please note that I don't think a whole lot of people have been using this feature, so you may well find bugs or even simply find that it could use some refinements. But this is the basic overview of how it's supposed to work. I hope this helps. Joe On 1/19/07, manunixx <[EMAIL PROTECTED]> wrote: hallo guys! I spent a lot of time trying to retrive a catalog from a struts action but i didn't get results! :( Following the guidelines found in the jakarta commonsChain, I did this: defining a catalog.xml ... adding a ChainListener to web.xml defining a parameter org.apache.commons.chain.CONFIG_CLASS_RESOURCE to tell the listener where to locate the catalog.xml trying to retrive the catalog parsed from an action by doing: Catalog catalog = CatalogFactory.getInstance().getCatalog(); // this return null Question: do I have to config a CatalogFactory before? can anyone suggest me any reference or updated documentation regarding struts action and common chain? I saw that action mapping in struts-config.xml do accepts parameters "catalog and command". Do I have to use these to interact with commands? Please halp me, I'm getting Nuts! Emanuele. -- View this message in context: http://www.nabble.com/combining-chain-of-commands-with-struts-action-tf3039447.html#a8447680 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Joe Germuska [EMAIL PROTECTED] * http://blog.germuska.com "The truth is that we learned from João forever to be out of tune." -- Caetano Veloso
Re: Newbie Lost in the Apache Jungle
Just to follow up on the Grails suggestion. * http://www.infoq.com/minibooks/grails -T. On 1/10/07, Jason King <[EMAIL PROTECTED]> wrote: grails, http://grails.codehaus.org might be a better choice as it links into several standard java projects (specifically spring and hibernate) w/o you having to learn them up front. Groovy might be a better conceptual fit if you're coming from a 4gl background as well. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
combining chain of commands with struts action
hallo guys! I spent a lot of time trying to retrive a catalog from a struts action but i didn't get results! :( Following the guidelines found in the jakarta commonsChain, I did this: defining a catalog.xml ... adding a ChainListener to web.xml defining a parameter org.apache.commons.chain.CONFIG_CLASS_RESOURCE to tell the listener where to locate the catalog.xml trying to retrive the catalog parsed from an action by doing: Catalog catalog = CatalogFactory.getInstance().getCatalog(); // this return null Question: do I have to config a CatalogFactory before? can anyone suggest me any reference or updated documentation regarding struts action and common chain? I saw that action mapping in struts-config.xml do accepts parameters "catalog and command". Do I have to use these to interact with commands? Please halp me, I'm getting Nuts! Emanuele. -- View this message in context: http://www.nabble.com/combining-chain-of-commands-with-struts-action-tf3039447.html#a8447680 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][ANN] JAVAWUG BOF 23 Video Available
Hi Just a quick announcement that JAVAWUG BOF 23 video is available from Google Video. This was an Open Space Technology discussion of Java Web and Enterprise Futures. http://video.google.com/videoplay?docid=-354206984911965249&hl=en -- Peter Pilgrim, JUG Leader, JAVAWUG (The Java Web Users Group) [e] 2004 :: http://jroller.com/page/javawug/ :: __ |__| ___ ___ __ _ __ | \__ \\ \/ /\__ \\ \/ \/ / | \/ ___\ | |/ __ \\ / / __ \\ /| | / /_/ > /\__| ( /\_/ ( /\/\_/ |/\___ / \__|\/ \//_/ Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS Limited is a company registered in England & Wales under company number 2035362, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS AG (London Branch) is registered as a branch of a foreign company under number BR004507, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS Clearing and Execution Services Limited is a company registered in England & Wales under company number 03123037, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts2
I am starting a new project now, and I really trust in Struts 2, the G.A. version is near us now and all the innovation of webwork is inserted in Struts 2 plus the knowhow of Struts 1 and it community and developers. Good luck! Regards, André Faria Laurie Harper escreveu: Aljosa Mohorovic wrote: i'm about to start coding new application and i'm considering using struts2 but have no idea when will it be ready for production use. application is relatively small so i expect to deploy fast on ibm websphere (v6.x). any hints whether i should start coding using struts2? Go for it :-) The current release is a beta, but 2.0.3 is looking like it may be voted GA -- and if it isn't, a GA is likely not far away. Either way, Struts 2 is based on WebWork which is a mature and stable code-base, so even in beta S2 is pretty close to being production-ready IMHO. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]