RE: [S2] Freemarker vs struts taglibs

2007-05-28 Thread Jordi Rubio Moreno
Hi Jeromy, I apologize to respond this email so late. I've develop a little test portal (close in functionality to production portal), and I've notice that JSP taglib are slower that Freemarker equivalent page (I'm speaking about a JSP result page rendered in 1.2s and the same page rendered wi

RE: [S2] Freemarker vs struts taglibs

2007-05-28 Thread Jordi Rubio Moreno
Hi, An important info to comment... The total Action execution time is 60ms (again, perhaps the problem is slow taglib execution (?)) Cheers! Jordi Rubio Moreno -Mensaje original- De: Jordi Rubio Moreno [mailto:[EMAIL PROTECTED] Enviado el: lunes, 28 de mayo de 2007 13:25 Para: Stru

hi

2007-05-28 Thread Mansoor K.S. Ali
Dear all, I have problem is radio button. I have to put the value in the radio button using bean: write. It s not working I am trying in this way. " /> Simply it s replacing the tag itself. How to rectify. Plz help me in this regard. Regards, Mansoor

Re: [S2] A bug in documentation for validation

2007-05-28 Thread Olivier THIERRY
Hi, The problem is still there ... No way to see the step 3 in Basic Validation documentation. http://struts.apache.org/2.0.6/docs/basic-validation.html Thanks Olivier 2007/5/9, Musachy Barroso <[EMAIL PROTECTED]>: Fixed. It takes a while to replicate to the main doc. thanks musachy On 5/

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-05-28 Thread d4kris
Hi, I had the same problem as you with problem[1], but realised that it worked when I changed to Hope it helps /Kris Now hoping someone has the answer to problem[2]... Dave Newton-4 wrote: > > --- Musachy Barroso <[EMAIL PROTECTED]> wrote: >> for (2), do

Re: hi

2007-05-28 Thread Oguz Kologlu
Try value="group_id" /> Oz On 28/05/2007, at 9:43 PM, Mansoor K.S. Ali wrote: Dear all, I have problem is radio button. I have to put the value in the radio button using bean: write. It s not working I am trying in this way. value=" write name="groupList" value="group_id" />" />

Re: [S2] A bug in documentation for validation

2007-05-28 Thread Dave Newton
--- Olivier THIERRY <[EMAIL PROTECTED]> wrote: > http://struts.apache.org/2.0.6/docs/basic-validation.html http://struts.apache.org/2.x/docs/basic-validation.html d. Yahoo! oneSearch: Finally, mobile s

Re: [S2] A bug in documentation for validation

2007-05-28 Thread Olivier THIERRY
Thanks Dave ;) 2007/5/28, Dave Newton <[EMAIL PROTECTED]>: --- Olivier THIERRY <[EMAIL PROTECTED]> wrote: > http://struts.apache.org/2.0.6/docs/basic-validation.html http://struts.apache.org/2.x/docs/basic-validation.html d.

Re: [S2] Freemarker vs struts taglibs

2007-05-28 Thread Jeromy Evans
Jordi Rubio Moreno wrote: > Is JSP taglib too slow and not recommended solution for production portals? Hi Jordi, I'm impressed you made the effort to compare Freemarker vs Jsp performance. I've re-posted your question at the top of this email in the hope that it gains the attention of some

RE: [S2] A bug in documentation for validation

2007-05-28 Thread Neil Meyer
Hallo, I hope this question wasn't asked yet but quickly can I start using Struts 2 in a Struts 1 application. I have certain functionality already in 1 but would like to do new development in 2 but don't want to redevelop old functionality? Kr Neil Meyer -Original Message- From: Dave N

Re: [S2] Freemarker vs struts taglibs

2007-05-28 Thread Dave Newton
Extract the Freemarker tag templates; Freemarker doesn't cache them when they're loaded from the classpath. http://struts.apache.org/2.x/docs/performance-tuning.html d. --- Jeromy Evans <[EMAIL PROTECTED]> wrote: > Jordi Rubio Moreno wrote: > > Is JSP taglib too slow and not recommended > sol

RE: [S2] A bug in documentation for validation

2007-05-28 Thread Dave Newton
Please create new threads when asking a new question. --- Neil Meyer <[EMAIL PROTECTED]> wrote: > I have certain functionality already in 1 but would > like to do new development in 2 but don't want to > redevelop old functionality? AFAIK they can run in parallel. http://struts.apache.org/2.x/d

[S2] Optiontransfertselect tag

2007-05-28 Thread Julien Leonard
Hello all, I have a problem on the optiontransfertselect Tag. I success to display the optiontransfert but when i try to transfet an option, I have this in my javascript error console : Erreur : moveSelectedOptions is not defined Fichier source : http://localhost:9090/listProduct.action Ligne :

Re: [S2] Can't make validation work

2007-05-28 Thread Olivier THIERRY
I still can't make it work :( Anyone has an idea why it doesn't work ? Thanks in advance Olivier 2007/5/9, Olivier THIERRY <[EMAIL PROTECTED]>: So it should work with valdidate="false" ... But it doesn't ... So there's still something wrong in my configuration ... What is strange is that I ca

Re: [S2] Optiontransfertselect tag

2007-05-28 Thread Julien Leonard
Sorry for the mail. It work. My solution : -inclide optiontransfertselect.js in the parent page. -set the attributes id and doubleId Julien 2007/5/28, Julien Leonard <[EMAIL PROTECTED]>: Hello all, I have a problem on the optiontransfertselect Tag. I success to display the optiontransfert bu

& characters are encoded as & in OGNL parameters

2007-05-28 Thread Sami Dalouche
Hi, When creating a URL using the Struts2 JSP tag, and then, later in the page, reusing the url #id in some OGNL parameter, it seems the "&" characters in the URL are encoded as & Is this supposed to be a feature or a bug ? Is it possible to disable this behaviour somehow ? Thanks for your help

Re: [S2] Can't make validation work

2007-05-28 Thread Dave Newton
--- Olivier THIERRY <[EMAIL PROTECTED]> wrote: > I still can't make it work :( > Anyone has an idea why it doesn't work ? I don't have your action code, but does it extend ActionSupport? d. Shape Yahoo!

Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-05-28 Thread Dave Newton
--- d4kris <[EMAIL PROTECTED]> wrote: > Hope it helps Not really :) As I mentioned in my email I fixed it that same day. > Now hoping someone has the answer to problem[2]... My answer fixed my problem; IIRC Musachy found the actual problem and patched it... Look for other msgs with the same topi

RE: [S2] Freemarker vs struts taglibs

2007-05-28 Thread Jordi Rubio Moreno
Hi Jeromy, > > Is JSP taglib too slow and not recommended solution for production portals? > Hi Jordi, I'm impressed you made the effort to compare Freemarker vs Jsp > performance. I've re-posted your question at the top of this email in the > hope > that it gains the attention of some of the

Re: [S2] Can't make validation work

2007-05-28 Thread Olivier THIERRY
Well, no ... I thought actions could be POJOs ... Anyway, you are right, it works if my action class extends ActionSupport. But I have another problem now ... The input JSP page I want to redirect to contains lists filled from another action. So I configured it this way :

RE: [S2] Freemarker vs struts taglibs

2007-05-28 Thread Jordi Rubio Moreno
Hi Dave, Thanks a lot for the advice! I have use the template_update_delay=6 too, and have noticed some improvement :) Cheers Jordi Rubio Moreno -Mensaje original- De: Dave Newton [mailto:[EMAIL PROTECTED] Enviado el: lunes, 28 de mayo de 2007 14:43 Para: Struts Users Mailing L

Re: [S2] Can't make validation work

2007-05-28 Thread Dave Newton
--- Olivier THIERRY <[EMAIL PROTECTED]> wrote: > Well, no ... I thought actions could be POJOs ... They can. If you don't mind losing all the functionality or implementing it yourself. > > /absences/initCreerDemandeAbsence.action > Why wouldn't you forward to the input JSP? In any case, pa

Re: [S2] Can't make validation work

2007-05-28 Thread Olivier THIERRY
Well, in my JSP I have lists (s:select tag) that are filled by the init method of my action. So when I redirect to the JSP, it crashes because the lists in my action have not been initialized. Can the prepare method be used to do this ? 2007/5/28, Dave Newton <[EMAIL PROTECTED]>: --- Olivier T

Re: [S2] Session Beans - how to make?

2007-05-28 Thread Isaac Good
Thanks for the reply. It appears your solution is for Struts1, not Struts2. On 5/27/07, Henry F. Camacho Jr. <[EMAIL PROTECTED]> wrote: I create a session class that tracks all my session information needed for each user. Since you will likely be in a action object when you want this informatio

Excel, Struts and Downloading

2007-05-28 Thread Jon Wynacht
Hi, I asked this question of the POI user mailing list but it's probably a question for this list. If you don't know what POI is, check it out here: http://jakarta.apache.org/poi/ I used to run Struts 1.2.9, POI 2.5 and could generate Excel files from a servlet and download them without

Re: Excel, Struts and Downloading

2007-05-28 Thread Mike Baroukh
Hi. Maybe it has worked before, but I think you actually make an error : If you already send a stream back to the client, it's not logic to return "mapping.findForward()" because nothing else can be send to the browser at this point. You should simply return "null" ... Mike Jon Wynacht a

Struts 2 and JDK 1.4.2

2007-05-28 Thread Ken Miller
To those folks out there who are restricted to JDK 1.4.2, are you running the Struts 2 back port, and if so, how successful have you been? I'm trying to get the back port to work in a 1.4.2 engine, but I haven't had much success as of yet. I'm following the tutorial from the Struts website (t

Re: S2 tag property calls with arguments?

2007-05-28 Thread Torsten Römer
I should have a closer look at this... seems all very useful to know! Thanks again! Torsten Sami Dalouche schrieb: > Hi, > > OGNL is yet another language that one can use to access properties and > methods. You can see it as a simplified language (like Groovy or Java > itself) that is focused

Re: [S2] Optiontransfertselect tag

2007-05-28 Thread Musachy Barroso
Just to confirm what you said, in 2.0.x javascript files referenced on pages loaded using the ajax tags are not loaded. This will be fixed on 2.1 musachy On 5/28/07, Julien Leonard <[EMAIL PROTECTED]> wrote: Sorry for the mail. It work. My solution : -inclide optiontransfertselect.js in the pa

Re: Struts 2 and JDK 1.4.2

2007-05-28 Thread Dave Newton
--- Ken Miller <[EMAIL PROTECTED]> wrote: > To those folks out there who are restricted to JDK > 1.4.2, are you running the Struts 2 back port, and > if so, how successful have you been? I had no issues fairly far into a small-ish app using S2, Tiles 2, and Hibernate 3. > The requested file /Hell

Re: Excel, Struts and Downloading

2007-05-28 Thread Jon Wynacht
Hi Mike, Yup. I did that and no error is thrown now, however I don't get the download anymoreI'm thinking I need to implement StrutsFileDownload instead and that's my link? Thoughts? Jon On May 28, 2007, at 8:21 AM, Mike Baroukh wrote: Hi. Maybe it has worked before, but I think yo

pb with struts and jstl

2007-05-28 Thread horri khalid
Hi I use for list of checkbox with the customer ID as value. but in the output i have this so i want to know where is the problem ? Any idea is appreciated.

Re: pb with struts and jstl

2007-05-28 Thread Dave Newton
--- horri khalid <[EMAIL PROTECTED]> wrote: > property="customers" > value="" > /> > so i want to know where is the problem ? It's where you nest XML, which isn't allowed. If you're in a JSP 2+ container you can use straight JSP EL, if JSP <2 you can the use the html-el tags. d.

Re: Excel, Struts and Downloading

2007-05-28 Thread Frank W. Zammetti
No, you don't need to implement StrutsFileDownload... What your doing should work fine... Can you throw together a quick, simple application that is nothing but a single Action that writes out "ok" to the response and returns null? See if that works... if what you describe is accurate, it sure

Re: Multiple upload using Struts 1.0

2007-05-28 Thread Laurie Harper
Vikash Manoranjan wrote: Hi all, We have very urgent requirement for multipe file upload option using Struts 1.0. The number of files to be uploaded will be decided at run-time. Kindly help me. Its very urgent The question is rather broad. Perhaps this will give you the information you

Re: Struts 2 and JDK 1.4.2

2007-05-28 Thread Laurie Harper
Ken Miller wrote: Also, the only runtime dependency indicated for Struts 2 is the velocity-dep jar (along with commons logging, I'll assume). Is this correct, or are there other dependencies? Indicated where? See here for minimum requirements: http://struts.apache.org/2.x/docs/simple-setup.

Re: & characters are encoded as & in OGNL parameters

2007-05-28 Thread Laurie Harper
Sami Dalouche wrote: Hi, When creating a URL using the Struts2 JSP tag, and then, later in the page, reusing the url #id in some OGNL parameter, it seems the "&" characters in the URL are encoded as & Is this supposed to be a feature or a bug ? It's expected behaviour. Is it possible to di

Re: & characters are encoded as & in OGNL parameters

2007-05-28 Thread Sami Dalouche
Hi, > > Is it possible to disable this behaviour somehow ? > > Depends how you're using the URL. Are you sure you even *want* to > disable the behaviour? Encoding ampersands is generally the right thing > to do. > Well, yeah, I do want to disable it. Basically, I need to generate the fully qu

Re: Struts 2 and JDK 1.4.2

2007-05-28 Thread Ken Miller
>>> On 5/28/2007 at 10:23 AM, in message <[EMAIL PROTECTED]>, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Ken Miller <[EMAIL PROTECTED]> wrote: >> To those folks out there who are restricted to JDK >> 1.4.2, are you running the Struts 2 back port, and >> if so, how successful have you been? > >

Re: Struts 2 and JDK 1.4.2

2007-05-28 Thread Ken Miller
>>> On 5/28/2007 at 1:15 PM, in message <[EMAIL PROTECTED]>, Laurie Harper <[EMAIL PROTECTED]> wrote: > Ken Miller wrote: >> Also, the only runtime dependency indicated for Struts 2 is the velocity-dep > jar (along with commons logging, I'll assume). Is this correct, or are there > other depend

Re: Struts 2 and JDK 1.4.2

2007-05-28 Thread Dave Newton
--- Ken Miller <[EMAIL PROTECTED]> wrote: > I think I found my issue - while we're running JDK > 1.4.2, we're also running J2EE 1.3, which as you > know comprises Servlet 2.3 and JSP 1.2, which don't > match the requirements for Struts 2. > > Bummer, that. I was toast before I even started :-)

Re: Struts 2 and JDK 1.4.2

2007-05-28 Thread Ken Miller
>>> On 5/28/2007 at 2:16 PM, in message <[EMAIL PROTECTED]>, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Ken Miller <[EMAIL PROTECTED]> wrote: >> I think I found my issue - while we're running JDK >> 1.4.2, we're also running J2EE 1.3, which as you >> know comprises Servlet 2.3 and JSP 1.2, whic

Starting with struts2

2007-05-28 Thread Srepfler Srgjan
Hi, I'm just starting with struts 2 and although I'm having some bumps I think it's going to prove that MVC is still an excellent platform to build a web application. First thing I've had an issue is that my initial domain model had been using not the classic setter but a setter that returns th

Re: Starting with struts2

2007-05-28 Thread Dave Newton
--- Srepfler Srgjan wrote: > Can you confirm struts2 doesn't support these kind of > setters (or is there some workaround or future plans > to support it)? My guess (and it just a guess) is that S2 will only support standard JavaBean conventions. > I'm iterating over a collection but the collect

Re: Struts 2 and JDK 1.4.2

2007-05-28 Thread Dave Newton
Ken Miller <[EMAIL PROTECTED]> wrote: > Dave Newton <[EMAIL PROTECTED]> wrote: > > --- Ken Miller <[EMAIL PROTECTED]> wrote: >>> I think I found my issue - while we're running JDK >>> 1.4.2, we're also running J2EE 1.3, which as you >>> know comprises Servlet 2.3 and JSP 1.2, which don't >>> match

[s2] logon-validation.xml does not work in

2007-05-28 Thread robinbajaj
I am a Struts 2 newbie. The validation piece from Struts 2 bootstrap tutorial is not kicking in, and does not show the validation error messages even when I provide invalid data. I started my this struts2 project using the the Maven Starter Archetype (struts2-archetype-starter) and my Logon-valid

Re: [s2] logon-validation.xml does not work in

2007-05-28 Thread Dave Newton
--- robinbajaj <[EMAIL PROTECTED]> wrote: > Here's my Logon-Validation.xml > http://rafb.net/p/FToVf186.html Is it really Logon-Validation.xml (capital "V")? Or is it really Logon-validaiton.xml (misspelled) like on nopaste? Or is it logon-validation.xml like in the subject? Or is it actually spel

Re: Starting with struts2

2007-05-28 Thread Srepfler Srgjan
My guess (and it just a guess) is that S2 will only support standard JavaBean conventions. :-( I'm iterating over a collection but the collection contains various subclasses (ex Collection but items might be Human, Dolphin etc.), how can I know which type is it so that I can render som

Re: Starting with struts2

2007-05-28 Thread Dave Newton
--- Srepfler Srgjan wrote: > > Check the class name? > how would a ognl expression to check that be? "anObject.class.name" d. Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, n

action redirection

2007-05-28 Thread Ashuin Sharma Chamorro
Is it possible to redirect the application to another context from the struts-config.xml I have tried this and it doesent work, it says path need to start with /. How can I do this? Is there a workaround? Please help. Ashuin Sharm

Re: action redirection

2007-05-28 Thread Dave Newton
http://struts.apache.org/2.x/docs/redirect-result.html --- Ashuin Sharma Chamorro <[EMAIL PROTECTED]> wrote: > Is it possible to redirect the application to > another context from the > struts-config.xml > > > > > > I have tried this and it doesent work, it says path > need to start with

RE: action redirection

2007-05-28 Thread Ashuin Sharma Chamorro
Im in struts 1.2.9 . -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 5:33 PM To: Struts Users Mailing List Subject: Re: action redirection http://struts.apache.org/2.x/docs/redirect-result.html --- Ashuin Sharma Chamorro <[EMAIL PROTECTED]> wrot

Re: action redirection

2007-05-28 Thread Oguz Kologlu
try redirect="true" /> add the context path as required ( eg: "/Management/ WebPatientManagenet/addPatient.do" ) Oz On 29/05/2007, at 9:38 AM, Ashuin Sharma Chamorro wrote: Im in struts 1.2.9 . -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, May 28,

Spring scope="prototype"

2007-05-28 Thread stanlick
I am having a problem getting Spring to instantiate my Actions beans. I have configured my Actions in application.xml and am referencing the bean id name from struts.xml. I see the beans instantiated when the application server starts (I have log4J in the constructors) but never again after that

RE: action redirection

2007-05-28 Thread Dave Newton
--- Ashuin Sharma Chamorro wrote: > Im in struts 1.2.9 . Oh. What Oguz said then :) d. Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out

Re: Struts 2 and JDK 1.4.2

2007-05-28 Thread Zoran Avtarovski
We tried deploying to jrun4 which is Servlet 2.3/JSp 1.2 compliant with the same result as Ken. We tried for a day to get any struts2 app (blank, showcase, mailreader) to work without success. We had the same issue of not being able to read the struts.xml file. In the end we went to Tomcat6 without

Re: Excel, Struts and Downloading

2007-05-28 Thread Jon Wynacht
Thanks Frank. I was able to track down an issue with my SQL and have resolved it. I really appreciate this list...most of the time I lurk and glean nuggets of goodness but on occasion when I've had some questions and needed help...folks are there. Cheers! Jon On May 28, 2007, at 11:00 A

[s2] how to get "onclick" working with ajax themed submit button

2007-05-28 Thread Jason Wyatt
Hi, We're using an ajax-themed submit button to submit a form. We now need to add an "onclick" trigger to call some javascript before it submits. However, the javascript never seems to be called when using the ajax theme on the submit button. Is there a way to trigger an "onclick" javascript eve

Re: [s2] how to get "onclick" working with ajax themed submit button

2007-05-28 Thread Jeromy Evans
Either use the 'handler' attribute of submit to specify the javascript function to call to submit your form, or add a listener with notifytopics/listentopics. http://struts.apache.org/2.x/docs/ajax-tags.html#AjaxTags-dojoTopics Jason Wyatt wrote: Hi, We're using an ajax-themed submit button