Re: Radio buttons in a iterated list

2006-11-10 Thread Uday Karrothi
I have an example i used. Its not the best but it worked for me In the JSP page . Pri. Adj. ... in the action form String[] primAdj = new String[listDevApprGrpList.size()+1]; for(int i=0;i wrote: I forgot to mention that I am iterating

Re: iterate through two collections

2006-11-10 Thread Uday Karrothi
Even you ar settign all the values properly and getting the display accurately. I do not think the changes you made to the Collection( in terms of textboxes or checkboxes or Selections) will not reflect on the arrayList. Atleast I failed in doing so. There are other ways liek using multiboxes, ind

Re: Question on formbeans and collections in iterate tags

2006-11-10 Thread Laurie Harper
Gallagher, Jim (RBoS ITD&S Dublin) wrote: Hi, I'm having an issue with a formbean not containing the data I expect when returned from a JSP. I suspect this is a common problem, but despite searches I can't find a solution on the net. Any assistance will be gratefully received. M

Re: Problem of File Uploading through SSL

2006-11-10 Thread Laurie Harper
Mano Chinthaka Dasanayaka wrote: Hi All, I have encountered an issue when uploading files through SSL. I'm Using Struts 1.2, FormFiles.and it works on Fire fox. Any Idea..? Is there any IE 6.0 Settings to work this..? Without knowing anything about what problems you're seeing, it's a bit ha

Re: SV: converted to

2006-11-10 Thread Laurie Harper
'rapport' needs to be a property on your form bean, not a request parameter/attribute. The 'property' attribute on the tag tells Struts that the current selection is stored in that property. If the value of any enclosed tag matches the value in that property, the corresponding option will aut

Re: [s2] Requirements

2006-11-10 Thread Laurie Harper
Wendy Smoak wrote: On 11/10/06, Laurie Harper <[EMAIL PROTECTED]> wrote: Hmm, I'm surprised the report doesn't already distinguish deps marked 'optional' in the POM. Would it be sufficient to prefix the description of each dependency with something like '[Optional: required when using feature X

Re: displaying non-localized erorr messages

2006-11-10 Thread Laurie Harper
Youssef A. Mohammed wrote: Hi all; There is a requirement to display a message that are retrieved from the backend system without the need to localize it tin the MessageResource files. That's the backend system will return a dynamic error message "ERROR 1 2 3" and I just want to display t

Re: Struts 2 and JSTL

2006-11-10 Thread Laurie Harper
Asthana, Rahul wrote: Hi All, Is JSTL and JSTL EL the library and expression language of choice in Struts 2? I read about OGNL somewhere.What library does it use? What are its advantages over JSTL? JSTL is a standard, but only works in JSP files. It provides both an EL and a set of custom tag

Re: [s2] Requirements

2006-11-10 Thread Wendy Smoak
On 11/10/06, Laurie Harper <[EMAIL PROTECTED]> wrote: Hmm, I'm surprised the report doesn't already distinguish deps marked 'optional' in the POM. Would it be sufficient to prefix the description of each dependency with something like '[Optional: required when using feature X]'? We don't contr

Re: [s2] Requirements

2006-11-10 Thread Laurie Harper
Wendy Smoak wrote: On 11/10/06, Don Brown <[EMAIL PROTECTED]> wrote: Sure, it should look better, but it still wouldn't split out optional and required dependencies. For example, it shows Rife Continuations as required but it is very much optional. My guess is that it would require some work

Re: In search of a perfect AJAX solution for Struts

2006-11-10 Thread Frank W. Zammetti
Levan Dvalishvili wrote: There is small cavity regarding ajaxtags as a name : , http://ajaxtags.sourceforge.net/ is alive and well and its in beta 2 stage at the moment, good thing about it is that they use prototype, Note however that there are issues with Prototype messing with intrinsic Jav

Re: [s2] Dynamically Parameterize Redirect Result

2006-11-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, Mark Menard wrote: > Is there a way to dynamically parameterize a redirect result based on an > http request parameter that you have used in the action your are redirecting > from? This isn't exactly struts-2 specific, if I'm reading this corre

Re: [s2] Dynamically Parameterize Redirect Result

2006-11-10 Thread Don Brown
I believe that any unknown result parameters are automatically used as request parameters for the redirect. Then, use an ognl expression for your param value and provide a getter on your action for the value. Don On 11/10/06, Mark Menard <[EMAIL PROTECTED]> wrote: Is there a way to dynamically

[s2] Dynamically Parameterize Redirect Result

2006-11-10 Thread Mark Menard
Is there a way to dynamically parameterize a redirect result based on an http request parameter that you have used in the action your are redirecting from? In other words I'm doing some work in an action that is based on an ID that was passed into it from the HTML form. I need to do some work, the

Re: [OT] object[] to string[]

2006-11-10 Thread Chris Pratt
Excelent reply. To simplify your code a bit, you might look at something like: int j=0; String[] strings = new String[list.size()]; Iterator i = list.iterator(); while(i.hasNext()) { strings[j++] = String.valueOf(i.next()); } String.valueOf() will automatically convert everything (including St

Re: In search of a perfect AJAX solution for Struts

2006-11-10 Thread robin bajaj
Thanks a lot, appreciate the clarification. Needed it pretty bad. - R Levan Dvalishvili wrote: There is small cavity regarding ajaxtags as a name : , http://ajaxtags.sourceforge.net/ is alive and well and its in beta 2 stage at the moment, good thing about it is that they use prototype, script.a

Re: [OT] object[] to string[]

2006-11-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miro, 1. Please use your real name in your email address when posting to the list. "temp temp" is a poor moniker. 2. While some of us will be happy to answer "purely" Java questions, please mark such posts as [OT] (for "off-topic") and apologiz

RE: In search of a perfect AJAX solution for Struts

2006-11-10 Thread Levan Dvalishvili
There is small cavity regarding ajaxtags as a name : , http://ajaxtags.sourceforge.net/ is alive and well and its in beta 2 stage at the moment, good thing about it is that they use prototype, script.acu.los, which in my opinion is lot faster and better that overweight Dojo, But this http://struts

Re: [OT-Friday]What's the best way to search through Struts user list ...

2006-11-10 Thread robin bajaj
Great going folks. Thanks a lot. robin Wendy Smoak wrote: On 11/10/06, robin bajaj <[EMAIL PROTECTED]> wrote: What's the best way to search through Struts user mailing list archives ...for already known issues . Just Google or do we have some search functionality on the site that I didnt notic

Re: [OT-Friday]What's the best way to search through Struts user list ...

2006-11-10 Thread Wendy Smoak
On 11/10/06, robin bajaj <[EMAIL PROTECTED]> wrote: What's the best way to search through Struts user mailing list archives ...for already known issues . Just Google or do we have some search functionality on the site that I didnt notice during a quick glance Nabble is my favorite archive: ht

Re: [OT-Friday]What's the best way to search through Struts user list ...

2006-11-10 Thread Chris Cheshire
Robin, I use http://marc.theaimsgroup.com/?l=struts-user for my mailing list archive searching. Drop back to their main page, and you will see there is a vast number of tech mailing lists archived there. Google can also prove fruitful too, there are probably other places that archive the mailing

Re: Struts 1.3.5 and Eclipse 3.2

2006-11-10 Thread robin bajaj
Or actually you can just get it from your project structure, depending upon your jsp and tld location. Say your jsp is in WebRoot/ [[ webRoot/abc.jsp ]] and your tld is lying in web-Inf/struts-logic.tld {usual tooling/user practice} Then you can access the .tld as <%@ taglib uri="/WEB-INF/

[OT-Friday]What's the best way to search through Struts user list ...

2006-11-10 Thread robin bajaj
Hi Guys, What's the best way to search through Struts user mailing list archives ...for already known issues . Just Google or do we have some search functionality on the site that I didnt notice during a quick glance thanks, robin --

Re: Struts 1.3.5 and Eclipse 3.2

2006-11-10 Thread Paul Benedict
The taglib URI should be the the http:// address, not the /META-INF location. If you are unsure what the address is, open up the TLD files and see. -- Paul Bruno Melloni wrote: I have a strange problem, with Struts 1.3.5 in Eclipse 3.2. - struts-taglib-1.3.5.jar is in the classpath. - Insi

Re: Struts 1.3.5 and Eclipse 3.2

2006-11-10 Thread robin bajaj
Hi Bruno, The problem seems to be incorrect http://struts.apache.org/tags-logic"; prefix="logic" %> here's what I have. I know they changed it from Struts 1.1 to 1.2. << Unless they changed it from 1.2 to 1.3.x as well, it should work for you.>> You can give a shot with this. Or else just wait fo

Re: Struts 1.3.5 and Eclipse 3.2

2006-11-10 Thread robin bajaj
Hi Bruno, The problem seems to be incorrect http://struts.apache.org/tags-logic"; prefix="logic" %> here's what I have. I know they changed it from Struts 1.1 to 1.2. Unless they changed it f You can give a shot with this. Or else just wait for some Struts 1.3.x user to respond. regards, robin

Re: problem with moving jsp pages under web-inf/ folder

2006-11-10 Thread robin bajaj
Oh ok, sorry I was a little lost yesterday while trying all this. I just read your responses carefully again and gave it a shot. Its working now. :-) I will keep the jsps under web-inf\jsp and the other resources under webRoot itself. thanks a lot to all who replied to this thread, have a nice we

[OT-Friday] Re: object[] to string[]

2006-11-10 Thread Christopher Goldman
On Fri, 2006-11-10 at 16:32 -0500, Monkeyden wrote: > That wasn't very pedantic of you to mispell it. :) "Misspell?" Or was that irony? ;) Ever-pedantic Chris -- Christopher D. Goldman [EMAIL PROTECTED] - To unsubscribe, e

Re: Losing Locale after Sesion.invalidate()

2006-11-10 Thread Paul Benedict
Struts currently uses the session to store the explicit selected locale. It will fallback to the request otherwise. Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, Paul Benedict wrote: In Struts 1.3.6, I hope to be providing a locale solution for Struts which i

Struts 1.3.5 and Eclipse 3.2

2006-11-10 Thread Bruno Melloni
I have a strange problem, with Struts 1.3.5 in Eclipse 3.2. - struts-taglib-1.3.5.jar is in the classpath. - Inside the jar, in /META-INF/tld are the struts tld files. - I have the following in index.jsp: <%@ taglib uri="/META-INF/tld/struts-logic.tld" prefix="logic" %> - Ecli

Re: object[] to string[]

2006-11-10 Thread Monkeyden
That wasn't very pedantic of you to mispell it. :) On 11/10/06, Ed Griebel <[EMAIL PROTECTED]> wrote: On 11/10/06, Martin Gainty <[EMAIL PROTECTED]> wrote: > I dont know 'pendantic' so I would suggest System.arrayCopy as in > > (Sorry for being pedantic...) LOL, TGI Friday! :-) -

Re: logging initialization order

2006-11-10 Thread Chris Pratt
We have a similar situation. I use a the contextInitialized event of a javax.servlet.ServletContextListener to initialize our logging environment before Struts gets hold of it. (*Chris*) On 11/10/06, Ping Yu <[EMAIL PROTECTED]> wrote: Hi, people in the list, I still got problems in log4j w

Re: object[] to string[]

2006-11-10 Thread Ed Griebel
On 11/10/06, Martin Gainty <[EMAIL PROTECTED]> wrote: I dont know 'pendantic' so I would suggest System.arrayCopy as in (Sorry for being pedantic...) LOL, TGI Friday! :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: object[] to string[]

2006-11-10 Thread Martin Gainty
I dont know 'pendantic' so I would suggest System.arrayCopy as in assuming Object aobject[]; //you can use arrayCopy as in System.arrayCopy(list,0,aobject,0,list.size(); //later on cast as Object String str = (String)aobject[0]; (Sorry for being pedantic...) M- This e-mail communication and an

Re: In search of a perfect AJAX solution for Struts

2006-11-10 Thread Frank W. Zammetti
Good choices :) One word of caution: I don't think we ever updated that cookbook example for the latest version of APT... the latest version was a pretty significant change, so I wouldn't expect it to work with the example as-is... we did try and make the migration path as easy as possible, so whi

Re: iterate through two collections

2006-11-10 Thread Ed Griebel
Try using . indexId should be replaced with 0, 1, 2, ... as it iterates and the underlying BeanUtils will extract the n-th element from the collection. I don't think this will if you are using an unsorted collection (set, map) because they don't support get(int) On 11/10/06, Van Nguyen <[EMAIL P

Re: Select Multiples Check Box

2006-11-10 Thread Uday Karrothi
Here is an example of a Multi box that you can use. the property "selectedAssets" is a string array property of the form bean. In your action class you should get the list of "appvr_grp_id" 's that are selected. Hope that helps regards, Uday Karrothi

Re: iterate through two collections

2006-11-10 Thread Wendy Smoak
On 11/10/06, Van Nguyen <[EMAIL PROTECTED]> wrote: I have two ArrayList that I need to iterate through: // write info contained in collection2 // something like this… but not working?? collection1 and collection2 will always have the same number of re

Re: Select Multiples Check Box

2006-11-10 Thread Uday Karrothi
I am with Christopher on this Daniel. You should appreciate the fact someone actually took time to answer your problem. I feel embarrassed if somebody actually said that to me, but not angry. I would put a better question next time. Keep the questions coming Daniel, give everybody a chance to le

Re: In search of a perfect AJAX solution for Struts

2006-11-10 Thread robin bajaj
Hi Frank, Thanks a lot for your reply on this issue. I did give it a quick shot to Java Web Parts. Very well done ! a) I liked and will use the following in my current webApp. 1) 2nd JWP cookbook example - AJAX style populating the drop-down selections. 2) SessionInactivityFilter b) I wi

iterate through two collections

2006-11-10 Thread Van Nguyen
Hi,    I have two ArrayList that I need to iterate through:       // write info contained in collection2   // something like this… but not working??     collection1 and collection2 will always have the same number of records…   Any ideas?

logging initialization order

2006-11-10 Thread Ping Yu
Hi, people in the list, I still got problems in log4j warnings. I didn't use digester in my application. I have my own log.jave file and I would like to initialize my log.java file before Tomcat/struts initializes the Digester logger. Right now, the log4j warning occurs immedia

Re: object[] to string[]

2006-11-10 Thread Ed Griebel
Maybe I'm just being pendantic, but this isn't really related to Struts at all. java.util.Arrays and java.util.Collections provide a lot of methods to transform between arrays and collections. You will find your answer after some reading and some experimentation. On 11/10/06, temp temp <[EMAIL P

Re: how to call action from java script

2006-11-10 Thread robin bajaj
Hi there, I would catch a control's (radionButton etc) event to fire the form's submit method to call its action etc. - You can catch the onclick event of the radio button and submit the form and hence call its action. onclick="document.forms[form-name-from-struts-config.xml].submit();" />

object[] to string[]

2006-11-10 Thread temp temp
I want contents of java.util.list as string array Object aObject[]= list.toArray(); How can I cast this to string []? Thanks & Regards Miro - Everyone is raving about the all-new Yahoo! Mail beta.

Re: why Struts 2 ? ,( justified reasons to migrate)

2006-11-10 Thread Ted Husted
Five reasons to migrate 1. Your S1 application is ready for its own version 2. 2. Your S1 application is still under development or in the planning stages. 3. You inherited a S1 application that needs work, and you don't understand how it works. 4. You would like to integrate a few JSF compone

Re: [s2] Requirements

2006-11-10 Thread Wendy Smoak
On 11/10/06, Don Brown <[EMAIL PROTECTED]> wrote: Sure, it should look better, but it still wouldn't split out optional and required dependencies. For example, it shows Rife Continuations as required but it is very much optional. My guess is that it would require some work in whichever Maven

[OT] Humility (was Re: Select Multiples Check Box)

2006-11-10 Thread Christopher Goldman
On Fri, 2006-11-10 at 07:21 -0600, Daniel Chacón Sánchez wrote: > Jajajajaajaja a coffee?, What you need is little of humility, I also had > helped people answering their questions, the difference is that I´m not a > prepotent person like you, this post was made by one partner because I was > in a

Re: [s2] Requirements

2006-11-10 Thread Don Brown
Sure, it should look better, but it still wouldn't split out optional and required dependencies. For example, it shows Rife Continuations as required but it is very much optional. Don On 11/10/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 11/10/06, Don Brown <[EMAIL PROTECTED]> wrote: > Hmm...

Re: [s2] Requirements

2006-11-10 Thread Wendy Smoak
On 11/10/06, Don Brown <[EMAIL PROTECTED]> wrote: Hmm...that list is very deceptive as it doesn't break down which dependencies are optional and which are required. Only a couple are actually required, while the rest are either fully optional or only required if a certain plugin is used. Any wa

Re: dojo toolkit available for Struts 1.x ?

2006-11-10 Thread Don Brown
You can use Dojo with any web framework. In Struts 2, we provide some tags that wrap Dojo components, making it a bit easier to integrate Dojo, but by no means is Struts 2 required to use Dojo in a Struts app. Don On 11/10/06, robin bajaj <[EMAIL PROTECTED]> wrote: Hi All, Thanks a lot for Str

Re: [s2] Requirements

2006-11-10 Thread Don Brown
Hmm...that list is very deceptive as it doesn't break down which dependencies are optional and which are required. Only a couple are actually required, while the rest are either fully optional or only required if a certain plugin is used. Any way we could clean that up? Don On 11/10/06, Wendy

how to call action from java script

2006-11-10 Thread nazgultukai
I'm trying to create a web page using JSP,Struts and Javascript... the page has a form where there are two radio buttons and a menu box. now the idea is when one clicks on a radio button the menu will show the items related to this categoryfor this I've to use java script on click function

dojo toolkit available for Struts 1.x ?

2006-11-10 Thread robin bajaj
Hi All, Thanks a lot for Struts community's help so far regarding all my questions. I developing a webApp using Struts 1.2.x I have been searching around for good jsp taglib for tab controls. And specifically that allows sub-tabs in those tabs. I have been hearing about dojo on this forum in Stru

Re: [s2] Requirements

2006-11-10 Thread Wendy Smoak
On 11/9/06, Dion Gillard <[EMAIL PROTECTED]> wrote: Is there doco somewhere on the minimum requirements for S2? Does this help? http://struts.apache.org/2.x/struts2-core/dependencies.html -- Wendy - To unsubscribe, e-mail:

RE: without writing a in the resultant HTML

2006-11-10 Thread Lance Semmens
That worked a treat... thanks for the quick response. I did a quick check with and and the *hack* seems to work there too. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: 10 November 2006 17:08 To: Struts Users Mailing List Subject: Re: without writing a in the r

RE: Java exception handling

2006-11-10 Thread Bruno Melloni
Also, if WorkflowException is your own, you might want consider exception chaining. Sun included pretty good support for it since JDK 1.4.2 (http://java.sun.com/j2se/1.4.2/docs/guide/lang/chained-exceptions.html) . -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sen

Re: without writing a in the resultant HTML

2006-11-10 Thread Wendy Smoak
On 11/10/06, Lance Semmens <[EMAIL PROTECTED]> wrote: 1. Can I use struts tags (eg ) without wrapping them in an (I'm pretty sure the answer is no). 2. Can I wrap my tags in but somehow not output to the resultant HTML. I was hoping for a render="false" or similar. eg:

without writing a in the resultant HTML

2006-11-10 Thread Lance Semmens
Hi, I'm wanting to use the struts tags to render my inputs. The only problem is that my JSP page only draws a small section of the form (perhaps a single ) and is called via AJAX. So, I have 2 questions: 1. Can I use struts tags (eg ) without wrapping them in an (I'm pretty sure the answer is

Re: Java exception handling

2006-11-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miro, temp temp wrote: > For good exceptional handling should I create all my methods in > try catch block and throw exception in the catch block with > e.printstacktrace() I would recommend simply doing this: > }catch(Exception e) { >

SV: converted to

2006-11-10 Thread Søren Blidorf
Hi Mike. That's what I hoped. There is a request.GetParameter("rapport"), but that does not do anything to the html:select Soren -Oprindelig meddelelse- Fra: Mike Baroukh [mailto:[EMAIL PROTECTED] Sendt: 10. november 2006 17:33 Til: Struts Users Mailing List Cc: [EMAIL PROTECTED] Emne:

Re: converted to

2006-11-10 Thread Mike Baroukh
Hi. I think that you don't have so specify "selected" : struts will automatically add it if the value of the option is equals to the value of the property ... Mike Søren Blidorf a écrit : How can I convert the following to Struts: one two tree This does not work: one two tree It is

converted to

2006-11-10 Thread Søren Blidorf
How can I convert the following to Struts: one two tree This does not work: one two tree It is very important for me to specify which is "selected" BR. Soren, DK - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Java exception handling

2006-11-10 Thread temp temp
For good exceptional handling should I create all my methods in try catch block and throw exception in the catch block with e.printstacktrace() Exammple public void processQueryResults(Map metaInfo, Map entityInfo) throws WorkflowException {

Question on formbeans and collections in iterate tags

2006-11-10 Thread Gallagher, Jim (RBoS ITD&S Dublin)
Hi, I'm having an issue with a formbean not containing the data I expect when returned from a JSP. I suspect this is a common problem, but despite searches I can't find a solution on the net. Any assistance will be gratefully received. My form consists of general data about a spec

Re: why Struts 2 ? ,( justified reasons to migrate)

2006-11-10 Thread Mark Menard
On 11/9/06 2:18 PM, "Levan Dvalishvili" <[EMAIL PROTECTED]> wrote: > > Hi All! I have been recently trying to come up with at least top 5 > justifieable reasons , why one should consider migrating from struts 1.3 (or > even 1.2.X) to struts 2,bascially , what are the gaining points that justify >

Re: Select Multiples Check Box

2006-11-10 Thread Daniel Chacón Sánchez
Jajajajaajaja a coffee?, What you need is little of humility, I also had helped people answering their questions, the difference is that I´m not a prepotent person like you, this post was made by one partner because I was in a hurry and can´t answer her in the moment, but thank you for your 2 minu

problem of recovery of the value of "radio"

2006-11-10 Thread nalimoussa
Hi everybody, is what my code is good? and How to recover the value of a "radio"? Regards, Nab. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]