Custom component - custom tag

2007-05-11 Thread Mansour
where do I find tutorial about writing my own UI component ? I wrote a tag already to be used with JSP then when I tried it with struts 2 it didn't work. Basically, because I am passing the object as string and trying to retrieve it form the context in the custom tag. This is not working becaus

Re: [S2] Book Ideas

2007-05-11 Thread Ray Clough
I'd like to see detailed instructions on the tags in lots of situations. I've spent more time fighting with S2 tags than anything else. Examples integrating S2 tags with JSTL. Also, info about the template facility. I liked your online 'LoginInterceptor', and would like to read your book. I'v

Re: moving on to Hibernate with S2...

2007-05-11 Thread Ray Clough
Personally, I do *NOT* like to use Spring, because every time I touch it everything breaks. I think that a better solution is to use a ServiceLocator to provide the Hibernate SessionFactory. I did this in S1, and it worked very easily, and didn't break anything. ServiceLocator is described in t

Re: moving on to Hibernate with S2...

2007-05-11 Thread Musachy Barroso
I'd say getting everything set up is what hurts, after that, it is very nice. I'm running Struts 2 with JPA and Toplink and I'm quite pleased. musachy On 5/11/07, Rick Schumeyer <[EMAIL PROTECTED]> wrote: The funny thing is that I've spend the past few months working with RoR. I like it, but

Re: moving on to Hibernate with S2...

2007-05-11 Thread Rick Schumeyer
The funny thing is that I've spend the past few months working with RoR. I like it, but I finally have some time to investigate the Java world. I have this nagging concern about RoR performance. One thing I hope to learn soon is, once over the pain of initial configuration with Java based fr

Re: Trouble with

2007-05-11 Thread Martin Gainty
Good Evening Marshall Is there a reason why you want to override the template name ? @StrutsTag(name="submit", tldTagClass="org.apache.struts2.views.jsp.ui.SubmitTag", description="Render a submit button") public class Submit extends FormButton implements RemoteUICallBean{ private static

Re: moving on to Hibernate with S2...

2007-05-11 Thread String Larson
That's what we're using as well. Plus using EJB3/Annotations (over Hibernate3) for persistence. Works well. No show stoppers thus far. If don't expect your web app to be too complex, I'd recommend a hard look at Ruby on Rails. The whole S2, Spring, Hibernate thing is very powerful. However, it

Re: moving on to Hibernate with S2...

2007-05-11 Thread Musachy Barroso
What I meant was: use Spring IoC to glue Struts 2 and Hibernate together :) musachy On 5/11/07, Josh Vickery <[EMAIL PROTECTED]> wrote: Spring has several components, but the one I use (and the one I think is the most popular) is the Inversion of Control (IOC) framework. Struts 2 (when it was

Re: moving on to Hibernate with S2...

2007-05-11 Thread Josh Vickery
Spring has several components, but the one I use (and the one I think is the most popular) is the Inversion of Control (IOC) framework. Struts 2 (when it was Web Work) had some IOC support, but it wasn't as full featured as what Spring offers. Spring also has an MVC, which is a direct competitor

Re: moving on to Hibernate with S2...

2007-05-11 Thread Rick Schumeyer
Let me ask you a question that I've never really received a good answer to. Keep in mind that my knowledge of Java web programming is some S1, and just starting with S2. I have never really looked at Spring. I understand that S2 and Spring somehow work together. What I don't understand is:

Trouble with

2007-05-11 Thread Marshall Levin
Hi, I have a page that has a tag like this: Now I am adding a feature that will automatically submit the form under certain circumstances, so I have some Javascript like this: document.postForm.submit(); I can see from http://www.chovy.com/personal/javascript-error-submit-is-not-a-f

Re: [S2] Book Ideas

2007-05-11 Thread Ted Husted
Deadtree or not, word to the wise, you might want to seriously consider using DocBook as a writing platform, as we are doing for Struts from Square One. * http://code.google.com/p/sq1-struts2/ Once we got it setup for TextPad, I found DocBook to be the easiest way to write a technical book. The

Re: moving on to Hibernate with S2...

2007-05-11 Thread Musachy Barroso
Have you tried using Spring?. It plays nicely with Struts and hibernate, plus there are some examples around I think. musachy On 5/11/07, Rick Schumeyer <[EMAIL PROTECTED]> wrote: Now I'm trying to configure Hibernate with S2, which many others have done. I was trying to follow the example in

moving on to Hibernate with S2...

2007-05-11 Thread Rick Schumeyer
Now I'm trying to configure Hibernate with S2, which many others have done. I was trying to follow the example in WebWork in Action, but things have obviously changed since then. To be clear, the problem is to create a SessionFactory once in such a way that all my actions can easily have acce

java.util.List in FormBean

2007-05-11 Thread zuban
Hi, in a FromBean I have a java.util.List (to populate a ). If I submit the form the List is set to null. For String datatypes I would use hidden input fields to solve this. But what should I do by a List? -- View this message in context: http://www.nabble.com/java.util.List-in-FormBean-tf372922

Re: Problems getting started with Tiles2/S2

2007-05-11 Thread Antonio Petrelli
2007/5/11, David Chisholm <[EMAIL PROTECTED]>: org.apache.tiles.DEFINITIONS_CONFIG That with Tiles 2.0.4 will change... Just another drop in the sea :-) Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: Problems getting started with Tiles2/S2

2007-05-11 Thread Antonio Petrelli
2007/5/11, Rick Schumeyer <[EMAIL PROTECTED]>: I can now answer my own question regarding Struts2/Tiles2. I hope this information helps someone else. ... Good luck. Gee Rick! Great work, it's a pity that when Struts 2 will depend on Tiles 2.0.3 this work will be lost forever ;-) Anyway, you

RE: Problems getting started with Tiles2/S2

2007-05-11 Thread David Chisholm
This is a good summary, and I can add one item. To specify which files to use for your tiles definition config file, you can add the following to your web.xml: org.apache.tiles.DEFINITIONS_CONFIG tiles-defs-1.xml, tiles-defs-2.xml The filenames are relative to

Re: Installing strutsIDE plugin for eClispe

2007-05-11 Thread Antonio Petrelli
2007/5/11, Saravanan Vijayappan <[EMAIL PROTECTED]>: How should i install StrutsIDE plugin for eclipse 3.1.2 ? Does a StrutsIDE for eclipse exist? :-P Jokes apart, I think that you check the StrutsIDE website, that I found googling "StrutsIDE": http://amateras.sourceforge.jp/cgi-bin/fswiki_en/w

Action tag with lots of params???

2007-05-11 Thread Felipe Rodrigues
Hi Guys, Is it possible? When I try that, my action only set the varId and don't even call the others set methods. How do something like that? Thanks, Felipe -- View this message in context: http://www.nabble.com/Action-tag-with-lots-of-paramstf3728936.html#a10437214 S

[S2] Book Ideas

2007-05-11 Thread Mark Menard
I'm seriously considering writing a dead tree Struts 2 cookbook. What types of recipes would you like to see? I've created a page on my blog listing a number of ideas. I'd also like to know what the community wants to see in a recipe style Struts 2 book. http://www.vitarara.org/cms/node/122 T

Re: Problems getting started with Tiles2/S2

2007-05-11 Thread Rick Schumeyer
I can now answer my own question regarding Struts2/Tiles2. I hope this information helps someone else. I frankly have little grasp of the relationship between S2 and T2, but this information here works for me. If anything is incorrect or misleading I would love to know about it. This infor

Installing strutsIDE plugin for eClispe

2007-05-11 Thread Saravanan Vijayappan
Hello, How should i install StrutsIDE plugin for eclipse 3.1.2 ? I have downloaded the below zip file tk.eclipse.plugin.struts_2.0.4.zip Could you tell how should it be installed and where ? Thanks & Regards, Saravanan Vijayappan, +91 9448833571. __

Re: [S2]Dynamic List dissappears when validation fails

2007-05-11 Thread Struts2 Fan
in the prepare() method the value of the doesn't exist too. It gets null value. Dave I hope I explained it well this time. Thanks anyway. -- View this message in context: http://www.nabble.com/-S2-Dynamic-List-dissappears-when-validation-fails-tf3726002.html#a10435496 Sent from the Struts

Re: Regarding getting resource from external url

2007-05-11 Thread Laurie Harper
Vamsi Gmail! wrote: Hi, I have a requirement where I have to hit the external url and get the response and display it on the browser ,this can be done using httpclient but my requirement is I am using a proxy pass in apache.when I am make a request to the url th

Re: Problems getting started with Tiles2/S2

2007-05-11 Thread Rick Schumeyer
Thanks for the help. I'm much closer now. I think I have a wrong path somewhere, but I'm not sure what to change. I get this error: Error executing tag: Attribute 'header' not found. This is the action I'm trying to render: homeTiles The section from tiles.xml:

RE: Need a recommendation to use struts version

2007-05-11 Thread Bruno Melloni
I find that "no framework" allows quicker writing while using a framework (i.e.: Struts) leads the thought processes to eventually produce cleaner, better organized, easier to maintain code. At least at first, using a framework will be slower, with productivity catching up as you gain experience an

Re: Need a recommendation to use struts version

2007-05-11 Thread Frank W. Zammetti
That's certainly not a bad approach, I wouldn't disagree... however, only the person actually architecting the application can make the determination... I don't know if any of this is true, so it's just hypothesizing, but consider this... The OP knows servlets, JSP and JSTL pretty well, but has no

Re: [S2]Dynamic List dissappears when validation fails

2007-05-11 Thread Struts2 Fan
Ok :) I will try to be more specific. I have a , , on the jsp. When submit is clicked, it goes to the action and populates the list and every record in the list puts a textbox on the jsp according to the selected . When the list is populated the user enters the values in the jsp and presses t

Re: [S2]Dynamic List dissappears when validation fails

2007-05-11 Thread Guillaume Carré
2007/5/11, Dave Newton <[EMAIL PROTECTED]>: Probably not. But your original message wasn't really specific enough. What do you mean, "dynamic list"? Ajax? Hidden div? How is it populated? How is it made visible? if he has the same issue that I have, here is what he probably means :-) ther is

Re: [S2]Dynamic List dissappears when validation fails

2007-05-11 Thread Dave Newton
--- Struts2 Fan <[EMAIL PROTECTED]> wrote: > I just wonder it is only me needs this kind of > dynamic stuff :) Probably not. But your original message wasn't really specific enough. What do you mean, "dynamic list"? Ajax? Hidden div? How is it populated? How is it made visible? d. __

Re: [S2]Dynamic List dissappears when validation fails

2007-05-11 Thread Struts2 Fan
I just wonder it is only me needs this kind of dynamic stuff :) -- View this message in context: http://www.nabble.com/-S2-Dynamic-List-dissappears-when-validation-fails-tf3726002.html#a10433917 Sent from the Struts - User mailing list archive at Nabble.com. ---

Re: Need a recommendation to use struts version

2007-05-11 Thread Musachy Barroso
I haven't seen a single project that starts as a simple application and with time doesn't grow up to a big application. That's why I like to use the right tools since the beginning, assuming it will grow someday. 2 cents musachy On 5/11/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Don't f

Re: Too many open files

2007-05-11 Thread Vamsi Gmail!
Hi we also came across this problem when dealing with reading and wrting into files it is not witj tomcat or struts or any other thing it is problem with the way your app developed make sure that your are closing the files once you done with that file regards Vamsi On 5/11/07, Jon Wynacht <[EM

Re: Need a recommendation to use struts version

2007-05-11 Thread Frank W. Zammetti
Don't forget one possible option here: don't use Struts at all. In fact, don't use any FRAMEWORK at all! What your describing isn't enough to make a recommendation whether to use a framework or not, but since you yourself describe it as simple, then you may not even need all Struts has to offer,

Re: Need a recommendation to use struts version

2007-05-11 Thread Dave Newton
--- Antonio Petrelli wrote: > 2007/5/11, Raghupathy, Gurumoorthy: >> If [...] new to struts then [...] 1.3.8 > Why not Struts 2? I think that for a project created > from scratch, Struts 2 is much better than Struts 1 I think it's easier to learn, too, particularly if the application is very simp

Re: Need a recommendation to use struts version

2007-05-11 Thread Saravanan Vijayappan
Thank you Raghu ! I removed my mobile number ! :) Thanks & Regards, Saravanan Vijayappan, - Original Message From: "Raghupathy, Gurumoorthy" <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Friday, May 11, 2007 7:43:22 PM Subject: RE: Need a recommendation to use struts ve

Re: Need a recommendation to use struts version

2007-05-11 Thread Antonio Petrelli
2007/5/11, Raghupathy, Gurumoorthy <[EMAIL PROTECTED]>: Hi Saravanan, If you are new to struts then I will suggest using 1.3.8 Why not Struts 2? I think that for a project created from scratch, Struts 2 is much better than Struts 1 (from a design POV). Antonio

RE: Need a recommendation to use struts version

2007-05-11 Thread Raghupathy, Gurumoorthy
Hi Saravanan, If you are new to struts then I will suggest using 1.3.8 Define your db as a datasource in tomcat (or your app server) so that your code is not database centric. Please read http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-exampl

Need a recommendation to use struts version

2007-05-11 Thread Saravanan Vijayappan
Hello, Which Struts version is preferred to use in production environment ?. The below is my requirement. 1. it's simple MVC application 2. The backend would be mysql db 3. No EJBs 4. No Ajax 5. Servlets, JSP, JSTL would be used. Please adivise me ! Thanks & Regards, Saravanan Vijayappan, +9

Re: Too many open files

2007-05-11 Thread Jon Wynacht
I'm working on that now, trying to get things to break. On May 9, 2007, at 6:51 AM, Mike Baroukh wrote: > Would I look for things that are related to Tomcat/MySQL/Struts? I only > see about 20 items listed, none of which have anything to do with my app. If your application open too many fi

SV: datetimepicker tag problem

2007-05-11 Thread Gunnar.Bostrom
Hi, Have you set struts.serve.static=true In struts.xml? Regards Gunnar > -Ursprungligt meddelande- > Från: Julien Leonard [mailto:[EMAIL PROTECTED] > Skickat: den 11 maj 2007 11:11 > Till: Struts Users Mailing List > Ämne: Re: datetimepicker tag problem > > Hi, > > I had the same

RE: [S2] tag & pre-selected options

2007-05-11 Thread Paul
So based on the last example there, // The month id (01, 02, ...) returned by the getSelectedMonth() call // against the stack will be auto-selected I'd just do something like, list = "#roleAction.roles" value="user.roles" etc? -Original Message- From: news [mailto:[EMAIL PROTECTED]

Re: [S2] tag & pre-selected options

2007-05-11 Thread Nate Drake
http://struts.apache.org/2.x/docs/select.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: datetimepicker tag problem

2007-05-11 Thread meissa . sakho
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Good answer ! I was near to tear my heair off because of this problem. There is nowhere in the do

[S2] tag & pre-selected options

2007-05-11 Thread Paul
Hi all, Could someone please a quick example on how to pre-select options within an tag? I have a user edit form where I have an list which is populated with all the user roles in the system. Obviously when editing a user, I'd like to cross reference against the "Set" of roles the user belo

Re: Preparable interface & getLocale(

2007-05-11 Thread Musachy Barroso
Yep, Dave is right. I can't think of any reason why the i18 interceptor wouldn't be first, but hey, it is friday! Anyway, as a workaround you can make your own interceptor stack. musachy On 5/11/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Torsten Römer <[EMAIL PROTECTED]> wrote: > I noticed

Re: Preparable interface & getLocale()

2007-05-11 Thread Musachy Barroso
It should be available, if it isn't it is probably a bug. musachy On 5/11/07, Torsten Römer <[EMAIL PROTECTED]> wrote: I noticed that when calling getLocale() from prepare(), it seems to return the system default locale instead of the locale set by the request_locale request parameter, which i

Re: Problems getting started with Tiles2/S2

2007-05-11 Thread Torsten Römer
Some time ago when I started with Struts2+Tiles2 I made a simple "blank" Struts2+Tiles2 webapp based on the struts2-blank-2.0.6 webapp. It includes a Tiles2 configuration and a layout with some simple pages, and hopefully all required JARs. It is maybe not the perfect example but if you think it c

RE: [S2] Using complex objects in JSP

2007-05-11 Thread Jordi Rubio Moreno
Hi Don, Thanks a lot! I'm reading all about OGNL to work with POJOs, and it's interesting. Thank you again for helping me :) Cheers! -Mensaje original- De: Don Brown [mailto:[EMAIL PROTECTED] Enviado el: jueves, 10 de mayo de 2007 22:16 Para: Struts Users Mailing List Asunto: Re: [S2

Re: Re: [S2] Form handling life cycle with HTTP GET/POST

2007-05-11 Thread Don Brown
As it is, yes and no. You can use the restful2 action mapper to have struts "guess" what the method names should be based on the URI and the HTTP method. However, outside that, I'm guessing you are really wanting some sort of technique that reads, say, an annotation over a method that says that

Re: datetimepicker tag problem

2007-05-11 Thread Julien Leonard
Hi, I had the same problem. Did you put tag? In fact I think that the datetimepicker needs ajax includes. Julien 2007/5/11, [EMAIL PROTECTED] < [EMAIL PROTECTED]>: Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateu

Re: Preparable interface & getLocale()

2007-05-11 Thread Dave Newton
--- Torsten Römer <[EMAIL PROTECTED]> wrote: > I noticed that when calling getLocale() from > prepare(), it seems to return the system default > locale instead of the locale set by the > request_locale request parameter, which is the case > when calling it from execute(). > > Is that supposed to

datetimepicker tag problem

2007-05-11 Thread meissa . sakho
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Hi all, I'm simply trying to use the datetime picker tag in my form exactly the same way in the

Preparable interface & getLocale()

2007-05-11 Thread Torsten Römer
I noticed that when calling getLocale() from prepare(), it seems to return the system default locale instead of the locale set by the request_locale request parameter, which is the case when calling it from execute(). Is that supposed to be like that or could this be a bug? I think the correct lo

Re: [S2] alternate tag layouts?

2007-05-11 Thread אלחנן מעין
is there anyway to define the wird of the text aread? i've used it in a table where one rows has to timepicker elements (next to each other ,from time to time, what's why i wanted simple theme), but the toTIme field to far away from the fromTime field, becouse the textarea in rows below it widen

[S2]Dynamic List dissappears when validation fails

2007-05-11 Thread Struts2 Fan
Hi all, I have a and in the jsp. When is clicked a list is put below ( list) according to the value in the . The values in the are all have to be not-null so there is validation for this object. Here is the problem, when the validation fails, as expected the action cannot be reached so the

Re: S2 and tiles2 status

2007-05-11 Thread Antonio Petrelli
2007/5/10, David Chisholm <[EMAIL PROTECTED]>: The version of Tiles 2 shipped with Struts 2.0.6 is an early snapshot. The Strut2 plugin for Tiles 2 only works with this version. It will not work with the latest Tiles 2 release, 2.0.3. I'm using the Struts 2.0.6 version of Tiles2 without any