Re: i18n is killing me!
try by renaming your properties file as XXX_en_US.properties. Cheers!! Zayed [EMAIL PROTECTED] wrote: >hiyas, > >can anyone lend a hand with i18n? it's starting to feel like i81n!! :/ > >environment is struts 1.1b1, win2k, jboss 3.0/tomcat 4.0.3 release, default >locale is en_US. > >i have a web-inf/classes/ApplicationResources.properties as well as >web-inf/classes/ApplicationResources_en.properties for good measure. In my >struts-config.xml, i have key="org.apache.struts.action.MESSAGE" null="false"/>. > >it seems like i should be able to get something with: > >System.out.println(messages.getMessage(Locale.getDefault(),"error.transaction >.token")); > >but I get nothing but the bad property string (since the null config >attribute is set to false). error.transaction.token is defined in both >files, the spelling is checked a hundred times, etc. > >Of course, ActionError("error.transaction.token") gives the same error >result. > >Anything that ppl can think that i missing? i've spent the whole day on >this!! > >thanks a bunch, > >-b > >_ >If you have some ice cream, I will give it to you. >If you have no ice cream, I will take it away from you. > - Ice Cream Koan > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: logic:iterate populating with multiple String[]
Hi, Has enyone got answer for this? thanks, Zayed [EMAIL PROTECTED] wrote: > Hi Keith, > Thanks for your reply. > > The Problem I am facing is regarding the use of and > tags > > Let me restate my problem > > I am developing a WEB-UI for a third party Java Application Therefore > I don't have control over the object/s returned. > I get two String arrays of the same length which I should be showing > in a table. The first String[] contains productName and the second > String[] contains the corresponding product description. how do I > construct the table rows using and tags. > > The corresponding JSP code looks is below > > <% >String[] productNamesArray = //Get the product names array >String[] productDesctriptionArray = //Get the product description > array >//FYI : productNamesArray.length = productDesctriptionArray.length > >for(int i=0; i > %> > > > > <%= productNamesArray[i] %> > > <%= productDesctriptionArray[i] %> > > > <% >}//end of for loop > %> > > could somebody help me with corresponding snippet using > and tags > > Thanks in advance > > Cheers!! > Zayed > > > [EMAIL PROTECTED] wrote: > >> I'm not sure if I'm understanding what you're trying to do, but I'm >> doing >> something similar. I decided not to use an array for each property. >> I have >> a bean that holds the info for an entry, and then in the action I add >> that >> bean to an EntryHolder object that stores lists of entries. Then I >> simply >> iterate through my EntryHolder lists and get the info for each >> entry. This >> is also a more understandable design, because it's perfectly clear which >> entry properties go together. With arrays of properties, it is less >> clear >> which individual properties correspond to each other. However, I am >> kinda >> new to all this, so if I'm wrong about anything, someone please >> correct me. >> I hope this helps. >> >> ~ Keith >> http://www.buffalo.edu/~kkamholz >> >> >> >> -Original Message- >> From: Zayed [mailto:[EMAIL PROTECTED]] >> Sent: Friday, July 05, 2002 9:39 AM >> To: Struts Users Mailing List >> Subject: logic:iterate populating with multiple String[] >> >> >> Hi, >> >> I am struck up with this problem. please help >> >> I am iterating rows. In the first column I populate Product Name, In >> the second coulmn I populate Product Description. Both are contained >> in String Arrays. The productListForm is of type DynaActionForm whose >> form-properties are productName and productDesciption Arrays. >> >> How do I construct and tags. Please help >> >> >> This is what I have as of now ( it dosent work though) >> >>> property="name" indexId="index"> >> >> >> >> >> >> >> >> >> >> >> Thanks in advance >> >> >> -- >> To unsubscribe, e-mail: >> <mailto:[EMAIL PROTECTED]> >> For additional commands, e-mail: >> <mailto:[EMAIL PROTECTED]> >> >> -- >> To unsubscribe, e-mail: >> <mailto:[EMAIL PROTECTED]> >> For additional commands, e-mail: >> <mailto:[EMAIL PROTECTED]> >> > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: logic:iterate populating with multiple String[]
Hi Keith, Thanks for your reply. The Problem I am facing is regarding the use of and tags Let me restate my problem I am developing a WEB-UI for a third party Java Application Therefore I don't have control over the object/s returned. I get two String arrays of the same length which I should be showing in a table. The first String[] contains productName and the second String[] contains the corresponding product description. how do I construct the table rows using and tags. The corresponding JSP code looks is below <% String[] productNamesArray = //Get the product names array String[] productDesctriptionArray = //Get the product description array //FYI : productNamesArray.length = productDesctriptionArray.length for(int i=0; i <%= productNamesArray[i] %> <%= productDesctriptionArray[i] %> <% }//end of for loop %> could somebody help me with corresponding snippet using and tags Thanks in advance Cheers!! Zayed [EMAIL PROTECTED] wrote: >I'm not sure if I'm understanding what you're trying to do, but I'm doing >something similar. I decided not to use an array for each property. I have >a bean that holds the info for an entry, and then in the action I add that >bean to an EntryHolder object that stores lists of entries. Then I simply >iterate through my EntryHolder lists and get the info for each entry. This >is also a more understandable design, because it's perfectly clear which >entry properties go together. With arrays of properties, it is less clear >which individual properties correspond to each other. However, I am kinda >new to all this, so if I'm wrong about anything, someone please correct me. >I hope this helps. > >~ Keith >http://www.buffalo.edu/~kkamholz > > > >-Original Message- >From: Zayed [mailto:[EMAIL PROTECTED]] >Sent: Friday, July 05, 2002 9:39 AM >To: Struts Users Mailing List >Subject: logic:iterate populating with multiple String[] > > >Hi, > >I am struck up with this problem. please help > >I am iterating rows. In the first column I populate Product Name, In the >second coulmn I populate Product Description. Both are contained in >String Arrays. The productListForm is of type DynaActionForm whose >form-properties are productName and productDesciption Arrays. > >How do I construct and tags. Please help > > >This is what I have as of now ( it dosent work though) > >property="name" indexId="index"> > > > > > > > > > > >Thanks in advance > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Handling loop --
Hi, Typo in my previous mail... Please read the second line as I am listing all the Students in a jsp . A click on the Student Name takes me to studentDetails.jsp [EMAIL PROTECTED] wrote: > Hi, > > What is the best way to handle the following sample scenario in struts. > I am listing all the Students in a class. A click on the Student Name > takes me to studentDetails.jsp > > <% >String studentName = null; >for(int i=0 ; i < studentArray.length ; i++) { >studentName = studentArray[i]; > %> > href="studentDetail.jsp?<%=Constants.STUDENT%>=<%=URLEncoder.encode(studentName)%>"> > ><%= studentName %> > > <% >} > %> > > I am a newbie to struts and coudn't find any examples implementing > such scenario. (please let me know if there are any). > It would be great to have a running example (xxxAction , yyyForm etc) > > Thanks in advance. > > Zayed > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> >
Handling loop --
Hi, What is the best way to handle the following sample scenario in struts. I am listing all the Students in a class. A click on the Student Name takes me to studentDetails.jsp <% String studentName = null; for(int i=0 ; i < studentArray.length ; i++) { studentName = studentArray[i]; %> <%= studentName %> <% } %> I am a newbie to struts and coudn't find any examples implementing such scenario. (please let me know if there are any). It would be great to have a running example (xxxAction , yyyForm etc) Thanks in advance. Zayed -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>