AOSI's Official Statement about IIPA - help to distributed.
hi all AOSI (asosiasi opensource indonesia) is our local association of opensource in Indonesia, where is our umbrella for anyone related to services, support, product and entities related to opensource, smiliar with OSFA in USA. and we know that IIPA submit a letter to USTR about Indonesia and several country to create 301, which will effect to our trade and economy. and our goverment work togeter with us, to respect the IPR by adopting OpenSource if the goverment or institution dont have money to buy license, but we know IIPA is a big lobby in USA, where i hear about BSA, Sony, BMG are the member may be u can help to distribute and we are open for work together to promote opensource, and we know that using opensource is legal. this is the URL of the official statement of AOSI about IIPA, where i am stand in enterprise opensource chief http://www.slideshare.net/flatburger/aosi-on-iipa-en hope all of u can distribute to the people that can help us here, that is strange we use opensource to respect IPR, but we still in ilegal movement. aosi website is http://www.aosi.or.id -- Frans Thamura Meruvian. Experiential Tempation of Java and Enterprise OpenSource Meruvian jTechnopreneur Program (S1) telah hadir, Dapatkan benefit bagi SMK yang melakukan mapping SKKD, dg program beasiswa dari Gunadarma Mobile: +6287885901958 Blog Profile: http://frans.thamura.info We provide services to migrate your apps to Java (web), in amazing fast and reliable. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Can a collection property have its changes saved back to the ActionForm?
you want to save the options in the select not a selected option... if you make the select a multiple select and in javascript you select all options are all the option values sent to the server against the same parameter name (turn on parameter interceptor logging to check)... if so, add a set method in your action with the same name as the select element that accepts a string array, like setNewRole(String[] newRoles) inside this method you can initialise your proper ArrayList and add the elements from the string array into it. you still need the javascript to select options but at least you're not creating new elements. i haven't checked if multiple selects sends its parameters in this way but it works when multiple checkbox elements all have the same name and are sent as name/values pair. ps. if i've misunderstood and you just want to save multiple selected options, then you can omit the javascript part which would be better. Date: Wed, 17 Mar 2010 17:23:45 -0700 From: andrewrwsha...@yahoo.com Subject: Re: Can a collection property have its changes saved back to the ActionForm? To: user@struts.apache.org For the archives, the solution I'm going with is to have the javascript add elements to the document corresponding to the new values in the select. The names of the hidden elements will be indexed. Something like this: Action Form: public List getOldList() public String getSelectedValue() public void setNewList(int index, String value) JSP: Then the setNewList method gets called on the form with the new values from the select box. If anyone has any better ideas I'm open to hearing them, but this seems to do the trick. Andrew - Original Message From: Andrew Sharpe To: user@struts.apache.org Sent: Mon, March 15, 2010 6:03:30 PM Subject: Can a collection property have its changes saved back to the ActionForm? Hello all, I have a List collection that I am displaying in an and it is working great. The problem is that my jsp page makes changes to that control via javascript (adds new options, removes, etc). I would like these changes to be saved back to the ActionForm, preferrably to the same collection where it got its data from. Struts does not seem to do it by default, that is, the tag seems to make use of the ActionForm's get property, but not its set. If it is supposed to behave this way please let me know and I will reexamine my syntax. Otherwise can someone tell me the easiest way to do this? I am using Struts 1.3.8 and unfortunately cannot upgrade to Struts 2. Many thanks in advance, Andrew __ The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Got a cool Hotmail story? Tell us now http://clk.atdmt.com/UKM/go/195013117/direct/01/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
SQL Injection
Hi, Do we have any special technique in Struts for preventing sql injection, i know we can prevent it via parameterized query , but my application design do not permit so, So can anyone here help me on this, i need a function whom if i pass a value, it becomes sql injection safe., Pl. help -- Thanks and kind Regards, Abhishek jain
RE: [S2] Error running under Weblogic 10.3.2.0
I have very little experience with Weblogic. Do you know where do I need to copy the unpacked WAR? -Mensagem original- De: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Enviada: quarta-feira, 17 de Março de 2010 10:40 Para: Struts Users Mailing List Assunto: Re: [S2] Error running under Weblogic 10.3.2.0 2010/3/17 Gustavo Felisberto gustavo.felisbe...@wit-software.com: I did some more testing and this is getting really strange. I'm using eclipse and when I export the project as a WAR file and place it inside the autodeploy directory of a running weblogic domain it works fine. It just gives this error when using the publish feature of eclipse. Any ideas? No, did you try export to war and unpack it inside WebLogic? Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: SQL Injection
Hello, As far as I know there is nothing in struts to prevent SQL injection. And that should be done at the database level, so it is not related to Struts. Also there is no simple way of making parameters sql injection safe. You can take a look at http://www.owasp.org/index.php/SQL_Injection_Prevention_Cheat_Sheet They have some code that will take care of inputs depending on the Database used (they have cleaners for Oracle, Mysql and SQLServer). -Mensagem original- De: abhishek jain [mailto:abhishek.netj...@gmail.com] Enviada: quinta-feira, 18 de Março de 2010 10:31 Para: Struts Users Mailing List Assunto: SQL Injection Hi, Do we have any special technique in Struts for preventing sql injection, i know we can prevent it via parameterized query , but my application design do not permit so, So can anyone here help me on this, i need a function whom if i pass a value, it becomes sql injection safe., Pl. help -- Thanks and kind Regards, Abhishek jain - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [S2] Error running under Weblogic 10.3.2.0
2010/3/18 Gustavo Felisberto gustavo.felisbe...@wit-software.com: I have very little experience with Weblogic. Do you know where do I need to copy the unpacked WAR? I don't know, I'm using IntelliJ IDEA to deploy unpack version and it works perfectly! Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Cannot find bean: sendJsp in any scope
alright i deleted the request.setattiribute line. i will look at the tutorial.really thank you for helping to me Andrew Sharpe-2 wrote: I found a full example for you here: http://www.java2s.com/Code/Java/J2EE/StrutsFrameworkASampleStrutsApplication.htm You'll notice that the name property of the logic:iterate tag is set to the form name as used in struts-config (in your case, BookForm). Assuming data.jsp forwards to BookAction, you should not need to put the book list on the request as you are doing in the execute method of the BookAction. Again I suggest you try to get a simple String property on the action form to display in your browser and then work your way up to the collection. Good luck! Andrew - Original Message From: tesla fatihdu...@hotmail.com To: user@struts.apache.org Sent: Wed, March 17, 2010 11:10:15 AM Subject: Re: Cannot find bean: sendJsp in any scope I already had public getName() method.i wrote all getters and setters to my application just didn't post them to the forum.i created a new arraylist and added String property but cant show them always the same error.I'm losing my mind i have a problem with listing array elements.I really be thankful to you really send me a working example.i'm waiting for your reply thanks again Andrew Sharpe-2 wrote: Along with the change I suggested, you also need to add a public getName() method to your Book object. Try that, and also make sure you can get a simple String property to display to ensure you have Struts configured properly. If you still have trouble let me know and I ll come up with a working example for you tonight. On Wed Mar 17th, 2010 6:51 AM ADT tesla wrote: thanks for reply but it still doesn't work.I am looking the tutorials on the google and it must be like this but its not working .I cant understand why it is?if you have an example with arrays and logic iterate i will be thankful if you share it with me Andrew Sharpe-2 wrote: I think you want: logic:iterate id=book name=BookForm property=bookList bean:write name=book property=name/ /logic:iterate See the docs on logic:iterate for more info: http://struts.apache.org/1.0.2/struts-logic.html#iterate If this still doesn't work I would recommend trying to first output a String property to verify you have everything setup properly. - Original Message From: tesla fatihdu...@hotmail.com To: user@struts.apache.org Sent: Tue, March 16, 2010 10:24:13 AM Subject: Re: Cannot find bean: sendJsp in any scope When i add logic present tag to data.jsp i am not getting an error but my page is still empty i think my arraylist is null but why? i'm waiting your advices tesla wrote: Hi I wanna show my arrayList on the screen by using logic:iterate tag but when i run my application i am gettig this error.I'm working on this application for two days and still i cant see my arraylist elements on the browser. Thanks in advice. data.jsp logic:iterate id=book name=sendJsp property=bookList bean:write name=book property=name/ /logic:iterate Book.java public class Book { private String name; private String description; private int price; private int id; public Book() { } public Book(String name) { this.name=name; } public ArrayListBook loadData() { ArrayListBook kitapListesi = new ArrayListBook(); kitapListesi.add(new Book(calculus1)); kitapListesi.add(new Book(calculus2)); return kitapListesi; } BookAction.java public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { BookForm bookForm = (BookForm) form; Book book = new Book(); bookForm.setBookList(book.loadData()); request.setAttribute(sendJsp, bookForm.getBookList()); return mapping.findForward(SUCCESS); } BookForm.Java public class BookForm extends org.apache.struts.action.ActionForm { private ArrayListBook bookList = new ArrayListBook(); public BookForm() { super(); // TODO Auto-generated constructor stub } public ArrayListBook getBookList() { return bookList; } public void setBookList(ArrayListBook bookList) { this.bookList = bookList; } struts_config.xml form-bean name=BookForm type=paket.BookForm/form-bean action input=/data.jsp name=BookForm path=/data scope=request type=paket.BookAction /action -- View this message in context: http://old.nabble.com/Cannot-find-bean%3A-%22sendJsp%22-in-any-scope-tp27915481p27918564.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:
RE: [S2] Error running under Weblogic 10.3.2.0
Hello again, I have very little experience with Weblogic and maybe you can give me a hand with IntelliJ Idea. I'm using version 9.0.2 EAP. I installed Weblogic 10.3.2 and created a domain. Under Idea I added the Application server but I'm having issues with redeploy. How is your setup? What I would love would be a small tutorial on how to do it properly. I found some tutorials but are for older versions of Idea. Gustavo -Mensagem original- De: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Enviada: quinta-feira, 18 de Março de 2010 13:13 Para: Struts Users Mailing List Assunto: Re: [S2] Error running under Weblogic 10.3.2.0 2010/3/18 Gustavo Felisberto gustavo.felisbe...@wit-software.com: I have very little experience with Weblogic. Do you know where do I need to copy the unpacked WAR? I don't know, I'm using IntelliJ IDEA to deploy unpack version and it works perfectly! Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 + Sitemesh + Freemarker doesn't work
I almost have this working, however, it seems that struts-core-2.2.0-SNAPSHOT depends on xwork-2.2.0-SNAPSHOT which doesn't seem to be available anywhere. Also, the struts-convention-2.2.0-SNAPSHOT tries to call a method in xwork that doesn't exist: com.opensymphony.xwork2.util.finder.ClassFinder.init(Lcom/opensymphony/xwork2/util/finder/ClassLoaderInterface;Ljava/util/Collection;ZLjava/util/Set;Lcom/opensymphony/xwork2/util/finder/Test;)V I assume that's going to be in xwork 2.2? - Jonathan Lukasz Lenart wrote: 2010/3/16 jonathan doklovic list-rea...@sysbliss.com: I was able to resolve the issue simply by using the snapshot jar listed on this blog post: http://www.stonescape.net/roller/xtian/date/20091021 My web.xml was correct, just needed the updated sitemesh plugin. Here you have the whole build http://hudson.zones.apache.org/hudson/view/Struts/job/struts2/193/ I added proper web.xml config for full integration with SiteMesh 2 + Freemarker 2.4.2 + Velocity 1.3 , including Struts 2 Tags, ValueStack, and FreemarkerManager statics. http://struts.apache.org/2.x/docs/sitemesh-plugin.html Regards - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 + Sitemesh + Freemarker doesn't work
On Thu, Mar 18, 2010 at 12:02 PM, jonathan doklovic list-rea...@sysbliss.com wrote: I almost have this working, however, it seems that struts-core-2.2.0-SNAPSHOT depends on xwork-2.2.0-SNAPSHOT which doesn't seem to be available anywhere. It's here - http://hudson.zones.apache.org/hudson/view/Struts/job/struts2/193/com.opensymphony$xwork-core/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Tabbing key not work on the Combobox on the IE7 and IE8
Hello Struts Users, We have an application using Struts2.1.6 to generate the autocompleter as below. sx:autocompleter key=category list=categories autoComplete=true valueNotifyTopics=/categoryChanged resultsLimit=-1 cssStyle=width:300px required=true / sx:autocompleter key=classes list=classes autoComplete=true resultsLimit=-1 cssStyle=width:300px required=true / On the Internet Explorer browser, the tabbing order is not moving the focus to the next field in the form if the combobox is in the active mode. On the FF, it works fine. Does anyone has this issue or advice for the solution? Thanks in advance, -- View this message in context: http://old.nabble.com/Tabbing-key-not-work-on-the-Combobox-on-the-IE7-and-IE8-tp27950856p27950856.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: SQL Injection
use hibernate its definitely worth trying. the SQL queries can be parameterised and the parameter names can refer to fields in an object, it handles the escaping of values to be sql safe. From: gustavo.felisbe...@wit-software.com To: user@struts.apache.org Subject: RE: SQL Injection Date: Thu, 18 Mar 2010 12:34:57 + Hello, As far as I know there is nothing in struts to prevent SQL injection. And that should be done at the database level, so it is not related to Struts. Also there is no simple way of making parameters sql injection safe. You can take a look at http://www.owasp.org/index.php/SQL_Injection_Prevention_Cheat_Sheet They have some code that will take care of inputs depending on the Database used (they have cleaners for Oracle, Mysql and SQLServer). -Mensagem original- De: abhishek jain [mailto:abhishek.netj...@gmail.com] Enviada: quinta-feira, 18 de Março de 2010 10:31 Para: Struts Users Mailing List Assunto: SQL Injection Hi, Do we have any special technique in Struts for preventing sql injection, i know we can prevent it via parameterized query , but my application design do not permit so, So can anyone here help me on this, i need a function whom if i pass a value, it becomes sql injection safe., Pl. help -- Thanks and kind Regards, Abhishek jain - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Do you have a story that started on Hotmail? Tell us now http://clk.atdmt.com/UKM/go/195013117/direct/01/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Parameter in If tag
s:if test=%{#parameters['paramName'][0] =='paramValue'} Thanks a lot! This worked! parameters['paramName'] returns an array? -- K From: Wes Wannemacher w...@wantii.com To: Struts Users Mailing List user@struts.apache.org Sent: Mon, March 15, 2010 4:16:14 PM Subject: Re: Parameter in If tag Parameters that aren't bound to an action property can be tricky... I would try some of the following to see if you can figure out what's going on - s:if test=%{#parameters.paramName.0 =='paramValue'} s:if test=%{#parameters['paramName'] =='paramValue'} s:if test=%{#parameters['paramName'][0] =='paramValue'} -Wes On Mon, Mar 15, 2010 at 2:45 PM, Kusuma Haranath Atmakuri haranat...@yahoo.com wrote: By the way, I am using Struts 2.1.8.1. Actually it was a WebWork app and converting that into Struts2. Referring a parameter was so easy in ww with just '$paramName'. It's weird that I am stuck at such a simple thing. Any light on this would be of great help. Thank you! To: user@struts.apache.org Sent: Sun, March 14, 2010 8:36:44 PM Subject: Parameter in If tag From the actions config, a parameter is being passed: action ... resultmain.jsp?paramName=paramValue/result When tried to access the paramName, it's fine when used in 'property' tag. s:property value=%{#parameters.paramName} / will print 'paramValue'. But when used in 'If' tag, it does NOT. Is there anything missing here? Tried all the combinations of #, {}, %, double quotes and single quotes. Any help would be greatly appreciated. s:if test=%{#parameters.paramName=='paramValue'} will return FALSE. Thank you! -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Parameter in If tag
On Thu, Mar 18, 2010 at 11:07 PM, Kusuma Haranath Atmakuri haranat...@yahoo.com wrote: s:if test=%{#parameters['paramName'][0] =='paramValue'} Thanks a lot! This worked! parameters['paramName'] returns an array? Yeah, it's a bit of a pain sometimes, but there is nothing that stops someone from writing html like this - form ... input name=foo value= type=text / input name=foo value= type=text / /form In this case, you can retrieve all of the values submitted for foo as an array. It's just one of those details people sometimes forget when you get away from dealing directly with request parameters. -Wes -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org